I need to run my TC scripts for my app for which the exe path will be dependant on something. Exe filename will be the same irrespective of the path. Path to exe may be either c:\Users\something\Bin\something.exe or c:\vsstest\soemthing\desktopbinaries\something.exe. How do I set the relative path for the tested apps to point to either one of them. At the time of execution, the exe will be in either one of the folders only.
a) Use the methods and properties of the TestedApps/TestedApp object to set the proper value of the TestedApp.Path property from the script (see relevant help topics for more details); or
b) Create a Project Variable that will hold the path to the tested application and assign the value of this variable to the TestedApp.Path property from the script like in case a).
Also you may consider running your test project in the Network mode ("Sharing Projects and Project Suites Among Several Testers" help topic) in which case the path to the tested application may be different when the test project is executed from different computers.
Regards, /Alex [Community Hero] ____ [Community Heroes] are not employed by SmartBear Software but are just volunteers who have some experience with the tools by SmartBear Software and a desire to help others. Posts made by [Community Heroes] may differ from the official policies of SmartBear Software and should be treated as the own private opinion of their authors and under no circumstances as an official answer from SmartBear Software. The [Community Hero] signature is used with permission by SmartBear Software. https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame ================================