Tag cucumber
5 votes
1 comments
1361 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.
9 votes
2 comments
1419 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'.
3 votes
0 comments
1428 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.
