anandmar24
11 years agoOccasional Contributor
Open an application/Process without using TestedApp
Hi All,
I want to run a process without using TestedApp since we need to change the location of the application everytime when we want to run in different machine. Is there any way for achieving it in TestComplete?
I want to run a process without using TestedApp since we need to change the location of the application everytime when we want to run in different machine. Is there any way for achieving it in TestComplete?
- There are at least 3 ways do achieve what you need:
1. Dynamically change path to TestedApp
http://support.smartbear.com/viewarticle/27354/
2. Use WScript.Shell
Sys.OleObject("WScript.Shell").Run("C:\\Windows\\notepad.exe", SW_SHOWNORMAL);
3. Use WinAPI
Win32API.WinExec("C:\\Windows\\notepad.exe", SW_SHOWNORMAL);