Tag cucumber

5 votes

3568 views

Use nested step to improve readability of ur scenario

When a scenario has too many steps, it becomes hard to read & follow. Using nested step helps to clean up the scenario, & helps promote reusability of groups of steps, think of it as code refactoring.

Comments

by ngty
ngty

9 votes

3118 views

Use 'Background' to consolidate common steps in a feature

Very often, we tend to repeat a number of common steps in all scenarios within a feature, to dry things up, as well as improve readability (helping reader to better focus the intent of each scenario), we can use 'Background'.

Comments

by ngty
ngty

3 votes

3219 views

Use pickle & ur choice factory for data setup in ur cucumber features (revised)

Data setup is sometimes painful in features writing for cucumber. Use pickle & factory of ur choice to make it less painful.

Comments

by ngty
ngty