Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: What is the purpose of the 'DataTable' in Cucumber?
Answer: DataTable is used to represent tabular data in Gherkin syntax, providing an easy way to pass data to steps in a scenario.

Example:

Scenario: Data-driven login
    Given the user is on the login page
    When the user enters the following credentials
      | Username | Password |
      | user1    | pass123  |
    Then the user should be logged in
Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook