Forum Discussion

shilpi_agarwal's avatar
shilpi_agarwal
Contributor
9 years ago

check already running application exist

TestedApps.prowin.Run -- Runs the application named "prowin". Now I need to check whether the application is already running or not before writing above statement in script? If not running then abov...
  • StevenN's avatar
    9 years ago

    The process has an "Exists" property, check that it does not exist before starting your application. The following script will check that "MyApplication" does not exist before running it:

     

    if(!Sys["WaitProcess"]("MyApplication")["Exists"])
    {
      TestedApps["MyApplication"]["Run"]();
    }

     

    https://support.smartbear.com/viewarticle/65867/