The refinement of the US and more generally of the Backlog must also be done in a workshop with a person who plays the role of Tester
To prepare for the next sprint, the Product Owner (PO) organises, possibly with the help of the Scrum Master, meetings called "Sprint Refinements" where he presents the User Stories (US) to certain members of the team in order to facilitate sprint planning.
The danger of involving only developers is that they will focus on modelling the technical solution to be provided once they have understood the objective of the US presented with little attention to the acceptance criteria.
The practice of the "3 Amigos" consists of inviting to the refinement Sprint a Developer to spot how the US would be implemented and another actor from the development team who can identify the most relevant acceptance criteria. To do this, a Tester or any other person capable of decentering to the "how" problem is necessary. This extra person must provide insight into the use of the US, both in terms of the proposed functionality and its exploitation.
This person's questions should lead to :
It can be noted that this workshop can be enriched by adding different profiles (UX, security, customer, ...) [Hage Chahine 2020] [Moustier 2019].
When ideating a US, it is essential to keep in mind the ISTQB principle "Tests depend on the context" [Radid 2018-6]. This focus on implementation allows for the identification of :
Most of these tests will then be automated to allow each team member to check that they have not introduced any regression with each new US introduced into the product increment.
The design of automated test scripts should not be done in isolation in order to avoid designing a script with little added value or with things that will be quickly rendered obsolete by updating widgets or business processes.
Thus, knowledge of changes in the upcoming sprint can be valuable information for possibly questioning the added value of an automation or designing its script in such a way that it will remain operational with the planned change.