I have set the path to the application under test as a Global Variable in my test suite. Not everyone will call their working directory the same thing, so my absolute path is not an ideal solution.
How can I make this a relative path?
I assume I need to set the "root" directory where it should start from, but where do I do this? Also, how would I refer to it in my Global Variable settings?
Thanks!
How to set Relative Path in Global Variables
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to set Relative Path in Global Variables
Hi,
to set a root directory, from which you can start a application with relative path, you have to add some code.
You can do this by adding attached user code module to your projct, which sets the current directory to the values helt in a global parameter.
You have to add this global parameter holding the absolute path of your root directory and bind it with the variable "dir" of the user code module.
Regards,
Tobias
Support Team
to set a root directory, from which you can start a application with relative path, you have to add some code.
You can do this by adding attached user code module to your projct, which sets the current directory to the values helt in a global parameter.
You have to add this global parameter holding the absolute path of your root directory and bind it with the variable "dir" of the user code module.
Regards,
Tobias
Support Team
You do not have the required permissions to view the files attached to this post.