Cucumber MCQ on tags | cucumber tags - quiz



9 Multiple-choice questions on tags in Cucumber. This quizlet contains questions on the implementation of tags in cucumber.


Instructions

Topic- tags

The test consists of 9 questions.

No negative marking for this test.

No Time limit

The pass percentage is 70%

The correct answer with a description will be displayed after the answer has been marked.

Submit the test to calculate your score once you are done with all the questions.

Complexity Level- Moderate




Q1: Tags can be placed above 'Background'. Select True or False











Q2: Tags cannot be placed above steps (Given, When, Then, And, and But). Select true or false.











Q3: Select all the valid elements above which a tag can be placed in cucumber:


























Q4: What will happen if the below code is placed in the runner class?

@CucumberOptions(tags = "~@smoke")















Q5: tags that are placed above a Scenario Outline will be inherited by ______

















Q6: Consider the below two scenarios and the cucumber options from the runner file:

cucumber using scenario outline

cucumber using data table

@CucumberOptions(tags = "~@loginDT")

Determine which scenario will be executed (considering the given CucumberOptions):


















Q7: Consider the below two scenarios and the cucumber options from the runner file:

cucumber using scenario outline

cucumber using data table

@CucumberOptions(tags = {"@loginSO, @loginDT"})

Determine which scenario will be executed (considering the given CucumberOptions):


















Q8: Can the same tag be placed above multiple scenarios in a feature file? Select Yes/No














Q9: Can multiple tags be placed on a particular scenario? Select Yes or No
























  • Join our telegram channel