How to verify if an application closed using Testcomplete
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to verify if an application closed using Testcomplete
In my application, if I press Cancel button it closes.
How to verify this in an automated way?
Partha Mandayam
Software Consultant
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Partha,
Untested sample pseudo-code:
oButtonCancel.Click();
Delay(10000); // 10 seconds to let application to close
if (Sys.WaitProcess('<TestedProcess>', 500).Exists)
// process did not exit
/Alex [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
================================
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks
What does the 500 indicate in Sys.WaitProcess?
@AlexKaras wrote:
Hi Partha,
Untested sample pseudo-code:
oButtonCancel.Click();
Delay(10000); // 10 seconds to let application to close
if (Sys.WaitProcess('<TestedProcess>', 500).Exists)
// process did not exit
Partha Mandayam
Software Consultant
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
> What does the 500 indicate in Sys.WaitProcess?
Don't get me wrong, but unlike the majority of modern products, TestComplete (and other tools by SmatBear) provides really great documentation that is absolutely worth detailed reading.
/Alex [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
================================
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks
@AlexKaras wrote:
Hi,
> What does the 500 indicate in Sys.WaitProcess?
Don't get me wrong, but unlike the majority of modern products, TestComplete (and other tools by SmatBear) provides really great documentation that is absolutely worth detailed reading.
Partha Mandayam
Software Consultant
