Squish GUI Tests catch exceptions

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
3 posts • Page 1 of 1
kilianvp
Posts:443
Joined: Fri Jan 16, 2015 10:29 am

Squish GUI Tests catch exceptions

Post by kilianvp »

Hallo,

im currently evaluating froglogic Squish GUI Tester.

Is there any way to read the output of the Logviewer?

If a uncaught exception happens the running test should stop and the test log should contain the uncaught exception.

Best regards
Kilian

Gertjan van Schijndel
Posts:634
Joined: Mon Aug 02, 2010 10:37 am

Re: Squish GUI Tests catch exceptions

Post by Gertjan van Schijndel »

From our tester:
As I understand is that for example Squish clicks a button in a panel. The CTRL code behind the button causes an unhandled exception entry in the WinCC_OA LogViewer.

Solution 1: Read the WinCC_OA log file via Sqhish script and parse the content.
Solution 2: Start the WCCOAui manager with '-log +stderr', so that the Sqhish get's the stdout/stderr of the manager.
Squish Code (Java Script):
ctx = startApplication([yourInstallPath] + "bin/WCCOAui -proj " + PROJ_NAME + " -log +stderr");
var stdout = ctx.readStdout();
var stderr = ctx.readStderr();

//for more information on readStdout and readStderr see Squish help

kilianvp
Posts:443
Joined: Fri Jan 16, 2015 10:29 am

Re: Squish GUI Tests catch exceptions

Post by kilianvp »

Nice! Thanks for the help

3 posts • Page 1 of 1