Forum Discussion
AlexeyKolosov
Staff
15 years agoHi Michael,
The parameter will contain the path to a folder where the executable file of your tested application is stored. For example, you will run TestExecute by using the following command line:
"C:\Program Files\Automated QA\TestExecute 7\Bin\TestExecute.exe" "c:\My Projects\MyProjSuite\MyProjSuite.pjs" /r "AppPath=C:\My Application\"
At the beginning of your test, you need to get the value of the AppPath parameter (based on the "Pass parameters via the command line" article) and use it to start your tested application:
function Test()
{
var appPathValue = // ... obtain the value of the AppPath parameter
TestedApps.Orders.Path = appPathValue;
TestedApps.Orders.Run();
}