Ask a Question

Wait Method Time doesn't wait the time set, test fails, then operation in test succeeds

SOLVED
chasscrapdragon
Regular Visitor

Wait Method Time doesn't wait the time set, test fails, then operation in test succeeds

I am trying to use Wait methods for parts of my initialization tests. These tests simply launch the Service Host and the desktop client. On the test that launches the service host the WaitProperty works successfully. On the test that launches the desktop client the Wait methods used (we've tried WaitProperty, WaitChild, WaitChildAlias, and WaitWPFObject) don't execute. Instead, the test times out and fails almost immediately after startup and doesn't wait the time i provided in the parameters. But then after TestComplete stops running the test the application launches just fine. A delay here works, though we'd prefer a Wait Method.

 

So what I'm thinking is that there's something happening during a Wait Method that isn't happening during a Delay that's causing the desktop and TestComplete to have some sort of issue with each other. Any ideas?

1 ACCEPTED SOLUTION

Accepted Solutions
sonya_m
Community Manager

Re: Wait Method Time doesn't wait the time set, test fails, then operation in test succeeds

Thank you for willing to help here, Marsha!

 

@chasscrapdragon  were you able to solve this?

If not, please provide the info, Marsha is requesting.

 

Another way to proceed is opening a support ticket here


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

2 REPLIES 2
Marsha_R
Community Hero

Re: Wait Method Time doesn't wait the time set, test fails, then operation in test succeeds

Let's see your code for the Wait that's failing please.


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
sonya_m
Community Manager

Re: Wait Method Time doesn't wait the time set, test fails, then operation in test succeeds

Thank you for willing to help here, Marsha!

 

@chasscrapdragon  were you able to solve this?

If not, please provide the info, Marsha is requesting.

 

Another way to proceed is opening a support ticket here


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: