0
0
Testing Fundamentalstesting~5 mins

Test case writing in Testing Fundamentals - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a test case in software testing?
A test case is a set of instructions or steps designed to check if a software feature works as expected. It includes inputs, actions, and expected results.
Click to reveal answer
beginner
Name three essential parts of a test case.
1. Test steps (actions to perform)<br>2. Test data (inputs used)<br>3. Expected result (what should happen)
Click to reveal answer
beginner
Why is it important to write clear and simple test cases?
Clear and simple test cases help anyone understand and run the test easily, reducing mistakes and saving time during testing.
Click to reveal answer
beginner
What does it mean if a test case 'passes'?
A test case passes when the actual result matches the expected result exactly, showing the feature works correctly.
Click to reveal answer
beginner
Give an example of a good test case title.
Example: 'Login with valid username and password should succeed'. It clearly states what is tested and the expected outcome.
Click to reveal answer
Which part of a test case describes what you expect to happen?
AExpected result
BTest data
CTest steps
DTest environment
Why should test cases be easy to understand?
ATo avoid confusion and errors during testing
BTo make testing longer
CSo only developers can run them
DTo hide bugs
What is NOT usually part of a test case?
ATest data
BExpected result
CCode implementation details
DTest steps
If a test case fails, what does it mean?
AThe software works perfectly
BThe actual result did not match the expected result
CThe test case was written incorrectly
DThe test environment is always wrong
Which title is a good test case title?
ATest 1
BBug fix
CCheck login
DLogin with valid username and password should succeed
Describe the key parts of a test case and why each is important.
Think about what you need to do, what you use, and what you expect.
You got /4 concepts.
    Explain what it means when a test case passes or fails.
    Focus on comparing what happens to what should happen.
    You got /4 concepts.