Bird
0
0

Which syntax correctly represents a simple acceptance test scenario in Gherkin language?

easy📝 Conceptual Q3 of 15
Testing Fundamentals - Testing Types and Levels
Which syntax correctly represents a simple acceptance test scenario in Gherkin language?
AIf the user logs in\nThen the form is saved\nElse show error
BGiven the user is logged in\nWhen the user clicks 'Submit'\nThen the form is saved
CStart user login\nClick submit\nSave form
DUser logs in, submits form, form saved
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct Gherkin syntax

    Gherkin uses Given, When, Then keywords to describe acceptance test steps clearly.
  2. Step 2: Compare options to Gherkin format

    Given the user is logged in\nWhen the user clicks 'Submit'\nThen the form is saved uses correct keywords and structure. Others do not follow Gherkin syntax properly.
  3. Final Answer:

    Given the user is logged in\nWhen the user clicks 'Submit'\nThen the form is saved -> Option B
  4. Quick Check:

    Gherkin syntax = Given-When-Then [OK]
Quick Trick: Use Given-When-Then for acceptance test steps [OK]
Common Mistakes:
  • Using if-else instead of Given-When-Then
  • Writing steps as plain sentences without keywords
  • Mixing scenario steps in one line

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Testing Fundamentals Quizzes