cancel
Showing results for 
Search instead for 
Did you mean: 

Keyword Test - Terminating Application Under test

SOLVED
Highlighted
New Contributor

Keyword Test - Terminating Application Under test

I am developing testcase in Keywordtest method and looking to ways to terminate the TestedApp application once the testcase execution is completed. Using Call Object method operation I was able to terminate the TestedApp after the execution is completed but I am looking for other ways to terminate the application in keyword test. In Scripting we can use "TestedApps["AAABBB"]["Terminate"]()" method.  Is there any better ways we can terminate the application in Keywordtest. Please provide suggestion

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Leader

Re: Keyword Test - Terminating Application Under test

With Terminate you means really erminate .. brutal stop with possibly leaving open handles and so on  or simply closing the apps ?

 

You can also send ALT-F4 to the apps or send a WM_CLOSE message (win32 api).

Un sourire et ça repart

View solution in original post

2 REPLIES 2
Highlighted
Community Hero

Re: Keyword Test - Terminating Application Under test

Call Object Method is your best bet.  The object you will use is the object that corresponds to the Tested application.  Or, you can use Sys.Process("appName") as the object and call terminate on that.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Highlighted
Community Leader

Re: Keyword Test - Terminating Application Under test

With Terminate you means really erminate .. brutal stop with possibly leaving open handles and so on  or simply closing the apps ?

 

You can also send ALT-F4 to the apps or send a WM_CLOSE message (win32 api).

Un sourire et ça repart

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!

Retrieve Data from a Web Page

Participate!
Top Kudoed Authors