5 exercises — practise professional test case ID conventions, preconditions, atomic test steps, measurable expected results, and execution status vocabulary.
0 / 22 completed
1 / 22
A QA engineer is creating test cases for a login module. Which test case title follows professional naming conventions best?
A professional test case title must be unique, descriptive, and follow a consistent naming pattern.
Options A, B, and C are too vague and informal — they cannot be identified in a large test suite, give no indication of the test condition, and don't specify the interface under test. Option D is correct: it includes a unique identifier (TC-LOGIN-003) for traceability, the action under test (Verify that a registered user can log in), the exact condition (valid credentials), and the platform context (web interface). This format allows anyone to understand what the test covers without opening it.
Key vocabulary:
• Test case ID — a unique alphanumeric identifier used for traceability (e.g. TC-LOGIN-003)
• Test condition — the specific scenario or state being validated by the test case
• Traceability — the ability to link a test case back to a requirement or user story
• Naming convention — a standardised pattern for naming artefacts to ensure consistency across a test suite
2 / 22
You are writing preconditions for a test case verifying that a logged-in user can view their order history. Which preconditions section is the most complete and professional?
Preconditions must be specific, verifiable, and complete enough that any tester can set up the test state independently.
Options A and D are too brief to be actionable — they identify the general idea but omit critical details like which account to use or what data must exist. Option B is better but still lacks specifics (which user? how many orders?). Option C is the most professional: it lists each precondition as a numbered, verifiable item with concrete test data (email address), authentication state, minimum data requirement, and environment verification — eliminating ambiguity for any tester picking up this case.
Key vocabulary:
• Preconditions — the state the system must be in before the test steps begin
• Test data — specific values used in a test case (email addresses, amounts, IDs)
• Session token — a credential stored in the browser that identifies an authenticated user
• Smoke-tested — confirmed to be in a stable, deployable state via a basic health-check test run
3 / 22
Which set of test steps is most suitable for a professional test case verifying the password reset flow?
Test steps must be numbered, atomic, and include enough detail to be executed identically by any tester.
Option A uses the right structure but is too vague — "Check email" doesn't say how or where. Option B is a description, not a step sequence. Option C is incorrect — test steps are essential for repeatability and traceability. Option D is the professional standard: each step starts with an action verb, specifies where to navigate, includes exact test data (testuser@example.com), sets time constraints (within 2 min), and describes password complexity requirements — leaving nothing to interpretation.
Key vocabulary:
• Atomic step — a single, indivisible action in a test procedure (one click, one input)
• Password reset flow — the multi-step process for a user to recover access via email verification
• Complexity requirements — minimum password rules enforced by the application
• Repeatability — the ability for any tester to execute the same steps and get the same result
4 / 22
A test case verifies that a keyword search returns matching results. Which expected result is the most professional and measurable?
Expected results must be measurable, observable, and independent of subjective interpretation.
Options A and B are too vague — "results are shown" and "works correctly" cannot be objectively pass/failed. Option D introduces a subjective element ("is satisfied") that cannot be verified programmatically or consistently across testers. Option C is correct: it specifies minimum result count (≥1), the keyword under test ("invoice"), required UI elements per result (title, snippet, URL), and the expected count display format — every element can be objectively verified by any tester or automated assertion.
Key vocabulary:
• Expected result — the specific, measurable outcome the system must produce to pass the test
• Measurable — can be quantified or verified without subjective judgment
• Assertion — a programmatic check in automated tests corresponding to an expected result
• Description snippet — a short excerpt of page content shown in search result listings
5 / 22
A QA engineer has a test case for a feature that hasn't been deployed to the staging environment yet. No testing can be performed. Which status should be assigned to this test case?
Blocked and Not Run are distinct statuses — confusing them distorts sprint metrics.
Option A is wrong — Fail means the test was executed and the system produced an incorrect result. Option B is wrong — you cannot carry forward a Pass status from a previous sprint without re-execution. Option D ("Not Run") is used when a test case is simply not yet scheduled or skipped by intent, with no external impediment. Option C ("Blocked") is correct here: the feature hasn't been deployed, which is an external dependency issue — not a test failure. Using Blocked signals to the team that an action is needed to unblock progress.
Key vocabulary:
• Blocked — a test case that cannot be executed due to an unresolved dependency, environment issue, or upstream defect
• Not Run — a test case not yet executed in the current cycle with no external impediment
• Pass — the test was executed and the system met all expected results
• Fail — the test was executed and the system did not meet the expected results
• External dependency — something outside the QA team's control that affects test execution
6 / 22
Alex, the test automation engineer, is writing a comment on a failing unit test. Which of the following statements best reflects professional and actionable feedback?
'This test failed because the database connection timed out.'
The key here is providing specific reasons for failure. While 'Insufficient' might be used in some contexts, it's vague. The correct answer focuses on a measurable issue (response time) and relates it to a defined requirement (SLA). Options A and B are dismissive or don't address the problem; option C is completely unrelated.
7 / 22
Sarah, during a Slack conversation with the development team about a new API endpoint, states: 'We should test that the endpoint returns data in JSON format.' Which of the following is the most effective way to expand on this statement for clarity and completeness?
'The API response must adhere to the specified schema.'
While Sarah's initial statement identifies a basic requirement (JSON format), it lacks detail. The correct response emphasizes adherence to a defined schema – this is crucial for robust testing and documentation. Options A and B are irrelevant; C is incorrect, and D doesn't focus on the *format* of the response.
8 / 22
Ben needs to write a PR description for a test case designed to verify that an image upload function correctly handles large files. Which statement is the most professional and informative for reviewers?
'This test checks if the service works.'
A good PR description needs to clearly state *what* the test does and *how* it achieves that. Option 2 provides specific details about the file size limit and the expected outcome (no errors). The other options are too vague or simply confirm the test is running.
9 / 22
Chloe is analyzing an API response from a microservice. The response includes a status code of 400 and a message indicating 'Invalid request parameters.' Which statement best describes the appropriate action to take when writing a test case based on this information?
'Insufficient — the server should be up before testing.'
The correct answer accurately reflects the information provided in the API response. The test case should focus on validating both the status code and the specific error message returned by the service. This demonstrates a thorough understanding of the API's behavior.
10 / 22
Daniel, a QA engineer, is writing a test case for a new feature. He needs to select the most appropriate description for the 'steps' section of the test case. Which option best reflects professional practice?
Test Steps: 1. Navigate to the user profile page. 2. Click the 'Edit Profile' button. 3. Enter new values into the fields. 4. Save the changes.
The best answer provides detailed steps that are clear and sequential. This ensures the tester can accurately execute the test case. The other options lack sufficient detail or are too vague, making them unsuitable for a professional test case description. A good test case needs to be reproducible.
11 / 22
Sarah, the team lead, asks you to draft an email to the development team outlining requirements for a new API endpoint. What key information should be included in this email to ensure clarity and avoid rework?
The email needs a comprehensive technical specification. This includes data types, expected response formats (e.g., JSON structure), and detailed error handling scenarios. Failing to provide this level of detail increases the risk of misinterpretation and rework later in the development cycle.
12 / 22
Mark is writing a comment on a code review for a function that processes user input. The reviewer suggests adding more validation to prevent security vulnerabilities. Which of the following responses from Mark best demonstrates professional engagement and understanding?
Reviewer: 'We should add input sanitization to avoid potential XSS attacks.'
The correct response acknowledges the reviewer's concern and asks for clarification. Specifically requesting an example demonstrates a genuine effort to understand the technical issue and its implications. The other options are dismissive or show a lack of engagement with the review process.
13 / 22
Liam is participating in a standup meeting and needs to update the team on his progress with a test case. Which of the following statements best describes how he should communicate this information?
Liam: 'I'm working on the test case for the payment processing module.'
Liam should provide a concise update on his progress. The best option indicates he is actively working on the test case and has a clear plan. This keeps the team informed and allows for any necessary support or collaboration.
14 / 22
During a code review, David comments: 'This test fails because the database connection is null.' Which of the following responses from Emily best demonstrates professional and constructive feedback?
Emily's response acknowledges David's observation and suggests a constructive next step – investigating the database connection setup. Options B and C are overly prescriptive and dismissive, while option D is an unproductive request for clarification that could be addressed directly. A good QA engineer focuses on actionable feedback.
15 / 22
You are writing a Slack message to the development team about a newly discovered bug in the user authentication service. The message should be clear and concise. Which of the following messages is the MOST professional?
Option 1 uses overly informal language and lacks detail. Option 2 clearly describes the issue, its impact, and the required action (investigation). Options 3 and 4 are too brief or use casual phrasing unsuitable for professional communication. This emphasizes clear and concise reporting.
16 / 22
Ben is drafting a PR description for a test case that verifies the functionality of a new payment gateway integration. Which statement best reflects professional practice when describing the purpose of this test?
Option 1 is too vague. Option 2 provides a clear and specific description of what the test aims to achieve – validating successful payment processing through the new gateway. Options 3 and 4 are overly simplistic or lack technical detail, failing to articulate the test's purpose effectively.
17 / 22
Chloe is reviewing an API response from a microservice. The response contains a status code of 500 and a generic error message: 'Internal Server Error.' What should Chloe's immediate action be when reporting this to the development team?
Option 1 downplays the severity of the issue. Option 2 correctly identifies a server-side problem and requests crucial information (error logs) for further investigation. Options 3 and 4 are inappropriate responses that fail to acknowledge or address the error effectively.
18 / 22
Maria, a QA engineer, is writing a test case for a new feature that allows users to filter product listings. She needs to describe the expected outcome in a PR description. Which of the following options best reflects professional practice?
Option A: 'This test verifies that the filter works.'
Option B: 'The system should return a list of products matching the specified criteria, and the number of results displayed should be accurate.'
Option C: 'This test checks if the filter button is visible.'
Option D: 'This test ensures that the product listing page loads correctly.'
Incorrect options focus on superficial aspects (button visibility) or lack measurable criteria. The correct answer emphasizes a clear and quantifiable expected result – a filtered list with an accurate count – which is crucial for reviewers to understand the test's success and failure conditions. This demonstrates professional test case documentation.
19 / 22
David, a developer, has submitted a code change with a new unit test that consistently fails. He's received a comment from Emily in the code review stating: 'This test failed because the database connection is null.' What is the MOST appropriate response for David to provide?
Option A: 'The database connection should always be null, that's how it's designed.'
Option B: 'I don't understand what you mean. The test should pass if I fix the database connection.'
Option C: 'I will investigate the database connection and try to resolve the issue.'
Option D: 'The test is bad, it doesn't make sense.'
Option A demonstrates a lack of understanding and unwillingness to address the problem. Option B shows confusion without seeking clarification. The correct response acknowledges the feedback, indicates intention to investigate, and signals a commitment to fixing the issue – demonstrating professional collaboration in a code review.
20 / 22
Ben is drafting a Slack message to inform the team about a newly discovered bug in the user authentication service. The bug causes intermittent login failures. Which of the following messages best reflects professional practice?
Option A: 'There's a problem with login! Fix it!'
Option B: 'We found an issue where users are occasionally unable to log in. We're investigating the root cause and will provide updates.'
Option C: 'The authentication service is broken, don't use it.'
Option D: 'Login is working fine, I tested it.'
Option A is overly simplistic and lacks detail. It doesn't convey the severity or nature of the issue. The correct answer provides a clear description of the problem, indicates an investigation is underway, and promises updates – essential for maintaining transparency and managing expectations within a team.
21 / 22
Chloe is reviewing a test case designed to verify the functionality of a new API endpoint. The test case description includes the following steps: 'Send a GET request to /users and check the response status code.' Which of the following additions would MOST improve the quality and professionalism of this test case?
Option A: 'This test verifies that the endpoint returns data in JSON format.'
Option B: 'Ensure the API key is correctly configured before sending the request.'
Option C: 'Verify that the response contains a list of user objects.'
Option D: 'Check that the endpoint responds within 2 seconds.'
The original steps are too vague and lack specific verification criteria. While checking JSON format is relevant, it's not the primary focus of a basic API test. Adding 'Verify that the response contains a list of user objects' provides a measurable outcome – confirming the endpoint returns expected data – which demonstrates a thorough understanding of the test's purpose.
22 / 22
Daniel is writing a PR description for a test case designed to verify that an image upload function correctly handles large files. Which statement best reflects professional practice when describing the purpose of this test?
Option A: 'This test checks if the file uploads correctly.'
Option B: 'The test verifies the functionality of the image upload feature, focusing on its ability to handle large file sizes without errors.'
Option C: 'This test ensures that all images are uploaded successfully.'
Option D: 'This is a simple test for uploading images.'
Option A is too generic and doesn't highlight the key focus of the test. Option B provides a detailed explanation of the test's scope – specifically addressing large file sizes – which allows reviewers to understand the potential challenges and risks associated with this functionality. This demonstrates clear communication and thoroughness.
This exercise, "Test Case Writing", tests your understanding of testing & qa lab vocabulary and phrasing through 22 multiple-choice questions drawn from real workplace scenarios.
Is this exercise free to use?
Yes. Every exercise on CoderSlingo, including this one, is completely free — no account, sign-up, or payment required.
How many questions does this exercise have?
This exercise has 22 questions. Each one presents a realistic sentence or scenario with multiple-choice options and an explanation once you answer.
What happens after I answer a question?
You'll see immediate feedback showing whether your answer was correct, along with a short explanation of why — then a button to move to the next question.
Can I retry the exercise if I get questions wrong?
Yes. Once you reach the results screen, click "Try again" to reset your answers and go through the exercise from the start as many times as you like.
Do I need to create an account to take this exercise?
No account is needed. Your answers are scored in your browser during the session — nothing is saved to a server, so you can jump straight in.
Is my progress saved if I leave the page?
No — progress within an exercise resets if you navigate away or reload. Each exercise is short enough to complete in a few minutes in one sitting.
Who is this Testing & QA Lab exercise for?
It's designed for IT professionals and learners who want to sound natural discussing testing & qa lab topics in English — useful for meetings, documentation, interviews, and day-to-day communication with English-speaking teams.
How is this different from reading a glossary or blog article?
Exercises like this one are active recall drills — you have to choose the correct term or phrasing yourself, which builds retention faster than passively reading a definition.
Where can I find more Testing & QA Lab exercises?
Browse the full Testing & QA Lab exercises hub for more practice, or explore other exercise categories covering vocabulary, grammar, interviews, and workplace communication.