Page 1 of 1

Data binding pointing to previous directory after GIT clone from the repository

Posted: Thu May 12, 2022 9:51 am
by Ramya D
Data binding is still pointing to the directory from which the code check in was done even after GIT clone.

Consider I have checked in code from the directory - 'CodeCheckin'. The CSV files 'csv1' and csv2' are in this particular directory.
Now I take the code from the repo using GIT clone to the directory - 'RepoCode' and the data binding in the Test suite is still pointing to the csv files in the directory 'CodeCheckin' and not the csv files in the directory 'RepoCode'.

Because of this issue I have been doing the data binding again each time I check out code from the repository.

Ranorex version - 9.1.1+git76637b0

Re: Data binding pointing to previous directory after GIT clone from the repository

Posted: Thu May 12, 2022 9:53 am
by odklizec
Hi,

Are you sure the Data Connector is set to use 'relative' and not 'absolute' path? Please take a screenshot of the problematic data connector (its settings). Thanks.

Re: Data binding pointing to previous directory after GIT clone from the repository

Posted: Fri May 13, 2022 10:32 am
by Fergal
Have you checked the "Copy file to project" checkbox for your CSV data connector?

"This will copy the Excel file to your project folder. You must check this if you use version control." From here in the user guide.