Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

Cucumber Testing Online Test

Topics Covered

  • Cucumber - Development
  • Cucumber - Reports
  • Cucumber - Running tests
  • Cucumber - Debugging
  • Cucumber - Command line
  • Advance features of Cucumber

Useful for hiring

  • Test Automation Engineer - Cucumber
  • Software Engineer - Cucumber

Start hiring job-fit candidates using this assessment

GET A DEMO

"We realized that to acquire quality talent, our recruitment process was in dire need of automation. Too many of our technicalteam were simply wasting hours conducting interviews that did not yield the desired results. For us the foremost criteria were to finda recruitment partner who could tick all the right boxes"

Rehana Nisar, Gartner,
Global Product & Services Recruitment Head
Question

Which of the following code snippet can be used to parse a cucumber file and count the total number of lines contained in a particular scenario?

Answer
    • File.open('your scenario') do |f|
        f.slice_before(/^\s*Scenario:/) do |scenario|
          title = scenario.shift.chomp
          ct = scenario.map(&:strip).reject(&:empty?).count
          puts "#{title} --> has #{ct} lines"
        end
      end

    • File.open('your scenario') do |f|
        f.slice_before(/^\s*Scenario:/) do |scenario|
          title = scenario.shift.chomp
          ct = scenario.map(&:strip).reject(&:empty?).size
          puts "#{title} --> has #{ct} lines"
        end
      end

    • File.open('your scenario') do |f|
        f.slice_before(/^\s*Scenario:/) do |scenario|
          title = scenario.shift.chomp
          ct = scenario.tomap(&:strip).reject(&:empty?).size
          gets "#{title} --> has #{ct} lines"
        end
      end

    • None of the mentioned

Question

Which of the following is the correct ruby regular expression for matching the string of type:
rpm = "abc-def-ghi-1.1.0-10.el6.x86_64"

Answer
    • rpm.match(/^#{rpmname_to_match}-([0-9]+(?:(?:\.|-)(?:[0-9]+))*)(.*).nil?

    • rpm.match(/^#{rpmname_to_match}-([0-9]+(?:(?:\.|-)(?:[a-z]+))*)(.*)\.x86_64$/).nil?

    • rpm.match(/^#{rpmname_to_match}-([a-z]+(?:(?:\.|-)(?:[0-9]+))*)(.*)\.x86_64$/).nil?

    • rpm.match(/^#{rpmname_to_match}-([0-9]+(?:(?:\.|-)(?:[0-9]+))*)(.*)\.x86_64$/).nil?

Question

You are using cucumber+webrat+selenium to verify your application. It contains a javascript alert, and you wish to test whether the alert has particular string or not. Which of the following is the correct way to do this?

Answer
    • webrat.is_alert_present.should be_true
      webrat.get_alert.should eql("File Deleted")

    • cucumber.is_alert_present.should be_true
      cucumber.get_alert.should eql("File Deleted")

    • selenium.is_alert_present.should be_true
      selenium.get_alert.should eql("File Deleted")

    • None of the mentioned

Test details:

Identify potential hires using Cucumber testing interview test by evaluating working skills and job readiness of the applicants. For this reason, an emphasis is laid upon evaluating the knowledge of applied skills gained through real work experience, rather than theoretical knowledge.

The test contains MCQ's (Multiple Choice Questions), MAQ's (Multiple Answer Questions), Fill in the Blank, Descriptive, True or False.

Test Duration: 20 minutes

10 Application Questions

The Cucumber testing assessment test contains the combination of application and theory questions that helps you to evaluate technical as well as practical skills of candidates.

Test description:

Cucumber Testing Online Test is specifically designed & developed by experienced subject matter experts (SME)s to assess Cucumber testing skills of candidates - as per Industry Standards.

Cucumber is a testing tool that supports Behavior Driven Development (BDD) framework. It defines application behavior using simple English text, defined by a language called Gherkin. Cucumber allows automation functional validation that is easily read and understood. Cucumber was initially implemented in Ruby and then extended to Java framework. Both the tools support native JUnit. 

Online test for Cucumber testing is used by recruiters & hiring managers to find the right fit candidate who is expert in automation testing using Cucumber tool.


Cucumber testing skill test contains questions on following Topics:
 

  • Cucumber - Development

  • Cucumber - Reports

  • Cucumber - Running tests

  • Cucumber - Debugging

  • Cucumber - Command line

  • Advance features of Cucumber


Since you can conduct the test online & the features like online proctoring, windows violation records make the screening secure, you can ask the candidate to appear for Cucumber skills test from their any desired place as per their convenience. It will help you to eliminate the needs of infrastructure & travel reimbursement.

To assess multiple skills in one go, we provide a facility of customizable assessments that help you in creating the tests for as per your specific needs.

Our hiring analytics will provide you with the detailed analysis of skills related strengths & weaknesses of the candidates that will help you in making right hiring decisions.

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at support@interviewmocha.com to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...
GET A DEMO

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates

GET A DEMO