Hellohttps://secure.gravatar.com/avatar/a53884c311c152c1a1e920b709183282?s=96&d=mm&r=x

blogs

Salient Tips for Writing Effective Test Cases

Salient Tips for Writing Effective Test Cases 03 Mar,2016

Test cases plays an important role for any project as this is the basic step in any testing cycle. If anything goes wrong at this step the impression get deduce as you move forward in the testing cycle.

A test case is a state under which a tester will decide whether an application/software system is working as it is originally established for it to do. It will decide whether a software program has passed or failed.

It may take many test cases to decide that a software program is considered successful to be released. Test case writing plays an important role and makes a test case an important part of the test execution process.

Steps for writing Test cases:

Step 1: Naming Test Case Convention

Mentioning the test case convention name is necessary because it will make sense to anyone who will refer the test case in future. This will help your team mates to find out which test case is one you needed.

You can name the test whichever the way you want but should be sensible in comparison to test cases ID and test cases name. Although this is the simplest step to follow but many of us don’t follow it.

Step 2: Description

Description will contain all the details about what you are going to test , particular behavior being verified by test ,what needs to be verified and in which test data it is to be used.

Step 3: Assumptions and Preconditions

You should communicate all assumptions while writing test case, beside with any preconditions that must be met before the test can be executed.

Step 4: Input Test Data

Identification of test data is time consuming task. It may sometime need you to create a test data afresh as creating a new data will take lesser time with respect to identification.

To make it easier you should you can give test data to be used for test case within description or test case step. If you know that the test data can be reused you can mention that data .

You could also decide to mention the type of data which is required to run the test and not the real test data value.

This applies for projects where the test data keeps on changing as multiple teams use it and may not be in the same state when I use it the next time.

Step 5: Covering Verification Points

Test case steps should be properly designed and must be covering all the verifications for the behavior under test.

Test case steps given for your projects through that you can make sure that the Test Case optimally covers all the verification points.

Step 6: Expected Results

Test case should mention the expected result of the applications under test. All the steps should mention that what you expect the output of those steps.

So, it is necessary to mention all the details of those steps whose outcome you expect after the test.

Step 6: Reusable

Before writing the test case you should be confirmed that it could be re-used in future for other projects. It will be helpful if you will get the test case written earlier for the same module you can update those instead of writing new.

So you can re-use the previous test case in future and will save time.

Step 7: Post Conditions

In the post conditions you have to specify the various things that need to verify after the test was carried out. They are used to give guiding instruction to restore the system.

Conclusion:

At last, writing effective test cases is an important aspect of Software Testing process with all proper details, prepare it according to end user’s perspective and cover all the important points.

I have tried to explain all the important points that need to be kept in mind while writing Effective test case.

Rajeev Verma Rajeev Verma works as Senior Test Engineer at BugRaptors. He is working on several Web Application , Network Vulnerability assessments, Mobile Application , Secure Network Architecture reviews. He has knowledge in various automated and manual security testing methodologies. He has also frequently coordinated with stakeholders as an on-site resource to assist them in discovering security loopholes and fixing the identified issues.

Leave a Reply

Your email address will not be published. Required fields are marked *

Name field is required !

Related Posts

Efficient ways to implement smoke tests to authenticate goal...
Salient Tips for Writing Effective Test Cases

Assume you have the big idea for a new product or its feature. Prior to investing loads of money and time into it, you need to authenticate it. In oth...

Read More
Efficient ideas to explore the types of requirements for tes...
Salient Tips for Writing Effective Test Cases

Whenever we test an application, the main point in mind is to verify the requirements. But, we normally find the client providing feedback, even if al...

Read More
Effective Ways Followed By QA To Speed Up The Software Relea...
Salient Tips for Writing Effective Test Cases

Software testing is a process of improving the quality of developed software by finding bugs during the whole software application development phase. ...

Read More
Introduction to Testing in Production & Tips to do it the Ri...
Salient Tips for Writing Effective Test Cases

Testing in production (TiP) can be described as the process of performing several types of software tests in a production environment where it is acce...

Read More

Popular Blogs

Why To Use DevOps For Software Testing?
Why To Use DevOps For Software Testing? Read More
Software Testing Trends For 2019. What To Expect?
Software Testing Trends For 2019. What To Expect? Read More
An Update To Software Testing Trends
An Update To Software Testing Trends Read More
Why We Choose Java Over The Python In Selenium Web Driver?
Why We Choose Java Over The Python In Selenium Web Driver? Read More
How Usability Testing Helps In Building Successful Apps?
How Usability Testing Helps In Building Successful Apps? Read More

Sign up FOR NEWSLETTER !

Is your application fully functional? Write us to know.
contact us