Forum Discussion

fawad's avatar
fawad
New Contributor
8 years ago
Solved

How can I specify a relative location for a DataSource file in the DataSource Editor?

I have Ready! API 1.9.0 installed on a Windows 7 PC.

During test development I can specify the absolute location of the DataSource file in the DataSource Editor. How can I specify a relative location for a DataSource file in the DataSource Editor? Is there a way to specify this location relative to the project root folder?

4 Replies

    • HKosova's avatar
      HKosova
      SmartBear Alumni (Retired)

      As explained on the page Radford linked to, you can set the project property "Resource Root" to ${projectDir} and all relative paths will be automatically resolved relative to the project path.

  • Yes you can set a Project Property Variable and assign the value as <Your Project Root Folder>.

    Now you can use the same in DataSource editor. 

     

    For Example : rootPath = "C:\ProjectName"

    In the DataSource Editor you can use it as ${#Project#rootPath}\datasourcePath\TestCases.xls