Course outline
Lab: test cases from a user journey
Describe a shopper's journey in plain English, let QAIA walk it on Cedar Books, and judge the test cases it writes.
Writing test cases by hand for every page of a journey takes hours. QAIA walks the journey in a real browser, page by page, and hands back the test cases, the locators and the screenshots of every step. Your job moves from typing to judging.
In this lab you describe a shopper's journey through Cedar Books in plain English, let QAIA run it, and then review what it wrote like a senior tester would.
What you need
- A QAIA account on Pro or Enterprise, signed in: journeys of several pages (QAIA Precision and QAIA Catalyst; QAIA Nexus on Enterprise) are not part of the Free plan.
- The Cedar Books requirements, to judge each test case against.
- About 30 minutes, part of it waiting for the run.
Steps
- Write the journey in plain English: "Go to https://practice.qaia.io. Search for Maya Rahal. Open See all books, sort by price from high to low, and open page 2. Search for The Island With One Tree and open its page. Add The Cedar Tree to the basket and apply the coupon CEDAR10. Go to checkout, enter a made-up name and address, and pay with the declined test card 4000 0000 0000 0002."
- In QAIA, open Flow Analysis and choose QAIA Precision, QAIA Nexus or QAIA Catalyst. Paste the journey, choose the Comprehensive level of detail, turn on Console log capture, and start the run.
- When it finishes, open the run. Read the test cases, then the screenshots of each page, then the console and network tabs.
- Mark each test case: does it check a requirement? Which requirement has no test case at all? Write the missing cases.
- Look for anything in the screenshots and logs that breaks a requirement: those are bugs, whether or not a test case caught them.
- Come back here, sign in, and press "Check my QAIA run" to record the lab.
Hints
Stuck? Open one hint at a time, and try again after each one.
Hint 1
Maya Rahal has four books in the shop. Count them in the screenshot of the search.
Hint 2
Sorting and paging have their own requirement (REQ-10). Read the prices in order, and look closely at the books on the edges of each page.
Hint 3
The run keeps every page's console messages. Read them page by page, against NFR-04.
Hint 4
REQ-07 says what a declined card must do. Read the last screenshot against it.
Hint 5
A good test case has one expected result you can check. Rewrite any case that has none.
Done? Record it
This lab is done with QAIA, so it needs a QAIA account. Sign in, finish the run, then come back here to record it.
Finished it in QAIA? The Academy looks for your own finished run, and reads only that it happened. What counts: A finished Flow Analysis (QAIA Precision, Nexus or Catalyst) whose journey starts on https://practice.qaia.io.
The planted bugs
This lab is about 5 of the shop's planted bugs. Compare the bugs you found with the planted bugs of this lab below, and your extra test cases with the requirements they cover.
Sign in to see the planted bugs this lab is about. They are kept off this page, so nobody reads them by accident before trying.
Try the lab before you look: a bug you find yourself teaches far more than one you read about.