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 TestedApps. 

 

Can anyone please suggest the solution for the same..

  • 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
    Community Hero

    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]