Auto-Bound Test Variables
When creating a Test Variable, it would be awesome if I could choose to turn on an "auto-bind" attribute.
Currently my process is to create a free-typed module variable, being careful to name it the same name as an existing test suite variable, then go into each test case binding and click "auto-bind" to bind it. If instead test variables could be marked with a new "auto-bind" attribute...it would save lots of time manually re-binding it later. For instance when I copy or move a test case and have to go back and click the auto-bind again...and again...and again.
Along with this, it would be great to be able to pick from a list of test suite variable names to "auto-bind" to when you are creating a new module variable in a test module (see screenshot). By ensuring that the correct name is used when the variable is created, it would help avoid the heartburn of finding out you mistyped it later on.
Thank you for your input.
We are currently implementing something similar that will probably be released with Ranorex 9.3.
We will provide an option to automatically auto-bind every unbound variable to a global parameter with the same name.
Currently, we haven’t planned a way of automatically binding parameters and variables that don’t have the same name. However, we might consider this if you are interested and if we find a nice way to put this functionality into the UI without worsening the user experience too much.
Thomas from the Ranorex Product Management Team
OPEN MIND - Andreas Wimmer commented
global auto bind would be exactly what we need as well. Auto bind for all testcases in the entire testsuite
btw. just noticed that a file containing the headers "Var " etc. will not even get read, because Ranorex balks at the space in the header name...
Auto-bind and Auto-create work well for cases with just one variable of the same name in the current context.
Yet if there are two variables (e.g. "Var") of the same name in one context, Ranorex offers them as "Var " and "Var " - that would work out, if
a) in the case of Variable Binding it was possible to have those names as headers of data columns (it isn't, the names get altered to "Var__1_", or
b) in the case of Parameters it was possible to Auto-bind the module variables to Parameters of that name (a Parameter "Var " does not get auto-bound to a varaible of the same name. Auto-Create will omit the " " and only create one element called "Var"
We are doing a lot of web testing and use multiple servers in the process - development, QA, staging, etc. When we create a test we have to then modify the test and the DOM it to point to a global $URL variable. This allows us to run the test bed against multiple servers by setting $URL to the servers domain name. While this works fine, it's a lot of clicking around. Seems to me that you could have a parameter called $URL that we could set and "turn on" so that each time we created a new test the domain name was set to $URL and create the binding automatically for all test cases.
I wish me a button for general Autobinding for all Testcases. I have 150 Testcases and i must to execute Autobind for each testcase. For my opinion is this facilitate the work of users.
I make a change to a recording module by adding a new variable to it.
Because this module is used everywhere in my suite, then have 1 unbound variable that I have to auto bind for every test case one at a time.
There should be a one click option to attempt auto bind across the entire suite.