How to Write Effective Test Cases

Posted By : Anjali Pandey | 26-Dec-2017

When we are going to write test cases we need to follow proper structure and focus on these points:-

  1. Description
  2. Pre-Conditions
  3. Steps to reproduce
  4. Test Data
  5. Actual Output
  6. Expected Results
  7. Status

 

Including the above points the most important fact is bussiness requirement. There are two types of test cases:-

 

1. Positive Test Cases: When we write a test case to keep in mind the expected output which meets to the client requirement.
2. Negative Test Cases: When we write a test case out of expected output, means what the system should not perform.

 

Principles to write test cases:

 

1. Write a test case according to user purpose: Our main motive of testing is to check that the product meets user requirement or not. so when we are writing the test cases needs to keep their requirements in mind and write the cases accordingly.

2. Domain Knowledge: When we are going to test any software, the tester should have a good understanding of a domain. because business varies domain to domain. In such situation If a tester has a good knowledge of the domain, then He/She will do it properly according to the business.

3. Don't do Assumption: Never test anything as per your assumption. just go through the business documents and do the testing according. If you have assumed any feature or functionality It may differ from the actual client requirement.

4. Relevant Artifacts Attachments: I you are writing test cases and it is very hard to describe it or may be it's a very rare case what you are going to write. so it's a better way to attach a screen-cast to the test case. which is helpful for another one who doesn't have much knowledge of this domain.

5. Don't Repete Test Cases: Our motive to write test cases are, to cover almost functionality with the minimum number of test cases. So avoid writing similar cases or conditions again and again.

6. Defined and Easy Understandable: When you are writing a test case, It should be easy to understand.

 

Related Tags

About Author

Author Image
Anjali Pandey

Anjali is a QA Software Engineer, with experience in Manual Testing. She loves finding Bugs in application. Her hobbies are going for picnics with Friends and Reading stories.

Request for Proposal

Name is required

Comment is required

Sending message..