How many combinations of tests would be there for example, if
a
can take values from
1
starbright49ly
Answered question
2022-05-29
How many combinations of tests would be there for example, if can take values from to can take values from to can take values from to , and can take m, n and p distinct values respectively. What are the total number of pairwise combinations possible? With a pairwise testing tool that I am testing, I am getting results for . I am trying to mathematically understand how I get values.
Answer & Explanation
Dominique Holmes
Beginner2022-05-30Added 10 answers
You are looking for strength 2 covering arrays. In each pair of columns every pair of symbols occur -- this ensures all 2-way interactions are observed in some way. Here's a very simple example of a covering array of strength 2 with 2 columns:
If you look at each entry and write the list (r,c,s), where r is the row index, c is the column index, and s is the symbol, you will construct an orthogonal array (as depicted below) -- a covering array of strength 2 with the minimum number of rows (36).
In fact, Latin squares exist for all orders n. So if you have three columns (e.g. three variables) and n symbols for each variable, then you can always find a strength 2 covering array with n2 rows. Many combinatorial designs give rise to particularly efficient covering arrays. Strength 2 covering arrays with more than three columns and n2 rows are equivalent to sets of mutually orthogonal Latin squares (the reference shows the construction). In your case, if you have 40 results, then you are not using the most efficient covering array.
Alessandra Clarke
Beginner2022-05-31Added 5 answers
If each parameter had choices you'd be testing vs combinations, namely hold constant and vary through values. Similarly hold, constant; then . As the number of variables increases you get better savings, roughly vs. , where max domain size. For QA purposes usually such rough upper bounds suffice. Do you have an intended application where you need something more precise? If so perhaps you should reveal some further details, e.g. the distribution of the sizes of the domains, etc.