Difference between Variable Binding and Parameter binding,

Ask general questions here.
manishrn91
Posts: 16
Joined: Wed Aug 17, 2016 9:26 am

Difference between Variable Binding and Parameter binding,

Post by manishrn91 » Sat Jun 10, 2017 1:20 pm

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
Attachments
Ranorex.JPG
Ranorex.JPG (46.45 KiB) Viewed 894 times

User avatar
Stub
Posts: 173
Joined: Fri Jul 15, 2016 1:35 pm

Re: Difference between Variable Binding and Parameter binding,

Post by Stub » Mon Jun 12, 2017 8:14 am

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.

Vaughan.Douglas
Posts: 250
Joined: Tue Mar 24, 2015 5:05 pm
Location: Des Moines, Iowa, USA

Re: Difference between Variable Binding and Parameter binding,

Post by Vaughan.Douglas » Mon Jun 12, 2017 3:41 pm

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.
Doug Vaughan

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

Re: Difference between Variable Binding and Parameter binding,

Post by krstcs » Wed Jun 14, 2017 11:11 pm

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).
Shortcuts usually aren't...

Vaughan.Douglas
Posts: 250
Joined: Tue Mar 24, 2015 5:05 pm
Location: Des Moines, Iowa, USA

Re: Difference between Variable Binding and Parameter binding,

Post by Vaughan.Douglas » Thu Jun 15, 2017 2:32 pm

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.
Doug Vaughan

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Difference between Variable Binding and Parameter binding,

Post by Support Team » Mon Jun 19, 2017 2:41 pm

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
.
Image