Do you write Acceptance Tests to verify Acceptance Criteria?

Updated by Brady Stroud [SSW] 1 year ago. See history

123
No component provided for introEmbed

Suppose we have a user story to implement searching on customers with the following acceptance criteria on the User Story:

  • When I enter ‘Adam’ in the Search box and click ‘Search’ I will see all entries starting with Adam in the Grid
  • When I enter ‘zzz’ in the Search box and click ‘Search’ I will see no entries in the Grid
  • If no results are returned show a message box ‘No results found’
  • If no search text is entered, the ‘Search’ button should be disabled
  • If the button is disabled and search text is entered, the ‘Search’ button becomes enabled
  • Right-clicking on a column header and using the ‘Sort’ functionality, sorts the data by that column

The PBI for this User Story in Azure DevOps would look like this, with the Acceptance Criteria clearly defined and the Acceptance Test cases linked to the PBI:

Image

Figure: Acceptance test cases on a PBI (in Azure DevOps)

Note: The acceptance test cases need to be linked to the PBI with the link type Tested By.

The Acceptance Test cases can be seen in Azure Test Plans for the appropriate Sprint:

Image

Figure: The tester sees the acceptance test cases in Azure Test Plans

The tester then runs each Acceptance Test case:

Image

Figure: Open the Test Runner using the "Run" menu item from test case(s)

Figure: In the Test Runner, the tester follows each of the test steps and passes or fails them as appropriate (using the tick or cross button)

Acknowledgements

Adam Stephensen
Related rules

Need help?

SSW Consulting has over 30 years of experience developing awesome software solutions.

We open source.Loving SSW Rules? Star us on GitHub. Star