Forum Discussion

Rajesh2's avatar
Rajesh2
Contributor
8 years ago

How to launch the Application without using Tested Apps

Hi All,   How to launch the desktop application without storing it into TestedApps in TestComplete with Python?    I need to launch an application and perform actions without storing it in Tested...
  • baxatob's avatar
    8 years ago

    Hi,

     

    You can run it using shell call:

     

    import subprocess
    
    def launcher(path):
        
        subprocess.call( [path] )

    path - should be a string contains the full path to your application executable file

    If you need some command line arguments, you can add them in the list after path: [path, arg1, arg2]

  • baxatob's avatar
    baxatob
    8 years ago

    Rajesh2,

     

    The solution above is 100% pythonic.