Cucumber BDD Quiz Advance Level May 20, 2021 Leave a Comment on Cucumber BDD Quiz Advance Level Welcome to your Cucumber BDD Quiz Advance 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 6 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 Advance level. 1. You want to print a message form an after hook to the console when running a scenario. If that scenario fails. Complete the code that will accomplish this. Puts “Something had happened ” If scenario.state.failure? If scenario.failed? If scenario.failed If scenario.state.fail 2. Which flag must you use with cucumber in order to tell it that you want to run from the root of the features folder, thereby allowing you to organize your features in subdirectories? -use features -require features -r root -require root 3. Which of these statements accurately describes synchronizing by listening? Typically, the slowest method The system files event at specific points Typically, the most reliable method Typically, the least reliable method Typically, the fastest method 4. Given the database has been created for an accounts table, complete the code properly define the class for the table inheriting form ActiveRecord ::ABse? Class ActiveRecord :: Base end tbl_account a. tbl_account d. Account c. Accounts b. tbl_accounts 5. Which flags could you use to format the cucumber output to display useful information about the time that each step took to run? b. Progress d. Stepdefs a. Usage c. Debug 6. You are using DatabaseCleaner in truncation mode to clean a database between scenarios. Where is the optimum place to run DataCleaner in truncation mode? In the before hook In an After hook In the Truncate hook In a Failure hook 7. What of these are valid result states returned by cucumber? Undefined Skipped Complete Fail Defined Passed 8. Which of the following frameworks integrations is supported by cucumber? Ruby on Rails Serenity Grunt Gulp.js Selenium 9. What are the two primary approaches when testing REST APIs with cucumber? Out of process Approach In Progress Approach Last Response Approach JSON Approach 10. Complete the code statement so that the default profile runs the other two profiles whne no profiles is specified at the command line Default : Html_report : -f progress -f html -o features_report.html Test1001 : -t @test1001 -f html_report test1001 -p html_report test1001 -f html_report -f test1001 -p html_report -p test1001 11. You are using tags to label and run scenarios. You want to run only those sceanrios that are tagged with both the @sellwidgets and @buywidgets tags. Which command will accomplish this? cucumber -tags @sellwidgets && @buywidgets cucumber -tags @sellwidgets , @buywidgets cucumber -tags @sellwidgets || @buywidgets cucumber -tags @sellwidgets - - tags @buywidgets 12. Which of the following are considered primary causes of Flickering scenario? Brittle Feature Leaky Scenario Shared environment Unengaged stakeholder 13. Which of the following statement accurately describe the use of Transforms? Allows the ability to transform step argument Transforms cannot be applied globally Transforms cannot be used against regular expressions Transforms may be applied globally Please fill in the comment box below.