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....
Quick Tour of the Parameters Screen
Learn how to effectively address the first step in creating a DesignWise model.
- What key features are accessible from the Parameters screen
- How to navigate around the Parameters screen to access those features
You’ll spend a lot of time on this screen, so it’s worth understanding everything that is hiding here.
Think of this lesson as spending a couple minutes sipping coffee with a tour guide, while reviewing a map of Paris. You’re orienting yourself before you go off to explore the city. “Over here, we have the Eiffel Tower. Over here, is the Musée d’Orsay…” Not much detail just yet, but we’re just getting acquainted.
Click “New Parameter.”
Enter a Parameter Name (like “Flying to”) in the Parameter Name field. Your Parameters will be the “things that change” from test scenario to test scenario.
Type in Values for that Parameter (like “the United States” or “France”) in the Values field.
When finished editing the Parameter and its Values, add them to your plan by clicking “Create.”
Hovering over different parts of the screen reveals important hidden tooltips
Click “Your Test Plans” from the sub-menu of the Plan Name dropdown or by going back to the landing page & selecting “Your Plans” from the left menu bar.
Hovering over a Parameter reveals a nifty “move this up or down” option
Hovering over a Value reveals an additional feature
Additionally under the “Rules” -> “Constraints” tab, parameter values can be required to appear together in scenarios (Bound) or not (Invalid). Constraints allow you to prevent “impossible to test for” scenarios from appearing in your test suite when you click on the “Scenarios” tab.