ddt is a code example

Example: what is ddt

Whenever a functionality or a module in an app
requires testing with multiple sets of data (Parametrization),
Multiple inputs then we need to perform data driven testing and
automation.
These scenarios are one of the things That must be automated.
I would do it by seperating Test data from code and stored into external
sources like
Cucumber Examples table, Excel files, CSV files, Database.
Data driven testing has lots of benefits like
More organized, Data centralized, and so on

• In my current project I use Scenario Outline with Examples
• In my scenario feature file, whenever I’m using a <variable> as a data driven, I
use “<variable>”
• Then in Examples:
Examples:
| variable | -> column name
| data1 | -> row1
| data2 | -> row 2
| data3 | -> row

Tags:

Misc Example