L Runs (Levels Factors ) or OA(Runs, Factors, Levels, Strength) or
OA λ (Runs(N); Factors(k), Levels(v), Strength(t))
is an N × k array on v symbols such that every N × t sub-array contains all tuples of size t from v symbols exactly λ times.
Runs (N) – Number of rows in the array , which translates into the number of Test Cases that will be generated.
Factors (k) – Number of columns in the array , which translates into the maximum number of variables that can be handled by the array.
Levels (v) – Maximum number of values that can be taken on by any single factor.
Strength (t) – The number of columns it takes to see all the possibilities equal number of times.
λ -1 for software testing and is often omitted
Thapar University, Patiala
Example 1 Thapar University, Patiala A Web Page has three distinct sections (Top, Middle, Bottom) that can be individually shown or hidden from user No.of Factors=3 (Top,middle,Bottom) No.of Levels =2 (Hidden or shown) Array Type =L 4 (2 3 ) or OA(4,3,2,2) If we go for exhaustive testing we need : 2 x 2 x 2 = 8 Test Cases OA(Runs, Factors, Levels, Strength)
Example 1 (contd..) Thapar University, Patiala Fixed Level Array: L 4 (2 3 ) L 4 2 3 – OA with 4 Runs 3 factors with 2 levels The Four Test Scenarios (4 Vs. 8) 1 - Display the home page and hide all sections. 2 - Display the home page and show all but the Top section. 3 - Display the home page and show all but the Middle section. 4 - Display the home page and show all but the Bottom section. F1 F2 F3 Run1 0 0 0 Run 2 0 1 1 Run 3 1 0 1 Run 4 1 1 0 Top Middle Bottom Test 1 Hidden Hidden Hidden Test 2 Hidden Visible Visible Test 3 Visible Hidden Visible Test 4 Visible Visible Hidden