Skip to content
← All CTFL glossary terms

User story

A short description of a feature from a user's perspective, consisting of card, conversation, and confirmation (acceptance criteria).

Syllabus chapters: 4

Sources: ISTQB® Certified Tester Foundation Level syllabus 4.0.1 and the official ISTQB® Glossary. Glossary content © International Software Testing Qualifications Board; source: glossary.istqb.org.

Related terms

User story in a practice question

Question 1

Acceptance criteria written as "Given the cart contains one item, When the user removes it, Then the cart is empty" follow which of the two most common formats, and which example is typical of it?

  1. Rule-oriented, for example a bullet point verification list
  2. Scenario-oriented, for example the Given/When/Then format used in BDD
  3. Rule-oriented, for example a tabulated form of input-output mapping
  4. Scenario-oriented, for example an INVEST checklist for the user story
Show answer
  • Rule-oriented, for example a bullet point verification listA bullet point verification list is a rule-oriented example, not a scenario.
  • Correct answer: Scenario-oriented, for example the Given/When/Then format used in BDDGiven/When/Then is the syllabus's example of the scenario-oriented format.
  • Rule-oriented, for example a tabulated form of input-output mappingA tabulated input-output mapping is the other rule-oriented example.
  • Scenario-oriented, for example an INVEST checklist for the user storyThe format is right, but INVEST describes properties of a good user story.

The two most common formats for acceptance criteria are scenario-oriented, for example the Given/When/Then format used in behavior-driven development, and rule-oriented, for example a bullet point verification list or a tabulated form of input-output mapping. INVEST is the set of properties a good user story should have, not a format for acceptance criteria.

Syllabus section 4.5.2

Question 2

In a specification workshop the team writes this story and its acceptance criteria: Story: As an account holder, I want to download a monthly statement as a PDF, so that I can file it. Criterion 1: a statement for a month that has ended can be downloaded as a PDF. Criterion 2: a statement for the current, unfinished month cannot be downloaded. Criterion 3: a download completes within 5 seconds. Which set of ATDD test cases covers this story without going beyond it?

  1. Download a finished month as PDF, then download it again and get an identical file
  2. Download a finished month as PDF, be refused for the current month, finish within 5 seconds
  3. Download a finished month as PDF, be refused for the current month, check the PDF library used
  4. Download a finished month as PDF, download the current month as PDF, finish within 5 seconds
Show answer
  • Download a finished month as PDF, then download it again and get an identical fileTwo test cases describe the same characteristic, and criteria 2 and 3 are left uncovered.
  • Correct answer: Download a finished month as PDF, be refused for the current month, finish within 5 secondsOne positive case, one negative case and one non-functional case, one per criterion.
  • Download a finished month as PDF, be refused for the current month, check the PDF library usedChecking which library produces the file goes beyond the story into implementation detail.
  • Download a finished month as PDF, download the current month as PDF, finish within 5 secondsDownloading the current month contradicts criterion 2, which requires it to be refused.

In ATDD the test cases are created before the story is implemented and are based on its acceptance criteria. Typically the first test cases are positive, confirming the correct behaviour; after those the team performs negative testing, and finally covers non-functional quality characteristics such as performance efficiency. The test cases must cover all the characteristics of the user story and should not go beyond it, and no two test cases should describe the same characteristics.

Syllabus section 4.5.3

Original PrepBench practice material, not official exam questions or exam dumps. PrepBench is independent and is not affiliated with or endorsed by ISTQB®.