Skip to content

Writing test scenarios and test cases

November 4, 2011

Last blog we have seen brief introduction to testing.
For different types of testing I would be uploading a pdf where you can learn types of testing, sample test plan and other theorotical details.

Here we will concentrate more on test scenario and test cases.

Test scenario:
—————-

A new product is under development, we as a testing team are given design docs to write test cases for each feature.

Before writing any test case, one should concentrate on various scenarios which the product will face when it will be at customers site.

By doing this you are sure that very obvious things are not missed.

Scenario writing should be given time, thorough review process should be followed. Because this would be forming the base for future test cases and testing.
Scenario should be one liner and less descriptive. The intention here is not to provide details, but the specific idea of testing a particular case.

For e.g. if we have to write testing scenarios for a Login Screen (this is just an example, it has username password and submit cancel button)
Various scenarios to test the Login screen can be:

1. Different combinations of username and passwords
2. User unable to log because of various reasons
3. Incorrect combination of username and password

Also, if a feature like Automatic Updates of a product is to be tested, the scenarios can be:

1. Check for manual updates option
2. Scheduling auto updates
3. Updates in slow bandwidth
4. Updates when network failure is intermettent/disconnected
5. Other updates are in progress
6. Pause/resume, stop/restart funtionality

Test cases:
————-

Once scenario writing is completed, test case writing process can be started, this process has to be inlined with scenarios written.

A single scenario can have multiple test cases. A test case is series of steps to be performed, which has expected output.

To write test cases for above scenarios, we can write as:
1. Different combinations of username and passwords
a. Username less than 4 characters
b. Passeord less than 4 characters
c. Username/password has various special characters

2. User unable to log because of various reasons
a. User is blocked
b. User is locked
c. Password is expired
d. Wrong password entered multiple times

3. Incorrect combination of username and password
a. Correct username and wrong password
b. Wrong username and correct password

so on and so forth
Likewise we can write different test scenarios and test cases.

Test case format:
———————

Their are various test case format, we will try to write more specific and standard format.

The format can be as follows:

Test case No.:
Test case summary:
Prerequisite:
Steps:
Expected result:
Actual result:

Thanks,
Yogesh Kulkarni
testityourself

Facebook

http://www.facebook.com/groups/198428193561634/

From → Uncategorized

Leave a Comment

Leave a comment