The Sprint has started and I have a set of user stories to test. Now what? (2024)

If you’re an Agile tester, odds are that the start of each sprint begins with the question of what to do with the user stories. It’s easy for developers — pick a user story off the “To Do” pile and start working on it. In my experience, there are rarely stories or tasks written for the QA group. So what does the testing team do?

In this article, I’ll talk about an approach I use in creating and organizing tasks for manual and automated testing so that testing can start work from the start.

Who this isfor:

  • Testers in a project using the Agile methodology
  • Testers who create manual and automated test cases
  • Testers who want to improve their organizational skills

Create tasks for eachstory

Assuming you use some kind of software tracker (like JIRA), you’ll see all of the sprint’s user stories. These are written to describe a new/updated feature and are generally taken on by developers. One thing — where are the tickets for QA? That’s where you start.

Right from the beginning of the sprint, create task tickets based off each user story:

  • Create manual test cases
  • Create test code scaffolding
  • Connect the scaffolding and write a basic automated test
  • Complete the remaining automated tests

Each user story will have these four tasks associated with it. (Whether you want to make them subtasks or not is up to you and what is correct for the cadence of your project.) This will allow you to track what needs to be done, what is in progress, and what has been completed. It will also give the rest of your team a better understanding of the work being performed since it’s more visual. Win-win!

Let’s talk more about these four tasks above.

Task 1: Create Manual TestCases

In this task you will create all of your manual test cases in whatever test case management software you use (TestRail, Excel, hotel napkin, etc.). Here are some general guidelines I try to follow:

  • The test cases should have enough detail to allow anyone with a basic knowledge of the project to run them.
  • The cases should also not test too much. For example, each action should have its own test case along with a case for the style, content, etc.
  • Each user story will often have at least four or five test cases. If you add edge cases the number of test cases can increase exponentially.
  • Writing test cases often gives you your first thorough look into a user story and is a good time to ask questions. How a feature will work, what happens if the user does X, if the text should match similar text used elsewhere, etc. This is the perfect time to ask these questions, especially if the developer has yet to begin their work (as they will likely have similar questions).

Task 2: Create Test Code Scaffolding

One of the banes of automated testing is often this refrain: “I can’t start until the developers have completed their work.” Poppyco*ck and balderdash! You can start writing your test code as soon as you receive the user stories. How? Write the test code scaffolding!

Scaffolding is meant to write the broad brushstrokes of the test code. The goal of code scaffolding isn’t to be complete nor to be fully functional. The objective is to get the feature described in the user story into your testing code quickly and early. Once the developer has completed their work, you should only have to connect identifiers from your code to the identifiers in the software elements for it to work.

Scaffolding also allows you to think more holistically about your project. Don’t just think about how the feature described in the user story works. Consider how it fits in your project.

Task 3: Connect the scaffolding and write a basic automated test

Three things have to have happened to make it to this point:

  • You have written out all your manual test cases
  • You have completed the test code scaffolding
  • The developer’s code has made it through code review and has merged it into a develop/testing branch

Once these are done you can connect the code scaffolding you’ve created and write out a basic automated test. Let’s get into that:

Connect the code scaffolding

In Task 2 we created the code scaffolding. Now it’s time to connect it to the code from development. You will use the identifiers for the feature’s elements (via CSS, xpath, IDs, etc.) in the code scaffolding, connecting the two. Once this is done, you’ll…

Write a basic automated test

A basic test should be something simple that will touch as many elements of the feature as possible. Something such as “All the expected elements for the feature are on the page and have the correct text”. The point of the basic test is to ensure the properties of the feature are accounted for in your scaffolding. Performing other tests should (theoretically) be possible without much hassle if you get those connected and validated.

Task 4: Complete the remaining automated tests

Now that you have connected the code scaffolding and written a basic test, it is time to write the remaining automated tests for the feature not completed in Task 3. These should be more in-depth tests, such as actions, data validations, edge cases, etc.

Reality Check

Once all four tasks have been completed for that feature/user story, you can say that all work on it has been done. Of course, this is an ideal. Depending on your project’s cadence, expectations, available resources, etc., you may not be able to complete all the tasks. For instance, on a recent project of mine, we agreed that only Tasks 1 and 2 would be required for each sprint. We would complete as many Task 3s as time allowed. It was understood that Task 4s would likely live in the backlog. This still allowed us to complete all manual testing, capture 100% of the functionality delivered by development in our test code, and write approximately 35% of our test cases into automation.

What About FeatureUpdates?

