Forum Discussion

slecault's avatar
slecault
Contributor
14 years ago

How to run other program(s) - Delphi script

I am testing a Delphi application using TestComplete's Delphi scripts.  During these tests, I need to start other applications and interact with them.  How do I Start another application from within a script or keyword test?  I would need to specify the full path name and some parameters (avaible from command line).

1 Reply

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    Well, you can use the TestedApps object to reference each of the programs you need.  You can specify paths and commandline parameters within the code/keyword tests.



    Another method I've used is creating an object instance of WScript.Shell which allows you to emulate a command-line execution of an application.  This is a little more code intensive and requires you to write it as script, not necessarily as KeywordTest but you can call the script from Keyword Test.



    For a novice user, though, I'd go with TestedApps.