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
Script Wanted
Let's start July with new challenges!

Create a script to pass custom command-line arguments as a test parameter for the TechCorner tag!

Will you dare to take the challenge?


Top Kudoed Authors