I'n new here so please be gentle
So, I have been validating my simple Qt Installer... Okay so far.
I press the Quit control, and the App disappears...
?? How can I validate that the App has closed ??
Thanks for any answers
Validate a UUT has closed
Re: Validate a UUT has closed
I use a Repository item to represent the top level of our application. I then have a code module in which I wait for that Repository item to not exist, using the WaitForNotExists() API.
So I do the thing that closes our application, then wait until the thing that represents our application no longer exists. Boom, application has closed, I can then continue as required.
So I do the thing that closes our application, then wait until the thing that represents our application no longer exists. Boom, application has closed, I can then continue as required.
Re: Validate a UUT has closed
Hi Thanks for that
Have you got any c# code examples you would be willing to share to help me out...
I'm a manual tester being thrown into automation with very little programming experience
Thanks
IAN
Have you got any c# code examples you would be willing to share to help me out...
I'm a manual tester being thrown into automation with very little programming experience
Thanks
IAN
Re: Validate a UUT has closed
It's essentially just finding your application representation in the repository, and calling WaitForNotExists() on it:
Code: Select all
Repo.MyApplication.SelfInfo.WaitForNotExists(Repo.MyApplication.SearchTimeout);