How to refer current project in data source path

ParasofttoudayaParasofttoudaya Posts: 197 ✭✭

Hi Team,

we have same project referred in two different names.
(1).ProjectName --> Local Git repository --> Remote BitBucket--> Environment Manager
(2).ProjectName_Local --> workspace

Working copy will be present in (2) and update the changes to (1)

We are facing issue in the Test Data path:
Moving tst or test suite from one project to another is not getting updated the test data path in DataSource.

is there any way to refer the current project always in the data source path?

Comments

  • benken_parasoftbenken_parasoft Posts: 488 ✭✭✭
    edited July 13

    we have same project referred in two different names

    Any particular reason why you have a copy of the file, and are not only using the one from your git workspace?

    is there any way to refer the current project always in the data source path?

    You can use a different variable that doesn't have the project name. The example from the user's guide is "${test_suite_loc}/../files/myspreadsheet.xls". In your case, perhaps you want "${test_suite_loc}/../TestData/TestData.xls"

    See Adding a Data Source

  • ParasofttoudayaParasofttoudaya Posts: 197 ✭✭

    It helps out. Thanks!!

Sign In or Register to comment.