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. Which of the following statement accurately describe the use of Transforms? Transforms cannot be used against regular expressions Allows the ability to transform step argument Transforms may be applied globally Transforms cannot be applied globally 2. 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 c. Debug a. Usage d. Stepdefs 3. 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? -r root -use features -require features -require root 4. What of these are valid result states returned by cucumber? Skipped Defined Passed Undefined Fail Complete 5. Which of the following are considered primary causes of Flickering scenario? Leaky Scenario Unengaged stakeholder Brittle Feature Shared environment 6. 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 - - tags @buywidgets cucumber -tags @sellwidgets && @buywidgets cucumber -tags @sellwidgets , @buywidgets 7. 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 d. Account a. tbl_account c. Accounts b. tbl_accounts 8. 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 -p test1001 -p html_report test1001 -f html_report -f test1001 9. Which of the following frameworks integrations is supported by cucumber? Gulp.js Grunt Serenity Selenium Ruby on Rails 10. 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 11. 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 Truncate hook In an After hook In a Failure hook In the before hook 12. What are the two primary approaches when testing REST APIs with cucumber? In Progress Approach JSON Approach Last Response Approach Out of process Approach 13. Which of these statements accurately describes synchronizing by listening? Typically, the least reliable method Typically, the slowest method Typically, the most reliable method The system files event at specific points Typically, the fastest method Please fill in the comment box below.