Arunkumar Khannur's Software Testing Knowledge Center
   
 

7.7 Domains and Testability

In order to perform domain testing and to make a program testable for a particular domain there is a need to ensure that values of input domains are to be supplied with care. This requires following steps so as to ensure testability using appropriate input domains.

7.7.1 Linearizing transformations


Non-linear domains are not appropriate to test a program segments. So any non-linear domain shall be converted into linear domains. This can be done by applying linearizing transformations. General non-linear domains are polynomials and logarithmic in nature.

Polynomials linearizing transformation: Polynomials linearizing transformation involves replacement of polynomials terms like x, x2, x3 etc. by using replacement by new variable; y1 = x, y2 = x2, y3= x3 etc. Such transformations convert problems that are difficult to solve into the problems that can be solved.

Logarithmic Transforms: Products such as (a*b*c) can be linearized by substituting p = log(a), q = log(b), r = log(c) .

There can be other transformations which convert non-linear functions into linearizable forms by using appropriate approximating polynomials.

7.7.2 Coordinate Transformations


In nice boundaries that have parallel input domain values, domain value of a particular boundary differs with domain value of another boundary just by a constant. During testing we have to pick up one representative input value of a particular boundary and arrive at other input values corresponding to other boundaries by performing appropriate transformations.

If the domains are ugly, then there will be non-parallel boundary sets. Testing non-parallel boundary sets is practically not possible since for a given set of domain input value there will not be any associated achievable predicate path. Under such situations suitable coordinate transformations shall be used to convert unparallel domains into orthogonal boundaries. Following this, independent testing by using different boundary sets can be done on each orthogonal boundary.

 
 
Khannur's Book
Arunkumar Khannur, Software Testing - Techniques and Applications, Published by Pearson Publications, 2011 (ISBN:978-81-317-5836-6; Pages:341 + xxii)
Follow Khannur
         
Khannur's Company
ISQT Process & Consulting Services Pvt. Ltd., Bangalore, INDIA
Khannur's Software Testing Forum
STEP-AUTO Forum
 Contact Khannur
ISQT Process & Consulting Services Pvt. Ltd.
#732, 1st Floor, 12th Main,
3rd Block, Rajajinagar,
Bangalore - 560010, INDIA
Phone: +91 80 23012511
URL: www.isqtinternational.com
Email: khannur@isqtinternational.com
Skype: arun.isqt