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