Forum Discussion

angelodiego's avatar
angelodiego
Occasional Contributor
14 years ago

Updatings host from command line

Is there a way to update all the projects on the hosts as part of the distributed test from the command line?

I'd rather do this: 

  testcomplete "C:\MasterTest\MasterTests.mds" /run /project:MasterTests /test:"Script|Main|UpdateHostProjects" /exit


  testcomplete "C:\MasterTest\MasterTests.mds" /run /project:MasterTests /pi:NetworkSuite /exit
in a single step.

Thanks,

Angelo Diego

2 Replies

  • Hello Angelo Diego,


    If you have a script routine that updates your projects on remote hosts and you want to run it before running the network suite, you can create a common script routine that will call your UpdateHostProcess routine and then run the network suite with the NetworkSuite.Run method. For example:



    function Common()

    {

      UpdateHostProcess();

      NetworkSuite.Run(True);

    }



    Then you can run the Common routine from the command line:

    TestComplete.exe "C:\MasterTest\MasterTests.mds" /r /p:MasterTests /u:Main /rt:Common


    Please let us know whether this information helps.

    Thank you.