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 a simple test plan?
Apply the core concepts learnt so far to build your first DesignWise model from Parameters to Scenarios.
First, click the “New Test Plan…” button in the top left of your home page
Depending upon where you would you like your new plan to be saved, as appropriate:
- Select an existing project from the drop down menu,
- Create a new project, or alternatively…
- Use the default “None (private).”
Optionally, (if you already have a set of test inputs created in Excel or a mind map), select “Choose File” to import the file.
Click the “Create” button.
Enter Parameters and Values
Click “New Parameter.”
Type or Select a Parameter Name. (Parameter Values may be edited on this screen, as well.)
Click on “Create.”
“Rinse and repeat” until you are ready to click on the “Scenarios” button.
- View some sample plans to get ideas about typical kinds of inputs that go into DesignWise.
- “Start with a Verb and Noun” and ask “reporter questions” (who, what, when, where, why, how how many).
- Check out the “How can I best identify variation in the system I’m testing?” help file.
Also keep in mind that you usually should not include Parameters for every single field in your System Under Test. You’ll need to think about how the System Under Test works to appropriately identify a good set of test inputs for your plan. Include Parameters and Values if they should (or logically might) impact how your System Under Test operates (either by themselves or when they interact with other Values in your System Under Test). For example:
- If the system works exactly the same whether someone’s name is Jim Green or Susan Smith, you may well want to leave “First Name” and “Last Name” out of your DesignWise variation ideas.
- If the gender of users would impact how the system works, you would probably want to include “Gender” as a Parameter (with male and female as the sample Values).
Click Scenarios and wait a moment for your scientifically-prioritized suite to appear
For more information, please see the help documentation about “what is pairwise testing?”. You can also select different coverage strengths (3-way combinatorial testing coverage, 4-way, 5-way, and 6-way).
DesignWise generates the smallest possible number of scenarios* to meet your coverage objectives.
*We used the word “scenarios” fairly loosely here. They are actually sets of optimized test conditions at this point. The first set of test conditions should be executed in your first test script, and so on.
You can then export this set as CSV and assign it to the Ranorex script as the data source.
You can also use the other features of DesignWise (including Expected Results, Forced Interactions, and Auto-scripting) to transform these “bare bones” test scenarios into comprehensive, fully-stepped-out test scripts with detailed tester instructions, Expected Results, and requirements traceability notes. These detailed test scripts can even be automatically formatted for importing into, e.g., customized versions of Xray that your company uses.