Forum Discussion

LarsO's avatar
LarsO
Occasional Contributor
14 years ago

Copy file from master computer to slaves

Hi



In distributed testing, what's the best approach for copying a file (setup.exe) from the master computer to slave computers and executing it on the slaves, before starting test?



Best regards

Lars Lund Olsen

4 Replies

  • Hi Lars,



    You need to copy files via a shared directory on either the master or the slave.
  • LarsO's avatar
    LarsO
    Occasional Contributor
    Hi Jared



    Thanks, I can share the C drives of the slaves.



    How would it be easiest to handle the copy action under TestComplete? And can TestComplete execute a binary file on a slave machine?



    Best regards

    Lars Lund Olsen
  • Hi Lars,



    How would it be easiest to handle the copy action under TestComplete?


    TC provides special objects which allow working with files, so you need to use them. To copy a file, use the aqFileSystem.CopyFile method.



    And can TestComplete execute a binary file on a slave machine?


    If you mean running an application, you can do this from the slave project as usual (for example, by using TestedApps - see the "Tested Applications" help topic).
  • LarsO's avatar
    LarsO
    Occasional Contributor
    Hi Jared



    Thanks for your help :-)



    /Lars