Skip to content

Biting the hand that feeds IT

The Register ®

Software:


Related Whitepapers

[Print][Mobile][Alerts]

How can you possibly test modern software fully?

Pairing up for fun and profit

Page: < Prev 1 2 3 4 5 Next >
Published Sunday 15th July 2007 07:02 GMT

Implementing all-pairs testing

If testing all the possible combinations of values is not necessary, the question becomes how to construct the all-pairs tests. There are several applications that allow you to enter variables and generate the tests. However, it is helpful to try constructing the test cases manually once or twice so you understand exactly how all-pairs testing works.

Identifying the variables

Before you can implement all-pairs testing, you need to identify the variables. For example, single sign-on support was recently added to your company's sales management application, and the login screen was redesigned for this feature. The application runs on a variety of operating systems, supports several databases, and includes a cross-platform graphical user interface (GUI) and a web-based client. The following table (Figure 3) summarises the variables that affect the tests:

Figure 3.

[Note: For the sake of simplicity, the following examples assume that all the variable combinations are valid.]

How do you effectively test single sign-on support based on these different variables? A simple calculation shows there are 48 possible combinations (3 x 4 x 2 x 2). All-pairs testing can significantly reduce that number.

Creating the first pair of values

After identifying the variables, use a spreadsheet to combine the values from a pair of variables. Before starting, arrange the variables by the number of values they contain from greatest to least. In our example, the variables would be placed in the following order: Database, Operating System, Client Type, and Browser. Label the first column in the spreadsheet with the name of the variable with the most values (Figure 4):

Figure 4.

Label the second column with the name of the variable with the second-highest number of values (Figure 5):

Figure 5.

Pair the first value in the first variable column with the first value in the second variable column (Figure 6):

Figure 6.

Then match the first value from the first variable column with the second value in the second variable column (Figure 7):

Figure 7.

Continue the process until the first value of the first variable is paired with each of the second variable values (Figure 8):

Figure 8.

Skip a row in the spreadsheet to improve readability and to allow for expansion. Then match the first variable's second value with all the values from the second variable (Figure 9):

Figure 9.

Repeat the steps until all values in the first two variables are paired up (Figure 10):

Figure 10.

Page: < Prev 1 2 3 4 5 Next >
Track this type of story as a custom Atom/RSS feed or by email.
Previous Article Next Article
whitepaper title

Solution Brief: Reduce Energy Costs

Energy consumption has become a big issue. Dramatically increase server utilization and significantly reduce energy costs through Virtualization..
whitepaper title

Making Green IT a Reality

Customer Perspectives on the Impact of Storage Vendor Decisions on Power, Cooling, & Space in Enterprise Data Centers.
Whitepapers Jobs

Top 20 storiesAll The Week’s HeadlinesArchiveSearch