Forum Discussion

Ryu's avatar
Ryu
Contributor
6 years ago
Solved

Tested App not visible until after test fails because UI does not exist

So I'm running a tested app through a subroutine in my script.  My script runs the app, but the app will not display in the UI until the script run fails because the app children "don't exist."  The app UI displays on the screen immediately after the test fails.  Has anyone encountered this before and is there a way to get it to stop doing that?  Some more info - I am running the same app from a different script without a problem.  It's so far only happening in this particular script.

  • I tried several things to fix it, and one thing worked.  TC was failing to enact the timeout I had set because it couldn't see the the window; I put in a delay command with the same length as the set timeout immediately after the run command.  Gave it just enough time (interference?) to let the program UI pop-up and TC continued with the test.

3 Replies

  • Ryu's avatar
    Ryu
    Contributor

    I tried several things to fix it, and one thing worked.  TC was failing to enact the timeout I had set because it couldn't see the the window; I put in a delay command with the same length as the set timeout immediately after the run command.  Gave it just enough time (interference?) to let the program UI pop-up and TC continued with the test.