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 is only one scenario in the features file. There are several scenarios differing only on values Your feature files contain multiple features To assist with the reading and understanding of the scenario. 2. 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) = expect(executed_output) expect(@result).eq executed_output expect(@result) eq expect(executed_output) expect(@result).to eq executed_output 3. Cucumber uses a plain text parser to assist in the definition of the test cases. What is the name of this plain text parser? Pythumber Relish Cuke Gherkin 4. 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 (\d)$/) do|input| None(empty disk) Given(/^the input (^”)$/) do|input| 5. In order to install Cucumber on a MacOS platform, which of these packages is required. Node.js Python Ruby Xcode 6. Which of these statements accurately describe characteristics of the BDD? Requires that you build software first then the unit test afterwards. Originated From Test Driven Development. An Agile software development methodology BDD makes use of acceptance tests C. Combines techniques and principle from waterfall methodology. 7. 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? strongtwo String11 $trong Stron9 8. Which of these is the top level when participating in an example mapping exercise? Example Rule Story Question 9. 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 gem bundle gem install bundler ruby - - install bundler npm bundler 10. You want to create and html report using one of the cucumbers formatters . Which of the following statements does this correctly. cucumber -f cucumber.html cucumber -f html - - output cucumber.html cucumber -f html cucumber - output cucumber.html Please fill in the comment box below.