Cucumber BDD Quiz Intermediate Level May 20, 2021 Leave a Comment on Cucumber BDD Quiz Intermediate Level Welcome to your Cucumber BDD Quiz Intermediate 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 Intermediate Level. 1. Which of these following statement accurately describe characteristics of Acceptance Test Driven Development (ATDD) when compared to Behavior Driven Development(BDD)? ATDD is primarily focused on non-technical aspects ATDD is more development focused than BDD ATDD is more focused on technical aspects ATDD is more customer focused than BDD 2. Which of these following statements accurately describe background? Background is run before any scenario Background has a title Background can have several steps Background have only one step Background does not have a title 3. Each scenario in feature file contains lists of steps that begin with which of the following keywords? While When Given Then Except 4. You are working with nested steps in cucumber and you see the built in cucumber ‘steps’ method to define a number of lower level steps. Which Ruby construct can you employ to indicate that you have a string that will go across multiple lines? ^{ } #{ } ${ } %{ } 5. While using a scenario outline, which character are used to delimit the placeholder for your Examples table? { } curly braces angle bracket | | Pipe Character “”” “”” Triple quotes 6. You are working with a data table and you want to use of reference of that data table in your step definitions as a multi-dimensional array. Assuming the name of the argument your step passes when capturing the table is “Table” and the array is to be named “@vehicle” which of those will accomplish your requirement @vehicle = table.hash @vehicle = table.raw @vehicle = table.array @vehicle.array = table 7. Cucumber makes extensive use of character classes and quantifiers to match strings. You want to match and integer value of 100 using regex character classes and quantifiers. Which od these produces an exact match? b. \D* a. \d* c. \d d. \d\d 8. Gherkin assist in providing which of these purposes? Automated Testing Regular Expression Documentation Assertion 9. Step definition usually resides in the features/ step definitions / directory. Cucumber expects your step definition file to eb named in a specific format. What must your step definition filename end with? _steps .rb _steps .feature _stepdefinitions .rb - - steps .rb 10. The World object can be used to pass instance variables by defining instance variable in a module and using Cucumber’s World method to mix that module in to the World Project. Which of these statements describes the subsequent functions of the world object? A new World object is created for each scenario thereby ensuring isolation The world object persists between scenarios and does not need to be recreated. When the World object is destroyed, it’s defined methods remain available When the World object is destroyed , it’s defined methods are destroyed. Please fill in the comment box below.