Designing Test Cases

Designing Test Cases

A test case is a detailed procedure that fully tests a feature or an aspect of a feature. Whereas the test plan describes what to test, a test case describes how to perform a particular test. You need to develop a test case for each test listed in the test plan.

A test case includes:
  • The purpose of the test.

  • Special hardware requirements, such as a modem.

  • Special software requirements, such as a tool.

  • Specific setup or configuration requirements.

  • A description of how to perform the test.

  • The expected results or success criteria for the test.

Test cases should be written by a team member who understands the function or technology being tested, and each test case should be submitted for peer review.

Organizations take a variety of approaches to documenting test cases; these range from developing detailed, recipe-like steps to writing general descriptions. In detailed test cases, the steps describe exactly how to perform the test. In descriptive test cases, the tester decides at the time of the test how to perform the test and what data to use.

Most organizations prefer detailed test cases because determining pass or fail criteria is usually easier with this type of case. In addition, detailed test cases are reproducible and are easier to automate than descriptive test cases. This is particularly important if you plan to compare the results of tests over time, such as when you are optimizing configurations. Detailed test cases are more time-consuming to develop and maintain. On the other hand, test cases that are open to interpretation are not repeatable and can require debugging, consuming time that would be better spent on testing.

Test Case Design

Test Case ID:
It is unique number given to test case in order to be identified.

Test description:
The description if test case you are going to test.

Revision history:
Each test case has to have its revision history in order to know when and by whom it is created or modified.

Function to be tested:
The name of function to be tested.

Environment:
It tells in which environment you are testing.

Test Setup:
Anything you need to set up outside of your application for example printers, network and so on.

Test Execution:
It is detailed description of every step of execution.

Expected Results:
The description of what you expect the function to do.

Actual Results:
pass / failed

If pass - What actually happen when you run the test.

If failed - put in description of what you've observed.

Comments

Do test cases needs to be prepared first or they are documented during the testing process. I an new to this concept.
QA Testing said…
It appears that you have done a very good job of listing all the steps in designing test cases. It seems that this step is only limited by the imagination and experience of the software tester.
Win8 said…
I can't wait to read far more from you. This is actually a tremendous web site.
Win8 said…
I can't wait to read far more from you. This is actually a tremendous web site.
Unknown said…
Nice to come across with this tutorial. I have been software tester in one of the leading Software testing Company in Calicut, I have been planning to figure our some selenium methods. Can you help me to figured it out?
divya said…
after reading i had clear my question about testing. thanks for sharing
software testing course in chennai
hema said…
Excellent idea!!! I really enjoyed reading your post. Thank you for your efforts. Share more like this.

Software Testing Courses Online Certification
Online Content Writing Course

Kushalmodi12355 said…
Software testing classes in Pune|Software testing course in Pune|Stad Solutions
software testing classes in Pune, software testing course in Pune, software testing course, software testing classes, software testing training institute in pune, software testing training classes in pune, software testing training course in pune
Now we are providing the best software testing classes and course in Pune, Maharashtra as the demand for IT is increasing. You have landed on the right page. STAD Solution is the group of knowledgeable software Tester Trainers delivering sophisticated Software Testing Courses in Pune. These courses for software testing encompass Manual Software Testing Training and Automation Software Testing Training. STAD Solution is also provides the Job oriented Software Testing Training which offers Software Testing Training with 100% Job Guarantee program.
Manikandan said…
Great blog. Thanks for sharing such a useful information. Share now.
Pytest Online Training And Certification
Pytest Online Certification
Devya said…
So for I used to comment anywhere /any blogs or videos now I do commenting ,,really it matter ,,thanks lot ,explaining in details,,,
right here
GAMESH TAWADE said…
3. Wow!! Really a nice Article. Thank you so much for your efforts. Definitely. it
Will be helpful for others. I would like to follow your blog. share more like this.
Thanks Again.

Next page
sam kirubakar said…
I am really very happy to visit your blog. Directly I am found which I truly need. please visit our website for more information
Software Testing Services
Great share! Thanks for the information. Keep going!

Popular posts from this blog

Cyclomatic complexity

Appium Configuration with Visual studio for selenium C# development