Test Cases and Test scenarios: Definition, Examples, Template
What is Test case?
When there are lots of test cases and very less time to execute the test cases what will you do?
- Test case consist of detailed step's what needs to be followed in order to perform testing.
- Test case is a set of conditions using which tester identifies whether the software/application under test meet the requirement or works correctly.
- Whenever a test case is developed with valid set of data then its is called as positive test case.
- If the test case consist of invalid set of data then it is called as negative test case.
Test Case Parameters:
- Test case Id: Here each and every test case is given a id.
- Test Case Description: It consist of details about what needs to be tested.
- Precondition: Precondition is a condition which needs to be satisfied before entering test cases.
- Example:
- To forward an email from inbox the precondition is atleast one email should be present in inbox.
- To book a flight ticket the precondition is atleast one ticket should be available.
- Steps: It consist of steps to follow to perform testing.
- Data: It consist of data to be provided to application to perform testing.
- Expected Result: Expected result consist of what should be the outcome when a test case is executed. Test execution should match expected result, If it does not matches expected result then ideally it is a bug.
- Actual Result:When a test which is executed does not matches expected it comes under actual result.
- Status:It consist of Test "Pass", Test "Fail", If testing is blocked due to some issue then status is given as "Blocked", if testing is not performed then "Not Executed" status is given.
What is Test case Severity?
- Severity of test case help us to classify how important the test cases are .
- Test case Severity is classified into three types:
- High.
- Medium.
- Low.
When there are lots of test cases and very less time to execute the test cases what will you do?
Answer: When the time is less and test cases are more, I will execute the test cases based on severity i.e I will execute all the test cases with severity high , even after that if there is some more time left then, I will execute test cases with severity medium, even after that if there is some more time left then, I will execute test cases with severity low.
Sample Login Test Cases with template :
Try this examples on your own(Refer above Template):
- Write a test case to upload a photo on Facebook .
- Write a test case to save email in drafts.
- Write a test case to delete an email from Inbox.
What is Test Scenario?
- It is a high level description of what needs to be tested.
- Test scenarios Examples :
- Compose and email.
- Delete and email.
- Save the email in drafts.
- Login to application.
- Note: For a particular scenario we can write several test cases.
Test Scenario parameters:
- Test Scenario Id: It is a id given to each and every test scenarios.
- Test Scenarios Description: In test scenarios description we give high level description of the application, Based on the test scenarios test cases are written.
- Number of test cases: Here we specify how many test cases are written for each and every test scenarios.
Sample Facebook Test Scenarios with template:
Also Read : Techniques To Design Test Cases
Comments
Post a Comment