Ask a Question

How to verify if an application closed using Testcomplete

SOLVED
mcp111
Contributor

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?

Regards

Partha Mandayam
Software Consultant
4 REPLIES 4
AlexKaras
Community Hero

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

 

Regards,
  /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
================================

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

 


 

Regards

Partha Mandayam
Software Consultant

Hi,

 

What does the 500 indicate in Sys.WaitProcess?

https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/sys/waitprocess-metho...

 

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.

Regards,
  /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
================================

Thanks

 


@AlexKaras wrote:

Hi,

 

What does the 500 indicate in Sys.WaitProcess?

https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/sys/waitprocess-metho...

 

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.


 

Regards

Partha Mandayam
Software Consultant
cancel
Showing results for 
Search instead for 
Did you mean: