Use Cucumber features as documentation


639
639 points
cucumber features as documentation
cucumber features as documentation

Use Cucumber features as documentation

A great QA work requires a very meticulous documentation and we can do that in different ways , as the world is moving into automation we can use cucumber features as documentation.

There is a great article about moving from Test Cases into testing notesĀ , oh yeah , but how those notes will help us to keep tracking of what we do each time a new feature comes into test ? How do we handle that in a CI environment , in this situation everything can be replaced by using cucumber as documentation.

As a you can see in the scenario bellow we are providing all the steps that anyone is going through it to be able to follow and replicate the test manually. Test reports later on can be easily generated in tools like allure reports or reportportal.

Feature: Email preferences

  Scenario: As User I should be able to update my email preferences
    Given I will create a new account after Im redirected to register page
    And I will click on Email preferences link
    And I will check my email preferences
    And I click on button Update email preferences
    Then My email preferences should be checked


  Scenario: As a  User I should be able to uncheck all my email preferences
    Given I will create a new account after Im redirected to register page
    And I will click on Email preferences link
    And I will check my email preferences
    And I click on button Update email preferences
    And I will uncheck my email preferences
    Then My email preferences should be unchecked

Happy Testing!


Like it? Share with your friends!

639
639 points
Test engineer

0 Comments

Your email address will not be published. Required fields are marked *

twelve + 10 =