Creating a Data Connector Vs Data Binding

Ask general questions here.
Fergal
Certified Professional
Certified Professional
Posts: 455
Joined: Tue Feb 18, 2014 2:14 pm
Location: Co Louth, Ireland
Contact:

Creating a Data Connector Vs Data Binding

Post by Fergal » Thu Oct 02, 2014 10:45 am

What is the difference between (1) connecting a data source to a Test Case (as outlined in Creating Test Data, Lesson 3, of the Ranorex Test Automation Guide) and (2) Data Binding (Combining Variables with Test Data, Lesson 3)?

From what I can understand, the purpose of both (1) and (2), is to "combine your Excel file with the current test case". Why are both needed?

Thanks!

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

Re: Creating a Data Connector Vs Data Binding

Post by krstcs » Thu Oct 02, 2014 6:44 pm

The Data Connector is what GETS the data from the data source (database, Excel, CSV, or simple data table).

The Data Binding is how you tell Ranorex which fields in the data source go with which variables in your test.


They work together. You need to do both.


Data Source -> Data Connector -> Data Binding -> Test Variable
Shortcuts usually aren't...

Fergal
Certified Professional
Certified Professional
Posts: 455
Joined: Tue Feb 18, 2014 2:14 pm
Location: Co Louth, Ireland
Contact:

Re: Creating a Data Connector Vs Data Binding

Post by Fergal » Fri Oct 03, 2014 9:27 am

Thanks krstcs, that's exactly the straight-forward explanation I needed!

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

Re: Creating a Data Connector Vs Data Binding

Post by krstcs » Fri Oct 03, 2014 1:13 pm

You're welcome!
Shortcuts usually aren't...