Forum Discussion

electroisok's avatar
electroisok
Occasional Contributor
11 years ago

Run Routine with parameters by command line

Hi!



I have this command line to execute my test



"C:\SmartBear\TestExecute 9\Bin\TestExecute.exe" "C:\....\Automated_Tests\TestComplete\PARClient_ProjectSuite\PARClient_Project\PARClient_Project.mds" /r /e /SilentMode /p:PARClient_Project /u:ProductionOk /rt:TestProductionOk /exportlog:C:\IntegracionContinua\SAESPARAutomatedTests\Logs\AutomatedTestsLogs.mht



But the routine TestProductionOk has three parameters, how I can pass them?

1 Reply

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Ivette,


     


    You can do the following:


    1. Create an additional routine that you will call from the command line instead of TestProductionOk.


    2. Add additional command-line arguments to pass the needed parameters. Refer to the Pass parameters via the command line article to learn how to read the values of these parameters in TestComplete.


    3. Modify the routine created in step 1 so that you can get the value of the parameters and pass them to your TestProductionOk function.