Best Practices for Variables

Ranorex Studio, Spy, Recorder, and Driver.
armstronghm24
Posts: 42
Joined: Tue Dec 20, 2016 10:16 pm

Best Practices for Variables

Post by armstronghm24 » Mon Jan 30, 2017 6:09 pm

What is the best way to make a selection of something variable? From my current experience I don't know what is the best strategy. It seems there are at least a couple ways to automate the selection:

1. mouse/click/variable repository item

2. Set Value/Checked/True or False - use multiple times for different selections
Scenario 1:
option 1 = true
option 2 = false

Scenario 2:
option 1 = false
option 2 = true

krstcs
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Best Practices for Variables

Post by krstcs » Mon Jan 30, 2017 6:31 pm

It always depends on what you are trying to accomplish with your test and how your SUT is structured. I do both at times.

I prefer to variablize the repo object because it is usually easier and you don't have to worry about coding it.
Shortcuts usually aren't...