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. 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* d. \d\d c. \d a. \d* 2. Gherkin assist in providing which of these purposes? Assertion Documentation Automated Testing Regular Expression 3. 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? When the World object is destroyed , it’s defined methods are destroyed. A new World object is created for each scenario thereby ensuring isolation When the World object is destroyed, it’s defined methods remain available The world object persists between scenarios and does not need to be recreated. 4. 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? _stepdefinitions .rb _steps .feature - - steps .rb _steps .rb 5. Which of these following statements accurately describe background? Background is run before any scenario Background can have several steps Background has a title Background have only one step Background does not have a title 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.array = table @vehicle = table.raw @vehicle = table.array 7. Each scenario in feature file contains lists of steps that begin with which of the following keywords? While Then Except Given When 8. Which of these following statement accurately describe characteristics of Acceptance Test Driven Development (ATDD) when compared to Behavior Driven Development(BDD)? ATDD is more focused on technical aspects ATDD is more customer focused than BDD ATDD is primarily focused on non-technical aspects ATDD is more development focused than BDD 9. 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? %{ } ${ } ^{ } #{ } 10. While using a scenario outline, which character are used to delimit the placeholder for your Examples table? | | Pipe Character angle bracket { } curly braces “”” “”” Triple quotes Please fill in the comment box below.