Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
CONNECT WITH US:
IT: Customized to Your Advantage
Lakshminarayanan
K.N.Associate Test Engineer
Public | Copyright © 2014 P...
CONNECT WITH US:
Why do we need
another Test Design
Technique?
Public | Copyright © 2014 Prolifics 2
Variables rarely func...
CONNECT WITH US:
Public | Copyright © 2014 Prolifics 3
Consider this example.
A Video Player allows user to modify the wid...
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...
CONNECT WITH US:
Example
Public | Copyright © 2014 Prolifics 6
Let’s recall the example we saw earlier.
A Video Player all...
CONNECT WITH US:
Steps to design
test cases using
Domain Analysis
Technique
Public | Copyright © 2014 Prolifics 7
1. Split...
CONNECT WITH US:
Step 1
Public | Copyright © 2014 Prolifics 8
Variable Valid Equivalence Class Invalid Equivalence Class
H...
CONNECT WITH US:
Step 2
Public | Copyright © 2014 Prolifics 9
Determine the ON Points, OFF Points and In points of each Va...
CONNECT WITH US:
Step 3
Public | Copyright © 2014 Prolifics 10
Test Cases
Variabl
es
Points
Conditio
ns
TC_01 TC_02 TC_03 ...
CONNECT WITH US:
What are the
problems with All
Pairs ?
Public | Copyright © 2014 Prolifics
 It’s a very effective Pairwi...
CONNECT WITH US:
Public | Copyright © 2014 Prolifics 12
CONNECT WITH US:
Contact Us
Public | Copyright © 2014 Prolifics
www.prolifics.com
+91 98850-06004
lakshminarayanan.neelak
...
Upcoming SlideShare
Loading in …5
×

Domain analysis in Software Testing

1,052 views

Published on

A gem of a Testing technique rarely used decoded

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Domain analysis in Software Testing

  1. 1. CONNECT WITH US: IT: Customized to Your Advantage Lakshminarayanan K.N.Associate Test Engineer Public | Copyright © 2014 Prolifics Domain Analysis in Software Testing
  2. 2. 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.
  3. 3. 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?
  4. 4. CONNECT WITH US: Public | Copyright © 2014 Prolifics 4 If you think NO then you should read on !!!
  5. 5. 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
  6. 6. 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.
  7. 7. 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
  8. 8. CONNECT WITH US: Step 1 Public | Copyright © 2014 Prolifics 8 Variable Valid Equivalence Class Invalid Equivalence Class Height 10 to 150 <10 and >150 Width 25 to 200 <25 and >200 For each variable define strict boundaries as below example
  9. 9. 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 20 150 20 OFF 9 19 151 201 IN 100 150
  10. 10. CONNECT WITH US: Step 3 Public | Copyright © 2014 Prolifics 10 Test Cases Variabl es Points Conditio ns 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
  11. 11. 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
  12. 12. CONNECT WITH US: Public | Copyright © 2014 Prolifics 12
  13. 13. CONNECT WITH US: Contact Us Public | Copyright © 2014 Prolifics www.prolifics.com +91 98850-06004 lakshminarayanan.neelak andan@prolifics.com 13

×