Forum Discussion

lsainsbury's avatar
lsainsbury
Contributor
11 years ago

Property Checkpoint between a certain value

Hey,



I've set up a few Property Checkpoints to check the value of some fields, but these values could change which makes the tests flakey and higher to maintain, is there any way to check a value between a certain percentage?



For example, I'd like to be able to check the value between 90 and 110 and pass the Property Checkpoint if the value is within that bracket.



Thanks!
  • Marsha_R's avatar
    Marsha_R
    Icon for Champion Level 3 rankChampion Level 3
    You can create your own checkpoint with an If-Then.  The example I attached  will log an error specifically for your range of 90-110.



    If the range needs to be calculated on the fly, then create variables for LowerBoundary and UpperBoundary, do the calculations to set the variables, then use LowerBoundary and UpperBoundary in the If-Then.