This article describes how to use the Ranorex Studio IDE and the Ranorex API for test automation in your behavior-driven development (BDD) process. BDD requires a cognitive shift: instead of thinking about testing functions, you are now thinking about behaviors....
How Do I Create Ranged Values?
So you have a test plan such as shown below:
You are trying to test a ratings engine. You know the business rules require age ranges to be tested. You thought that descriptive fields would work.
Descriptions vs. Numbers
Instead of descriptions, maybe you could use the numbers for the ones you want tested.
And what about Boundary Testing?
You need to test around the cutoffs for certain business rules, too. But that adds too many values.
Let DesignWise generate your values!
Creating a ranged value solves all these problems and more! Using the syntax ‘number space hyphen space number’ or ‘# – #’, DesignWise will recognize this as a range of values to choose from.
Additionally, DesignWise will view a ranged value as a set of numbers inclusive of your endpoints. Therefore, DesignWise will in effect boundary test your range and then randomly choose numbers from within that range (as it needs for tests).
Your tests will never be the same
See below how the ranged values above turn into values to use in your tests.
DesignWise can recognize many options for ranges. We recommend having the same number of decimals across all numbers in a range. Additionally, all ranged values must not overlap. The tool will not recognize logic like in alphanumeric codes either.
See below for an example of ranges as inputs followed by the outputs provided.