skillsoft
16 years agoFrequent Contributor
Excel, property files relative to testsuite in Datasource step
I want to be able to use the same spreadsheet for all testcases in a test suite using a relative path. I'm doing this by creating a property for the test suite that specifies the \. I have the Resource Root set to $(projectDir). I have Composite Project set to true.
It seems like the only way to do this is to create a property at the project level and hardcode the project directory, then use that property at the suite level
Example: suitedir = ${#Project#projectdir}\CreateOrEditCompany
Is there a way to use the Resource Root or even $(projectDir) directly in the Suite property?
Ideally it would be better to be able to NOT specify a path when creating a Datasource step and having the path default to the Suite Directory, but currently it seems to be defaulting to the C:\>.
Thanks for your time!!
Mary
It seems like the only way to do this is to create a property at the project level and hardcode the project directory, then use that property at the suite level
Example: suitedir = ${#Project#projectdir}\CreateOrEditCompany
Is there a way to use the Resource Root or even $(projectDir) directly in the Suite property?
Ideally it would be better to be able to NOT specify a path when creating a Datasource step and having the path default to the Suite Directory, but currently it seems to be defaulting to the C:\>.
Thanks for your time!!
Mary