Back

Using one of the checklist items above, we can write an acceptance criteria in the “Given-When-Then” format as follows:

  • Given that I am a new user, when I enter a unique username, then I should see a success message “This username is available.” beside the username field.
  • Given that I am a new user, when I enter an existing username, then I should see an error message “This username is already taken.” beside the username field.

It’s important to note that acceptance criteria only help in ensuring that developers, testers, and everyone else involved are on the same page in delivering user stories. These do not substitute the tests being written by testers; rather, they partially serve as a basis for the tests.

Creating user stories should involve the product owner, Scrum team (consisting of analysts, testers, developers, etc.), and most importantly, users. Different perspectives and experiences are needed in order to come up with INVEST-able user stories. Testers have the mindset that can help the team understand the user’s needs and determine the test-ability of user stories.

Recommended Further Reading

The following materials may assist you in order to get the most out of this course:

Translate »