GO-V.ORG
As seen in

All-pairs testing

In computer science, all-pairs testing or pairwise testing is a combinatorial method of software testing that, for each pair of input parameters to a system (typically, a software algorithm), tests all possible discrete combinations of those parameters. Using carefully chosen test vectors, this can be done much faster than an exhaustive search of all combinations of all parameters by "parallelizing" the tests of parameter pairs. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

In computer science, all-pairs testing or pairwise testing is a combinatorial method of software testing that, for each pair of input parameters to a system (typically, a software algorithm), tests all possible discrete combinations of those parameters. Using carefully chosen test vectors, this can be done much faster than an exhaustive search of all combinations of all parameters by "parallelizing" the tests of parameter pairs. More rigorously, if we assume that a test case has N parameters given in a set \{ P_i\} = \{ P_1 , P_2 , ... , P_N \} . The range of the parameters are given by R(P_i)= R_i . Let's assume that |R_i|= n_i . We note that the number of all possible test cases is a \prod n_i . Imagining that the code deals with the conditions taking only two parameters at a time, might reduce the number of needed test cases. To demonstrate, suppose there are X,Y,Z parameters. We can use a predicate of the form P(X,Y,Z) of order 3, which takes all 3 as input, or rather three different order 2 predicates of the form p(u,v) . P(X,Y,Z) can be written in an equivalent form of p_{xy}(X,Y) , p_{yz}(Y,Z) , p_{zx}(Z,X) where comma denotes any combination. If the code is written as conditions taking "pairs" of parameters, then the set of choices of ranges X = \{ n_i \} can be a multiset , because there can be multiple parameters having same number of choices. max(S) is one of the maximum of the multiset S The number of pair-wise test cases on this test function would be:- T = max(X) \times max ( X \setminus max(X) ) Therefore, if the n = max(X) and m = max ( X \setminus max(X) ) then the number of tests is typically O(nm), where n and m are the number of possibilities for each of the two parameters with the most choices, and it can be quite a lot less than the exhaustive \prod n_i · The idea is to apply sorting to the set X = \{ n_i \} so that P = \{ P_i \} gets ordered too. Let the sorted set be a N tuple :- P_s = \; ; \; i Now we can take the set X(2) = \{ P_{N-1} , P_{N-2} \} and call it the pairwise testing. Generalizing further we can take the set X(3) = \{ P_{N-1} , P_{N-2} , P_{N-3} \} and call it the 3-wise testing. Eventually, we can say X(T) = \{ P_{N-1} , P_{N-2} , ... , P_{N-T} \} T-wise testing. The N-wise testing then would just be, all possible combinations from the above formula.

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"All-pairs testing". 1770402769. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1336973778

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·