Tips for Writing Effective Test Case

A test case is a set of conditions which executed by software tester during testing functionality of the software or application. If you write test cases you should have deep knowledge of software or application which you have work on.

Test case should be easy to understand, accurate and having all steps which followed by tester during testing. Writing test cases is an activity or skills. Many types of steps followed in test cases. Many tools for writing test cases are available in market like test director you can also use text file and excel file to write test cases. For writing test case you need to understand the requirements which are testable or not also you need to understand the functionality of code of program. Many steps are performed by software tester during writing test cases.

To write test case first you have allocate the ID of particular test case like TN01 for identifying test cases. Assigned test suite ID a test suite ID is a collection of test cases. Than software tester will write the objective of the task to check what the process will follow during testing. Software tester puts different inputs and conditions to get correct output.

Blog

Suppose you are writing test case for login form, if the login form is consist of two textbox and one login button in this case software tester applies different conditions like To check the process of login when all the mandatory fields are kept blank and click on “Login” button or when user name is kept blank and password is entered and click on login or when the user name is entered and password field is kept blank and click on login or when an incorrect format of user name(Invalid format of email ID) is entered in the field and a correct password is entered and click on login or when an incorrect format of user name(Invalid format of email ID) and keep the password field blank and click on login or when a correct user name is entered in the field and an incorrect password is entered and click on login or when all the mandatory fields are filled correctly and click on “Login” button and to check login with new generated password after generating a password for the user. It’s all falls in objectives of test cases.

The next step in test case is to Prerequisites. In Prerequisites we writes what we want the Prerequisites in case of login form is the login form should be open. After writes Prerequisites software tester writes the steps which performed by tester during testing. In case of login form the steps are, keep all the mandatory fields blank and Click on “Login” button or do not enter user name, Enter password and click on “Login” button or Enter incorrect format of user name, Enter correct password and then Click on “Login” button. These steps followed by tester during write test cases.

Moving ahead is the expected result. If we get correct result which we want so status of particular task is goes to pass if expected result is not matched given input so status of task is goes to fail. In test case you can also write the name of tester whose executed test case, test environment, date of test case creation, date of test case execution and also you can write comments/remark for particular task

Normally the format using software tester for writing test case looks like this

Test case ID Objectives Prerequisites Steps Expected Result Actual Result Result Remark

 

Leave a comment