Forum Discussion
Hi Jakub,
I suggest that you let the Support Team know this - they can investigate why this behavior happens in their test lab.
- suvidhshetty10 years agoContributor
Hi Jakob,
We are facing similar issue while executing the tests in loop. After executing some tests the TestComplete will not be able to find the application process even if the application is visible on the screen.
Were you able to get any resolution for your issue if yes please do share with us.
Thanks!
- anhvu9 years agoFrequent Contributor
All,
I got the same issue and I have come over it by the script below.
Note: You should add the CMD (command prompt to the TestedApp)
function Restart_USB_Port()
{
if(Sys["Process"]("cmd")["Exists"] == true)
{
Sys["Process"]("cmd")["Terminate"]();
Delay(1000)
}
//Open CMD
TestedApps["cmd"]["Run"]()
Delay(2000)
//1- ***** Check the Music is playing or not
if(Sys["Process"]("cmd")["Exists"] == true)
{
var pcmd = Sys["Process"]("cmd")
var cmdEdit = pcmd["Window"]("ConsoleWindowClass", "*.exe", 1)
cmdEdit["Keys"]("adb usb[Enter]")
Delay(15000) // This hard delay is the average time for a USB port refreshes and recognizes the device.
}
else
{
Log["Warning"]("Restart_USB: The CMD is not displayed ")
}
}Hope it help.
Related Content
Recent Discussions
- 10 hours ago