As projects go forward you will start to see user stories that update current functionality rather than create new (i.e. — maintenecnce). When you come across this, it will be up to you as to how you should proceed. Is it a simple text update or a full refactor? Will the updates needed be easy or complex? I generally will rebrand the tasks above like this:

  • Task 1: Update Manual Test Cases — assuming the updates aren’t a complete tear-down, you should be able to update the current test cases. You may need to write some new ones, too.
  • Task 2: Update the automated test cases — again, assuming the updates aren’t a complete tear-down, you should be able to update the current automated tests to work with the updated UI code.
  • Task 3: Complete the remaining automated tests (optional)— if you do find that the updates require new automation code, it should go in this task. If there’s no new automation needed, you can omit this task.

“What about creating code scaffolding?” Since these are updates you shouldn’t have to create any new scaffolding. If you do, it should be so minimal that it can be covered in Task 2 or 3.

“What if it is a complete tear-down?” If the ‘update’ is a total refactor of a feature then that’s really not an update. You should treat it more like a new feature. This will be more difficult as your automation will need attention for possible new patterns and logic. You might want to create a fifth task — Task 5: Remove Unused Code, but this should be a rare occurrence.

With all that said, I hope you now have a better understanding of how to approach user stories, how to create and organize tasks around them, and how to get your automation to keep pace with development’s output. Remember - it is up to you as to how best use this with your project. No two are the same and what works for one won’t necessarily work for the other. Using the information above, you should be able to find a plan and cadence that works for your team. Good luck!

The Sprint has started and I have a set of user stories to test. Now what? (2024)

FAQs

The Sprint has started and I have a set of user stories to test. Now what? ›

If work isn't completed in the sprint, I don't pick up in the next sprint like nothing has changed. I take all the tasks and bring them back to To Do. When I take up the work again, I validate all the work again.

What to do with stories not completed in a sprint? ›

If work isn't completed in the sprint, I don't pick up in the next sprint like nothing has changed. I take all the tasks and bring them back to To Do. When I take up the work again, I validate all the work again.

How to test a user story? ›

How do you test user stories?
  1. Define clear and testable acceptance criteria.
  2. Use a testing pyramid approach. ...
  3. Apply test-driven development or behavior-driven development.
  4. Perform exploratory testing and usability testing. ...
  5. Review and refine user stories and tests. ...
  6. Here's what else to consider.
Aug 3, 2023

How to handle unfinished user stories in Agile? ›

  1. 4 steps to manage unfinished stories at the end of a Sprint. It is the last day of your Sprint. ...
  2. Identify the stories you won't be able to finish. ...
  3. Document and estimate the remaining. ...
  4. Move the story back to the Product Backlog. ...
  5. Take the unfinished stories to the Sprint Retrospective.
Aug 29, 2019

Does a user story need to be completed in a sprint? ›

Teams use t-shirt sizes, the Fibonacci sequence, or planning poker to make proper estimations. A story should be sized to complete in one sprint, so as the team specs each story, they make sure to break up stories that will go over that completion horizon.

Can a sprint have multiple stories? ›

5 to 15 user stories per sprint is about right. Four stories in a sprint may be okay on the low end from time to time. Twenty is an upper limit for me if we're talking about a Web team with lots of small changes to do.

What happens if testing is not completed in the end of a sprint? ›

When Product Backlog Items aren't complete at the end of a Sprint, they go back onto the Product Backlog to be re-prioritized by the Product Owner. The item may or may not remain relevant, and only the Product Owner can determine if there is still value in allocating resources for it in a future Sprint.

How do you convert User Stories into test cases? ›

User Stories In Testing: How To Convert it Into Test Cases?
  1. 5.1 Identify the scenarios:
  2. 5.2 Define the test cases:
  3. 5.3 Write the test steps:
  4. 5.4 Add relevant screenshots:
  5. 5.5 Prioritize the test cases:
  6. 5.6 Update the test cases:
  7. 5.7 How to Make This Activity Helpful for Test Automation.
May 10, 2024

How do you validate User Stories? ›

In order to validate user stories, follow the steps below:
  1. Navigate to the relevant User Story record.
  2. Click Validate Changes.
  3. You will be redirected to the intermediary page where the action is being processed. Once the validation job is completed, you will be redirected to the user story layout again.
Sep 27, 2023

Do User Stories have to be testable? ›

User stories should be written as small, independently, testable increments of the business need, and prioritized by the Product Owner. While Product Owners write functional user stories, the Scrum Team can contribute non-functional / technical stories.

What are the 3 C's of Agile user stories? ›

These 3 C's are Cards, Conversation, and Confirmation. These are essential components for writing a good User Story.

How do you handle a Sprint spillover? ›

Dealing with spillovers
  1. It is important to review the process followed by the team during the sprint retrospective session. This session can be used to identify the root cause for spillovers and to discuss options available to mitigate it. ...
  2. The team must discuss the future of the user story that got spilled over.
Feb 19, 2024

Who closes a user story in Agile? ›

Any team member that is associated with an active team on the product can move a user story to Completed status. Typically, the product owner or scrum master closes the user story after reviewing it and approving that it meets the acceptance criteria.

