Cucumber BDD Quiz Basic Level May 20, 2021 Leave a Comment on Cucumber BDD Quiz Basic Level Welcome to your Cucumber BDD Quiz Basic Level For your information, please note that this Cucumber quiz has only single choice questions. Read each and every questions carefully before you start answering.. You will have 10 min to complete the quiz. Press the Start quiz button to initiate the quiz. Once complete you press Finish button to complete the test. After completion of test you can see your quiz result with sharing option, You can share your quiz result to social media like Facebook, Instagram etc. Note: You can view all the answers at the end of this quiz. Best of luck for Cucumber Quiz Basic Level. 1 Which of these would be valid reasons for using a scenario outlines in a feature files? There are several scenarios differing only on values There is only one scenario in the features file. To assist with the reading and understanding of the scenario. Your feature files contain multiple features 2 Which of these step definition achieves this for you? Which of these step definition achieves this for you? You are designing a regular expression to capture and expression from this step. Given the input 99+1Given(/^input([^”]*)$/) do|input| Given(/^the input (#)$/) do|input| Given(/^the input (^”)$/) do|input| None(empty disk) Given(/^the input (\d)$/) do|input| 3 Which of these is the top level when participating in an example mapping exercise? Question Rule Example Story 4 You are participating in an example mapping exercise. The story is ‘The system must force users to use strong password’ and one of the rule that your team has identified is that users’ passwords must contain a numeric character. Which of these examples demonstrate a violation of this rule? $trong strongtwo String11 Stron9 5 You have installed Ruby and Xo=code on your OSX development machine and you want to use bundler to manage your Ruby gems. Which statement correctly installs bundler? ruby - - install bundler gem install bundler npm bundler ruby gem bundle 6 In order to install Cucumber on a MacOS platform, which of these packages is required. Ruby Xcode Node.js Python 7 You want to create and html report using one of the cucumbers formatters . Which of the following statements does this correctly. cucumber - output cucumber.html cucumber -f cucumber.html cucumber -f html - - output cucumber.html cucumber -f html 8 Which of these statements accurately describe characteristics of the BDD? An Agile software development methodology Originated From Test Driven Development. Requires that you build software first then the unit test afterwards. BDD makes use of acceptance tests C. Combines techniques and principle from waterfall methodology. 9 Cucumber uses a plain text parser to assist in the definition of the test cases. What is the name of this plain text parser? Cuke Relish Pythumber Gherkin 10 You have an instance variable ‘@result’ and you want to use an Repec-based assertion to test the value of ‘@result’ with an argument identified as ‘expected_output’ in a Then Step. Which of the following statements ac3. You have an instance variable ‘@result’ and you want to use an Repec-based assertion to test the value of ‘@result’ with an argument identified as ‘expected_output’ in a Then Step. Which of the following statements accomplish this for you?complish this for you? expect(@result) eq expect(executed_output) expect(@result).to eq executed_output expect(@result) = expect(executed_output) expect(@result).eq executed_output Please fill in the comment box below.