Page 1 of 1

Test Suite says Bound Variables : 3 but at run time

Posted: Thu Sep 15, 2016 6:18 am
by dontbeshy
Below is what I've done for Data Driven.

- Create DATE, GAME_ID, and GAME_NAME variable using "Variables" button
- Create Simple Data Connector in Data Source and enter values in table
- Open Data Binding and checked each field to bind the data field

And I see "Bound Variables : 3" and run the recording.

But the log says

The following module variables are not bound to a data column:
DATE, GAME_ID, GAME_NAME

I've watched tutorial video on youtube again but I don't see anything special in Data Driven.
I am not sure what I am missing here.

Any ideas?

Re: Test Suite says Bound Variables : 3 but at run time

Posted: Thu Sep 15, 2016 6:53 am
by odklizec
Hi, you can't run only the recording. You must run entire test suite, otherwise the data connectors are not used.

Re: Test Suite says Bound Variables : 3 but at run time

Posted: Thu Sep 15, 2016 7:19 am
by dontbeshy
I didn't notice it. I will start over the project. Thanks.

Re: Test Suite says Bound Variables : 3 but at run time

Posted: Thu Sep 15, 2016 1:51 pm
by krstcs
You don't need to start the project over, just run the whole test suite instead of just running the module.

Anytime you run just the module, Ranorex has no context under which to bind variables, so the report will show them as unbound (this is why you should think carefully about what default values to use, because those defaults are used then the variables are not bound).

The test suite contains the definitions for the data connectors and for the bindings, so that is the only place that the actual binding can happen (unless you code it yourself, which I would not advise!! :D).