What happens if you not complete user story within a sprint? ›

As the User Story did not meet the Definition of Done, the team doesn't gain any of the Story Points and no part is added to the team's velocity. Some suggest that the team should get “partial-credit” for their efforts, but this gives a false sense of what the team can actually get to Done in a single Sprint.

How many story points is a 2 week sprint? ›

Many factors influence the number of story points each team member can complete during a two-week sprint, such as the individual's experience, the complexity of the tasks, and the team's working dynamics. New scrum teams typically average 5–10 story points per person for each two-week sprint.

How many story points are 8 hours? ›

Some teams try to map the story points to hours – for example two story points correspond to a task that will take 2–4 hours, and 3 story points can be mapped to tasks from 4 to 8 hours long, and so on.

What to do with unfinished tasks in sprint? ›

The unfinished task can be moved back to the product backlog and then reprioritized. Maybe it is not so important. It can wait in the backlog so that a more critical task takes its place in the next sprint. The unfinished task could be split into smaller pieces and delivered one by one in a few iterations.

What should you do if the team has incomplete story at the end of the sprint and wants to claim partial credit for the work completed ›

Whenever your team finds an incomplete story at the end of the Sprint, simply roll that story, in its entirety, into the next Sprint. When this happens, no points should be awarded to the team, for partial completion of the story.

What to do if all items of sprint Cannot be completed? ›

At the end of a sprint, if there is incomplete work: "All incomplete Product Backlog Items are re-estimated and put back on the Product Backlog." This does not have to mean that the sprint was unsuccessful, as per the Scrum Guide: "If the Development Team determines it has too much or too little work, it may ...

What happens if a task is not completed in a sprint? ›

If you happen to reach the end of a sprint with unfinished tasks (and, therefore, unfinished US) then the most common action is to move US from that sprint to a newly created one to be able to finish the US during the new sprint. The moment you only leave behind closed tasks, the sprint will change to CLOSED.

Top Articles
HK-linked ELS emerges as time bomb in banking sector
Why $77 Billion a Year in Public Finance for Oil, Gas, and Coal Is Even Worse Than It Sounds
Jody Plauche Wiki
Get maximum control with JCB LiveLink | JCB.com
The McPherson Republican from McPherson, Kansas
Who is on the FBI Most Wanted list cryptocurrency?
Unveiling the Charm of Rio Vista, California
Immobiliare di Felice| Appartamento | Appartamento in vendita Porto San
Keanu Reeves cements his place in action genre with ‘John Wick: Chapter 4’
Ups Cc Center
Coolmathgames.comool Math
The 10 Best Drury Hotels in the United States
Haktuts Coin Master Link
Westelm Order
803 Castroville Road, San Antonio, TX 78237
El Puerto Harrisonville Mo Menu
Corporate Clash Group Tracker
Tryhard Guide Wordle Solver
2887 Royce Road Varysburg Ny 14167
What To Do With Mysterious Camera In Sakura Stand
Monster From Sherpa Folklore Crossword
Florida Today from Cocoa, Florida
Cox Teacher Discount
COUNTRY VOL 1 EICHBAUM COLLECTION (2024) WEB [FLAC] 16BITS 44 1KHZ
What Time Does The Moon Rise At My Location
Craigs List Duluth Mn
Kristian Andersen | Scripps Research
Disney Cruise Line
Teddy Torres Machoflix
Goodwill Winter Springs 434
Greet In Cheshire Crossword Clue
Gopher Hockey Forum
Craigslist Gigs Wichita Ks
Optimizing Sports Performance Pueblo
715 Henry Ave
Lincoln Access Rewards Redemption
Zuercher Portal Inmates Kershaw County
Biopark Prices
Boostmaster Lin Yupoo
Dallas College Radiology Packet
What Does It Mean When Hulu Says Exp
Thotsbay New Site
Glowforge Forum
Palmetto Pediatrics Westside
Detroit Area Craigslist
I Got Hoes Might Just Be You N
Oppenheimer Showtimes Near B&B Theatres Liberty Cinema 12
Water Temperature Robert Moses
Siôn Parry: The Welshman in the red of Canada
Sky Zone Hours Omaha
Carenow Urgent Care - Eastchase Fort Worth Photos
Lharkies
Latest Posts
Article information

Author: Tuan Roob DDS

Last Updated:

Views: 6101

Rating: 4.1 / 5 (42 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Tuan Roob DDS

Birthday: 1999-11-20

Address: Suite 592 642 Pfannerstill Island, South Keila, LA 74970-3076

Phone: +9617721773649

Job: Marketing Producer

Hobby: Skydiving, Flag Football, Knitting, Running, Lego building, Hunting, Juggling

Introduction: My name is Tuan Roob DDS, I am a friendly, good, energetic, faithful, fantastic, gentle, enchanting person who loves writing and wants to share my knowledge and understanding with you.