How to set a command line parameter through a script?
I use a script to install and add a new build of the program.
I use
TestedApps.Add
to add the path to the launcher. I was wondering if there's any way to add a command line parameter too? I want it to launch with the:
-shortcuts
command, such as it would launch as:
"C:\Program Files (x86)\Sample Folder\ Sample Launcher.exe" -shortcuts
But when I try to use
TestedApps.Launcher.Params.ActiveParams.CommandLineParameters = "-qashortcuts"
It launches as
"C:\Program Files (x86)\Sample Folder\ Sample Launcher.exe -shortcuts"
and complete ignores the -shortcuts command
Any idea on how to do this? Preferably from adding it I would like the TestedApps to have -shortcuts defined as a command line parameter but that doesn't seem possible.
Here's the question:
Why use TestedApps at all? Rather than having to add a TestedApp and then remove it later in the test (or, remember to include it in some sort of cleanup), why not use the WshShell.Exec method to just execute your application at a command line?
https://support.smartbear.com/testcomplete/docs/reference/program-objects/wshshell/index.html