Fork me on GitHub

cucumber

    Use nested step to improve readability of ur scenario

    27 Jul 2010

    Ng Tze Yang

    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. Read More

    Tags 


    Use 'Background' to consolidate common steps in a feature

    27 Jul 2010

    Ng Tze Yang

    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'. Read More

    Tags