Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

How to refer current project in data source path

Parasofttoudaya
Parasofttoudaya Posts: 232 ✭✭

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_parasoft
    benken_parasoft Posts: 1,228 ✭✭✭
    edited July 2018

    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

  • Parasofttoudaya
    Parasofttoudaya Posts: 232 ✭✭

    It helps out. Thanks!!