Page 1 of 1

Difference between Variable Binding and Parameter binding,

Posted: Sat Jun 10, 2017 1:20 pm
by manishrn91
Hi Team,

Could you please explain the difference between Variable binding and parameter tab.
Please see the attachment for reference.

and Which one is best supported for Data driven test case.


Regards,
Manish

Re: Difference between Variable Binding and Parameter binding,

Posted: Mon Jun 12, 2017 8:14 am
by Stub
I use the Variable Binding list to bind data values from the Data Source IFF I'm using one to iterate a Test Case multiple times. My Parameters tend to come from the Test Case itself and any parent Test Cases e.g. constants or global parameters.

Sometimes I use a mix of both. I might iterate a Test Case with a set of data, but they might use some common constant from the Test Case or its parents.

Re: Difference between Variable Binding and Parameter binding,

Posted: Mon Jun 12, 2017 3:41 pm
by Vaughan.Douglas
I too would like a full detailed explanation of the expected use. A also agree with Stub's utilization. I tend to direct people to only use the "variable binding" if they plan on creating a data driven test otherwise just use parameters.

I'll also use parameters for environmental/configuration data such as user name & passwords that don't change between iterations, URLs, and whatever else hits me at a given moment.

Re: Difference between Variable Binding and Parameter binding,

Posted: Wed Jun 14, 2017 11:11 pm
by krstcs
Actually, the "Variable binding" area is probably misnamed. It is actually the area where you bind variables to a data connector's columns, so it really should be "Data Connector Binding" as opposed to the "Parameters" binding area at the bottom.

A variable is in a module (recording or user-code) and can be bound to either a data connector (using the "Variable bindings" section) or to a parameter (using the bottom "Parameters" section).

Re: Difference between Variable Binding and Parameter binding,

Posted: Thu Jun 15, 2017 2:32 pm
by Vaughan.Douglas
krstcs wrote:Actually, the "Variable binding" area is probably misnamed. It is actually the area where you bind variables to a data connector's columns, so it really should be "Data Connector Binding" as opposed to the "Parameters" binding area at the bottom.

A variable is in a module (recording or user-code) and can be bound to either a data connector (using the "Variable bindings" section) or to a parameter (using the bottom "Parameters" section).
All good points. The way Ranorex uses terminology around "variables" can be very confusing for non-programmers and extremely annoying to experience programmers. I'd like to see some clarification or increased usability around the whole variable binding process. I don't know what it'd look like, but something to think about I guess.

Re: Difference between Variable Binding and Parameter binding,

Posted: Mon Jun 19, 2017 2:41 pm
by Support Team
Hi all,

In order to request a re-work of the variable binding-dialog, I would suggest adding an entry to our UserVoice. This would allow other customers, to vote for your idea.

Thank you for your understanding.

Sincerely,
Matthias