Skip to main content
QUICK REVIEW

[Paper Review] A Review of Pair-wise Testing

Jimi Sanchez|arXiv (Cornell University)|Jun 1, 2016
Software Testing and Debugging TechniquesComputer Science11 references4 citations
TL;DR

This paper reviews pairwise testing as a combinatorial testing technique that generates minimal test cases covering all pairs of input parameter values, significantly reducing test suite size while achieving high fault detection (93% for 2-way interactions). It proposes a genetic algorithm-based approach, implemented in the open-source tool PWiseGen, to efficiently generate minimal pairwise test sets, demonstrating competitive performance against existing methods despite the NP-hard nature of the problem.

ABSTRACT

In software testing, the large size of the input domain makes exhaustively testing the inputs a daunting and often impossible task. Pair-wise testing is a popular approach to combinatorial testing problems. This paper reviews Pair-wise testing and its history, strengths, weaknesses, and tools for generating test cases.

Motivation & Objective

  • To analyze the strengths, weaknesses, and practical applications of pairwise testing in software engineering.
  • To evaluate the effectiveness of pairwise testing in detecting faults compared to higher-strength interactions.
  • To explore algorithmic approaches for generating minimal pairwise test sets, especially given the computational complexity of the problem.
  • To present and validate a novel genetic algorithm-based method for minimal pairwise test case generation.
  • To develop and release an open-source tool, PWiseGen, to support automated pairwise test generation.

Proposed method

  • The paper formulates the pairwise test set generation problem as a search problem to minimize test case count while covering all pairs of input values.
  • A genetic algorithm is applied to evolve test case sets, using chromosomes that represent test cases and applying crossover and mutation operations to improve fitness.
  • The algorithm iteratively optimizes solutions by selecting better-performing test sets based on coverage of all input pairs.
  • The approach is evaluated against existing tools and methods, with performance measured by test set size and coverage efficiency.
  • The authors implemented and released PWiseGen, an open-source tool based on their genetic algorithm approach for pairwise test generation.
  • The method is validated using real-world software configuration testing scenarios, emphasizing scalability and minimal test suite size.

Experimental results

Research questions

  • RQ1How effective is pairwise testing in detecting software faults compared to higher-strength interaction testing?
  • RQ2Can a genetic algorithm effectively minimize the number of test cases while ensuring full pairwise coverage?
  • RQ3What are the limitations of current tools in generating minimal pairwise test sets, and how can they be addressed?
  • RQ4To what extent does the proposed genetic algorithm outperform existing approaches in terms of test set size and computational efficiency?
  • RQ5How can pairwise testing be enhanced to account for risk-based input combinations not captured by uniform pair coverage?

Key findings

  • Pairwise testing achieves 93% fault detection for 2-way interactions and 98% for 3-way combinations, indicating that most defects arise from single parameters or pairs.
  • Despite its advantages, pairwise testing may miss 10–40% of system bugs, particularly in safety-critical systems.
  • The proposed genetic algorithm approach in PWiseGen produces competitive results compared to existing tools, demonstrating effectiveness in minimizing test case count.
  • The NP-hard nature of the problem means no known efficient optimal solution exists, but heuristic methods like genetic algorithms provide practical scalability.
  • Tools like PWiseGen are effective aids but cannot replace experienced testers, who must manually include high-risk or critical input combinations not selected by the algorithm.
  • Pairwise testing alone is insufficient for safety-critical systems, and should be combined with other testing strategies for full coverage.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.