how to parameterize test cases cucumber code example
Example 1: parameterization in cucumber
- Parameterization is being able to pass
different test data from FEATURE FILES.
- We are able to not to "hard-code" some of the test data,
so that we can change it from our feature files.
Example 2: how to parameterize test cases cucumber
- Parameterization is being able to
pass different test data from FEATURE FILES.
- We are able to not to "hard-code" some of the test data,
so that we can change it from our feature files.
Cucumber:
- By using regular expression in feature file
==> when user enters "myusername" and "my password"
- Configuration.properties file