Date post: | 26-Jan-2017 |
Category: |
Technology |
Upload: | lakshminarayanan-neelakandan |
View: | 104 times |
Download: | 1 times |
CONNECT WITH US:IT: Customized to Your Advantage
Lakshminarayanan K.N.Associate Test Engineer
Public | Copyright © 2014 Prolifics
Domain Analysis in Software Testing
CONNECT WITH US:
Why do we need another Test Design Technique?
Public | Copyright © 2014 Prolifics 2
Variables rarely function on their own to produce output. Most complex programs or components generate output from more than one input variable.
Do you agree?
If you do, ask your self how are you going to test it.
CONNECT WITH US:Public | Copyright © 2014 Prolifics 3
Consider this example.
A Video Player allows user to modify the width to height ratio of the viewed content through the Aspect Ration function. We need to test for what values of Height and Width does the application crash.
If you ask anyone how to test, they would suggest good old Boundary Analysis and Equivalence class methods. Using BVA and ECP you can find missing, incorrect or unwanted boundaries.
Using Boundary value and Equivalence class will you be able to test the interaction between X and Y Parameters?
CONNECT WITH US:Public | Copyright © 2014 Prolifics 4
If you think NO then you should read on !!!
CONNECT WITH US:
What is Domain Analysis?
Public | Copyright © 2014 Prolifics 5
Domain analysis is a technique that can be used to identify efficient and effective test cases when multiple variables can or should be tested together.Looks like there is a solution right? Let’s dive deeper
CONNECT WITH US:
Example
Public | Copyright © 2014 Prolifics 6
Let’s recall the example we saw earlier.
A Video Player allows user to modify the width to height ratio of the viewed content through the Aspect Ration function. Through BVA and ECP we have already tested that for the Height the values the player accepts is [10 to 150] and Acceptable width values are [25 to 200].
Let’s follow the below steps to create test cases using Domain Analysis.
CONNECT WITH US:
Steps to design test cases using Domain Analysis Technique
Public | Copyright © 2014 Prolifics 7
1. Split the values of each parameter into equivalence classes and define bounds for each class.
2. Find ON, OFF and IN points for each boundary
3. Make up the test cases
ON and OFF values of the first parameter will be checked with IN values of the rest parameters, then ON and OFF values of the second parameter will be checked with IN values of the rest parameters, and so on.
See the steps in action
CONNECT WITH US:
Step 1
Public | Copyright © 2014 Prolifics 8
Variable Valid Equivalence Class Invalid Equivalence ClassHeight 10 to 150 <10 and >150Width 25 to 200 <25 and >200
For each variable define strict boundaries as below example
CONNECT WITH US:
Step 2
Public | Copyright © 2014 Prolifics 9
Determine the ON Points, OFF Points and In points of each Variable
Height Width
ON 10 20150 20
OFF 9 19151 201
IN 100 150
CONNECT WITH US:
Step 3
Public | Copyright © 2014 Prolifics 10
Test CasesVariabl
es Points Conditions TC_01 TC_02 TC_03 TC_04 TC_05 TC_06 TC_07 TC_08
Height
>=10 ON 10 OFF 9
<=150 ON 150 OFF 151
Typical IN 150 150 150 150
Width
>=20 ON 20 OFF 19
<=200 ON 200 OFF 201
Typical IN 100 100 100 100
Construct the Test cases using Binders Domain Testing Matrix
CONNECT WITH US:
What are the problems with All Pairs ?
Public | Copyright © 2014 Prolifics
It’s a very effective Pairwise Test case generation tool
It’s FREE!!!
Cannot eliminate Invalid combinations
Cannot generate higher order tests
Cannot generate Negative tests
11
CONNECT WITH US:Public | Copyright © 2014 Prolifics 12
CONNECT WITH US:
Contact Us
Public | Copyright © 2014 Prolifics
www.prolifics.com
+91 98850-06004
13