Mailingliste - Einträge 2006


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

Re: [qftestJUI] Jython Exception Handling


  • Subject: Re: [qftestJUI] Jython Exception Handling
  • From: Martin Moser <martin.moser@?.com>
  • Date: Wed, 28 Jun 2006 11:13:21 +0200

Hi Jonathan,

I'm running qftest 1.08.4 and it works, if I run a server-script and not
a SUT-script to start procedures.

In the server-script I was able to catch a TestException (exception like
"ComponentNotFound", "ClientNotConnected",  etc.).

Regards,
Martin

Am Dienstag, den 27.06.2006, 09:15 -0700 schrieb Bennit, Jonathan @ TW:
> 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:
> 
>     try:
> 
>         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.
> 
> 
> 
> _______________________________________________
> qftestJUI-list mailing list
> qftestJUI-list@?.de
> http://www.qfs.de/mailman/listinfo/qftestjui-list
-- 
Martin Moser
SQM Services & Solutions Projektleiter

Phone: +49 711 806708 24
Mobile: +49 173 3449280
Fax:   +49 711 806708 19
eMail: martin.moser@?.com

daemons point GmbH
Zahn-Nopper-Straße 3
D-70435 Stuttgart

http://www.daemons-point.com




Videos Downloads Dokumentation Kaufen Gratis Testen