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

Ask general questions here.
Ramya D
Posts: 3
Joined: Tue Oct 13, 2020 8:16 am

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

Post by Ramya D » Thu May 12, 2022 9:51 am

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

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7387
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

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

Post by odklizec » Thu May 12, 2022 9:53 am

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.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

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

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

Post by Fergal » Fri May 13, 2022 10:32 am

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.