October 09, 2020

Data Driven Testing in SpecFlow-



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-

Parameterization using Excel Files
Parameterization using Json
Parameterization using XML

No comments:

Post a Comment

Please let me know if you have any doubts.

Key concepts in Pipeline

 1. Agent- To build your code or deploy your software using azure pipelines, you need at least one agent. Two types of agent- Microsoft host...