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. ipting we can use "TestedApps["AAABBB"]["Terminate"]()" method. Is there any better ways we can terminate the application in Keywordtest. Please provide suggestion
Solved! Go to Solution.
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.
[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
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