Mailingliste - Einträge 2006

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[qftestJUI] Jython Exception Handling

  • Subject: [qftestJUI] Jython Exception Handling
  • From: "Bennit, Jonathan @ TW" <Jonathan.Bennit@?.com>
  • Date: Tue, 27 Jun 2006 09:15:14 -0700

Since we do our own logging separate from qftest’s built in log, I’m trying to do all the error handling in a Jython Server script similar to this:


        rc.callProcedure(“Procedure Name”, None)

    except UserException, (errMsg):

        rc.callProcedure(“Log Message”, {“arg”:”Test Failed: %s” % errMsg})


In each of the procedures I have Try-Catch statements that trap any errors and then throw UserExceptions with the error message. My problem is that these exceptions are not being sent back to the Jython script, they are being handling by qftestJUI. I suppose creating the Try-Catch structure as nodes in qftest and then just having Jython script as an error handler in the catch node would work, but is there any way to handle errors in procedures inside the Jython script that called them?


Jonathan Bennit


This message and any attachments are solely for the use of the individual or entity to which it is addressed and may contain information that is privileged or confidential. If you are not the intended recipient, any disclosure, use or distribution of the information contained herein is prohibited. If you have received this communication in error, please notify the sender by reply e-mail and immediately delete this message and any attachments.