Data Driven Testing in SpecFlow-
1. Parameterization without Example Keyword-
LogIn_Feature.feature
2. Data Driven Testing in SpecFlow using Scenario Outline-
Parameterization with Example Keyword
@mytag
Scenario Outline: Successful Login with Valid Credentials
Given User is at the Home Page
And Navigate to LogIn Page
When User enter <username> and <password>
And Click on the LogIn button
Then Successful LogIN message should display
Examples:
| username | password |
| testuser_1 | Test@123 |
| testuser_2 | Test@153 |
3.Parameterization using Tables
Transform Table into Dictionary using Table.Rows
Transform Table into DataTable using Table.Header
Tables – CreateInstance
Tables – CreateSet
here is the link:
https://www.toolsqa.com/specflow/tables-in-specflow/
4. Data Driven Testing in SpecFlow using External Files-
4. Data Driven Testing in SpecFlow using External Files-
Parameterization using Excel Files
Parameterization using Json
Parameterization using XML
Parameterization using Json
Parameterization using XML
No comments:
Post a Comment
Please let me know if you have any doubts.