Cucumber Testing Online Test

Topics covered

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

  • MAQ (Multiple Answer Question)
  • MCQ (Multiple Choice Question)
  • Descriptive Question
  • White Board Simulator
  • Coding Simulator
  • Audio Question
  • Video Question
  • Case Study Question

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.

This pre-employment test is useful for hiring:
  • Test Automation Engineer - Cucumber
  • Software Engineer - Cucumber

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.

Cucumber Test

Question #1 of 3

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?

    •'your scenario') do |f|
        f.slice_before(/^\s*Scenario:/) do |scenario|
          title = scenario.shift.chomp
          ct =
          puts "#{title} --> has #{ct} lines"

    •'your scenario') do |f|
        f.slice_before(/^\s*Scenario:/) do |scenario|
          title = scenario.shift.chomp
          ct =
          puts "#{title} --> has #{ct} lines"

    •'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"

    • None of the mentioned

Question #2 of 3

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"

    • 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 #3 of 3

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?

    • 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

Candidate Name
Assessment Name
Invited by
Assessment Date
IP Address

24.00 Out of 40.00
23 Minutes

Java EE




Oracle PL/SQL


Analytical Thinking


Note:If score<= 30% then its a Weakness. If score >=70% then its a Strength.


Java EE, Oracle PL/SQL, Analytical Thinking




It was a good test for me, the questions were on the latest technology of java on which I am currently working. It was a great experience. Thank you!

Take your first step to hire job fit candidate


How Interview Mocha works?

  • Add this test to your account

  • Invite candidates to take this test online

  • Candidates take the test

  • View and share actionable test reports

Trusted by leading brands worldwide

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai
Why hiring managers and recruiters across the globe love Interview Mocha
  • Largest number of ready pre-employment skill tests
  • Relevant test compositions and quality questions designed by Subject Matter Experts (IM SME)
  • Fastest custom test creation DNA
  • World’s most super easy skill assessment platform
  • High level of platform security implementation
  • Friendly and quick customer support
  • Ready to listen and implement your feedback, we are all ears
  • Affordable pricing

Take your first step to hire job fit candidate