Forum Discussion
AlexanderM
14 years agoStaff
Hello Kevin,
I can suggest a couple of solutions:
1. Update the path to the tested application programmatically in the beginning of your script.
In your script, you can build the logic that will find the latest application build in the build storage and update the Path property of your TestedApp element.
2. Configure a post-build event in VS that will copy the latest build to a specific location, which is always the same.
So, your script can automatically check where the app is located and update the TestedApp properties. This could look like this:
var LocalAppPath = "C:\\Program Files\\App\\";
var BuildStoragePath = "C:\\LatestBuild\\";
if (aqFileSystem.Exists(LocalAppPath + TestedApps.MyApp.FileName))
TestedApps.MyApp.Path = LocalAppPath;
else
TestedApps.MyApp.Path = BuildStoragePath;
I hope this helps.