Decide On A Test Scenario

Cucumber proposes to write scenario in the Given/When/Then format.

Decide on a example test scneario from the example accounts application that we can try to automate.

Let's go with adding a new client as the test scenario.

Now as mentioned, in BDD terms the scenario would look like the following.

   Scenario: Sign up a new user
    Given the user is on landing page
    When she chooses to sign up
    And she provides the first name as Sukesh
    And she provides the last name as Kumar
    And she provides the email as [email protected]
    And she provides the password as password
    And she provides the confirm password again as password
    And she signs-up
    Then she should be logged in to the application

Now we will try to convert the above into an executable specification using cucumber-jvm.

results matching ""

    No results matching ""