Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: What is the purpose of the 'Scenario Context' in Cucumber?
Answer: Scenario Context is used to share data between steps within the same scenario, allowing you to pass information between steps.

Example:

Scenario: Sharing data between steps
    Given a variable is initialized
    When the variable is modified
    Then the modified value should be accessible in subsequent steps
Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook