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
Squish GUI Tests catch exceptions
- Gertjan van Schijndel
- Posts:634
- Joined: Mon Aug 02, 2010 10:37 am
Re: Squish GUI Tests catch exceptions
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
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
Nice! Thanks for the help