Forum Discussion
nmrao
Champion Level 3
Thank you for clarifying.
For instance, a custom property is defined at project level. Say WORKSPACE_DIR and value is "D:/workspace"
Another property is required to be used and reuse the above.
Say TOOLS_DIR and set value as ${#Project#WORKSPACE_DIR}/tools
If the same has to be done as suite level, use ${#TestSuite#PROPERTY_NAME} .
Does that help?
For instance, a custom property is defined at project level. Say WORKSPACE_DIR and value is "D:/workspace"
Another property is required to be used and reuse the above.
Say TOOLS_DIR and set value as ${#Project#WORKSPACE_DIR}/tools
If the same has to be done as suite level, use ${#TestSuite#PROPERTY_NAME} .
Does that help?
ManjuYadav
6 years agoNew Contributor
Hello Rao,
Thank you for the quick response.
I tried this but it is not working.
Project level property "path" has value "C:\workspace"
Suite level property "projectPath" has value "${#Project#path}"
When I try to print the value of "projectPath" I get "${#Project#path}" instead of the actual value.
Regards,
Manju M Yadav
- TestTestTest6 years agoNew Contributor
Hello,
I have had a simular problem. My solution was to use groovy to get the variable to a local variable
and then you could create a new testproperty on testsuite level.
You could also look at this message for local use of the variable:
TestTestTest
Related Content
Recent Discussions
- 5 days agoruchisingh