What Is A Test Case
What Is A Test Case
What Is A Test Case
Test case - is the smallest unit of the testing plan - which includes a
description of necessary actions and parameters to achieve and verify the
expected behaviour of a particular function or the part of the tested
software.
If you have a task to check some functionality, you can create a test script
or user story. So you need to understand where to start testing, which
general steps need to be executed and what the result should be.
And then this scenario is broken down into more detailed parts – test cases
– to define all positive, negative, localisation and other behaviours of the
software.
For example, testers need to test the functionality of uploading photos.
Now, this scenario should be divided into detailed test cases, for
example:
And so on. The number of test cases depends on the experience and
imagination of the tester.
Therefore, the process of writing test cases starts from forming a test
scenario or user story, and then it can be divided to check different
occasions.
A good test case template maintains the test artifact consistency for the test
team and makes it easy for all stakeholders to understand the test cases.
Writing of test cases in a standard format reduce the test efforts and the
error rate. Test cases format is more desirable in case if you are reviewing
test cases from experts.
Low
Test Priority
Medium
High
Positive
There are test cases aimed at checking the correct operation of the claimed
functionality using the correct input format specified in the software
documentation.
For example, positive test cases check all right formats of emails, which
must meet the following requirements.
I. The first part of the email address, before @ may contain any of these
characters ASCII:
Negative
There are test cases that check your anticipated every possible situation
that should lead to an error message. Also, this type of test cases includes a
verification that can lead to unexpected situations, ie those that are not
described in the documentation.
For example, you can test the field email, introducing the characters that
are not included in the list mentioned above. You can also try to interrupt
the fields, check whether the data is stored in the system reboot or exposure
to other external factors.
Boundary value
To check the values on either side constraints. One of these relates to tests
positive, the other to negative. It is better to isolate them not to miss. These
tests are an indication that you own test design, which you can see below.
For example, you found the information in the documentation that the
password must contain at least 6 and no more than 60 characters. So you
have to ascertain what happens if you type 5, 6, 60 and 61 characters. Do
not forget about a case when the field is empty.
If documentation does not describe such restrictions, you can offer them
themselves, discussing with the team!
Integration
Testing localisation
Check all UI elements in different languages and their locations (if there is a
support for languages with different rules of writing and reading).
For example, if your software supports one of the location where the UI is
placed from the right to left, you should pay attention to the work of Drop-
Down List, check boxes, switching elements On / Off, etc.
Written tests to check GUI. You can describe the appearance of tips in the
program hotkeys, errors, etc.
If you have enough time, you can write test cases that will help you with
cross-platform testing, especially if the program depends on platforms.
If you have a great software that supports multiple languages, make a
separate chapter for localisation test case.
If you are not using any test case management tool, you can use any open
source tool or Excel Sheet to manage and execute your test cases.
Test case templates and examples are very useful because using them you
can save time and resources for the cover product by a large number of test
cases.
Test case formats vary by organisation. There are a lot of methods of the test
case documentation, some of them:
Example 1
It is very convenient in case when the tester needs to record great detail of each step. Well
suited to the case when test cases are made for new testers. It will help them to cover product
by quality tests and do not miss any important data.
Test Case
Test Case ID: BU_001 Test Designed by: <Name>
Test Title: Test the Login Functionality in Banking Test Execution date: <Date>
Dependencies:
Status
Step Test Steps Test Data Expected Result Actual Result Notes
(Pass/Fail)
Navigate to login User should is
1 Pass
page User should be able to able to login
login
Provide valid
3 Password: 1234 Credential can be entered As Expected Pass
password
Post-conditions: User is validated with database and successfully login to the account.
Example 2
If in unnecessary details, this example saves time and resources.
Test Case Test the Login
Test Case ID BU_001
Description Functionality in Banking
Test
Case
(Pass/F
Tester's Name <Name> Date Tested 1-Jan-2017 Pass
ail/Not
Execute
d)
2 2 Pass = df12@434c
3 3
4 4
Test Scenario Verify on entering valid userid and password, the customer can login
Pass /
Fail / Not
Step # Step Details Expected Results Actual Results
executed /
Suspended
Example 3
If necessary, accurate test data to be tested, it will be convenient to use. Which has “Data Set”
for different variations in data.
Test Activities
Example 4
Actual
ID Summary Steps Expected Result Notes
Result
1 Upload a photo as not logged user
1.1 Check if the Upload a 1.Click the Upload a The Upload a photo Fail Bug#1
photo page opens photo link page doesn’t open
the page doesn’t
photo page opens
open
1.Open application
Pre-steps Execute login with
correct data