Results 1 to 2 of 2

Thread: how to conduct input domain covearage in qtp?

  1. #1
    Junior Member
    Join Date
    Nov 2007
    Answers
    18

    how to conduct input domain covearage in qtp?

    hi all,
    give some examples


  2. #2
    Banned
    Join Date
    Oct 2007
    Answers
    173

    Re: how to conduct input domain covearage in qtp?

    Partition the input domain into a finite number of equivalence classes create test cases to invoke as many different conditions as possible it is based on the premise that if a test case in an equivalence class detects an error, all other test cases in the same class detect the same error step 1 identify the input parameters identify the allowable classes of input select a representative value for each class create test cases to cover as many classes as possible step 2 select invalid values for each class create additional test cases to cover invalid classes step 3 identify the output parameters identify the possible classes of output create test cases to generate each possible output external condition valid invalid boundary value 1. Input hours a. Regular b. Over time 2. Input rate 3.5 to 13.5 3. Gross pay 10 to 2000 25 43 12 450 0 -1 2.1, -2.5 15.0, ax2 9, 2010 example: strategy: •identify input equivalence classes –based on conditions on inputs / outputs in specification / description –both valid and invalid input equivalence classes –based on heuristics and experience •“input x in [1..10]” ® classes: x <> 10 •“enumeration a, b, c ® classes: a, b, c, not {a, b, c,} • define one / couple of test cases for each class –test cases that cover valid eq. Classes –test cases that cover at most one invalid eq. Class •test a function for calculation of absolute value of an integer •equivalence classes : condition valid eq. Classes invalid eq. Classes ------------------------------------------------------------------------------------------ nr of inputs 2 <> 2 type of input int int int no-int, no-int int abs(value) value <> maxint •test cases : maxint value result valid 100 10 55 100 -10 55 10 10 error invalid 10 - error 10 20 30 error “xyz” 10 error 100 9.1e4 error 2) boundary value analysis boundary value analysis technique tests conditions on, above and beneath the edges of input and output equivalence classes test cases are created to test the edge of each equivalence class test cases are created to test edges of both input and output classes for each equivalence class identified: select a value on the class boundary pick a value just under the boundary pick a value just over the boundary external condition valid invalid boundary value 1. Input hours a. Regular b. Over time 2. Input rate 3.5 to 13.5 3. Gross pay 10 to 2000 25 43 12 450 0 -1 2.1, -2.5 15.0, ax2 9, 2010 40, 39.9, 40.1 59.9, 60, 60.1 3.5, 3.49, 3.51 13.5, 13.51, 13.49 10.0, 10.01, 9.99 2000, 2000.1, 1999


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact