Active TopicsActive Topics  Display List of Forum MembersMemberlist  CalendarCalendar  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin


 One Stop Testing ForumTypes Of Software Testing @ OneStopTestingManual Testing @ OneStopTesting

Message Icon Topic: Designing Test Cases

Post Reply Post New Topic
Author Message
Mithi25
Senior Member
Senior Member
Avatar

Joined: 23Jun2009
Online Status: Offline
Posts: 288
Quote Mithi25 Replybullet Topic: Designing Test Cases
    Posted: 28Sep2009 at 11:41pm
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. Figure 2.10 illustrates the point at which test case design occurs in the lab development and testing process.

Figure 2.10   Designing Test Cases

Designing Test Cases

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.

Table 2.1 provides an example of the first few steps of a detailed test case.

Table 2.1   Sample Detailed Test Case

 

Step Procedure Success Criteria Outcome

1

Log off the server, and return to the netlogon screen.

None.

 

2

Click the domain list to open it.

The local server name does not appear in the list.

 

3

Click the domain list to open it.

The root domain appears in the list.

 

4

Log on to the server using an account with administrative credentials.

The account logs on to the server without errors.

 

When planning your tests, remember that it is not feasible to test everything. Instead of trying to test every combination, prioritize your testing so that you perform the most important tests — those that focus on areas that present the greatest risk or have the greatest probability of occurring — first. For example, you might choose to test the slowest client computer, the busiest server, or the least reliable network link. Then, if time allows, you can perform lower priority tests.




Post Resume: Click here to Upload your Resume & Apply for Jobs

IP IP Logged
JustinH
Newbie
Newbie
Avatar

Joined: 28Jul2009
Location: United States
Online Status: Offline
Posts: 13
Quote JustinH Replybullet Posted: 29Sep2009 at 9:02am
Mithi,

Very good post, but there is another very important consideration to mention in test case design.

Too often, sets of tests are much less effective than they should be because, when considered as a whole, they both (a) cover the same combinations of variables multiple times (and therefore waste time that could be better spent elsewhere) and (b) accidentally forget to test for important combinations that should be tested (and therefore risk defects not being detected).

More information on this topic is available at: http://hexawise.wordpress.com/2009/09/18/efficient-and-effective-test-design

I've helped build a tool (with a free version available) to solve both of these problems.  It is available to anyone who wants to sign up for it at: http://www.hexawise.com/users/new  Currently, both the fully-featured commercial version and the free version are being provided for free; over time, we w
ill add additional features to the commercial version and begin charging for it.

For testers wanting even more information about this approach (which has been proven to more than double the number of defects that testers identify per hour) in a diverse range of: (a) industries, (b) phases of software testing and (c) types of software applications, please also see:  http://www.combinatorialtesting.com/clear-introductions-1

It is very easy, incidentally, to measure how powerful this tool and method are.  Simply give one tester access to the tool to design his or her test cases; have a different tester identify his or her test cases manually.  Give them each one or two days to find as many defects as they can.  Someone who knows how to use the tool will usually be able to find both (a) more than twice as many defects as the person who designed tests manually and (b) every single defect that was identified by the person who designed their tests manually.  Don't take my word for it; try it for yourself.


Edited by JustinH - 29Sep2009 at 9:08am
- Justin
___________________________
Founder and CEO of Hexawise
www.hexawise.com
"More coverage. Fewer tests."
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 4.547 seconds.
Vyom is an ISO 9001:2000 Certified Organization

© Vyom Technosoft Pvt. Ltd. All Rights Reserved.

Privacy Policy | Terms and Conditions
Job Interview Questions | Placement Papers | Free SMS | Freshers Jobs | MBA Forum | Learn SAP | Web Hosting