List Icon
Mailing list Archive

2019 up to July 2022 | 20182017  |  2016  2015 2014 | 2013

The mailing list has been closed since July 2022, but continues to serve as an archive of information about QF-Test.
But if you want to stay informed about news about QF-Test, you can simply
Subscribe to Newsletter  

To get up-to-date information about each release - including minor releases - you can
subscribe to the RSS feed or follow us on social media.
Alternatively, QF-Test also provides release information itself.

Another source of information is our blog, where there are current articles on general topics, on the company QFS and also various "how-tos"
subscribe to blog

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

Re: [QF-Test] Exception thrown in a procedure is not catched properly in the calling Jython script

  • Subject: Re: [QF-Test] Exception thrown in a procedure is not catched properly in the calling Jython script
  • From: Bernhard Schmitt <bernhard.schmitt@?.de>
  • Date: Thu, 19 Jan 2017 15:12:19 +0000



ok, I could answer my question on my own. I just created a wrapper function to handle the exception.


The call of this wrapper function is done in the original jython script:


Name = ‚first‘

Paras  = {‚p1‘:1,‘p2‘,2}



The procedure „wrap“ with parameters „procName“ and „procParas“ hast the following content:



      Jython Server Script 1

Catch User Exception

     Jython Server Script 2    # log the exception


The Jython Server Script 1 comes here:


import ast

paras = ast.literal_eval(rc.lookup("procPara"))





Maybe it is not the smartest solution but it seems tob e working.








Bernhard Schmitt

Consultant Softwaretest

E-Mail: bernhard.schmitt@?.de


imbus Rhein-Main GmbH, Kirschgartenstraße 15, 65719 Hofheim, DEUTSCHLAND

Tel. +49 6192 92192-0, Fax +49 6192 92192-50



Geschäftsführer: Frank Schmeißner, Tilo Linz, Thomas Roßner

Sitz der Gesellschaft: Hofheim

Registergericht: Frankfurt am Main, HRB 52155