- The World
- Sharing Data between Scenarios
- ParameterTypes and Data Transformation
- Integration with Allure Tests Report
- Best Practices of tests solution organisation
- Write 2 Cucumber Scenarios what will share some date between each other, e.g.:
Scenario: Add two number When I add 2 and 2
Scenario: When I assert the sum Then the sum was 4
-
Using data transformation for parameter type, create transormation "" string to current data;
-
Add Allure Report to your Cucumber solution.
- To share Data you can use World object or Shared Store Service to share data between scenario, the first is preferable for the exercise;
- Use the defineParameterType CucumberJS function for data transformation.