maxthomassin
12 years agoOccasional Contributor
Using Command Line
Hey,
im trying to use cmd line to run a specific script and later i will need to pass argument to the script.
I've beent trying many line, but i think this one is the closest to the solution :
"C:\Program Files\Automated QA\TestComplete 7\Bin\TestComplete.exe" "C:\FINALE\SIPAD\SIPAD_TESTCOMPLETE.pjs" /r /p:Automatisation des Tests /t"Script|Moteur_Test_Automatise|Main"
TestComplete start, but the script aint running. I attached a picture of my project tree.
im trying to use cmd line to run a specific script and later i will need to pass argument to the script.
I've beent trying many line, but i think this one is the closest to the solution :
"C:\Program Files\Automated QA\TestComplete 7\Bin\TestComplete.exe" "C:\FINALE\SIPAD\SIPAD_TESTCOMPLETE.pjs" /r /p:Automatisation des Tests /t"Script|Moteur_Test_Automatise|Main"
TestComplete start, but the script aint running. I attached a picture of my project tree.
Hi again Maxime.
If you want to pass some parameters, you should take a look at the following page :
Here is an example you could use :
function CommandLineArgs()
{
var nArgs = BuiltIn.ParamCount();
Log.Message("Total number of command-line arguments: " + nArgs);
Log.Message("The fully-qualified name of the TestComplete executable: " + BuiltIn.ParamStr(0));
for (var i = 1; i <= nArgs ; i++)
Log.Message("Arg " + i + ": " + BuiltIn.ParamStr(i));
}