Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » Jubula try/catch example
Jubula try/catch example [message #1736320] Tue, 28 June 2016 11:53 Go to next message
Dan Huang is currently offline Dan HuangFriend
Messages: 10
Registered: June 2016
Junior Member
Hello,

I search for that Jubula can use try/catch statement at test case level in ITE, like some webrealembed.blogspot.tw/2013/10/jubula-vs-qftest.html says:

Try/Catch
Jubula: It doesn't support try/catch at each step level but only at test case level.


But I cannot find it out. Could you give some hint or example?
Thank you

[Updated on: Wed, 29 June 2016 00:55]

Report message to a moderator

Re: Jubula try/catch example [message #1736522 is a reply to message #1736320] Thu, 30 June 2016 07:39 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi Dan,

you're probably looking for "retry event handlers". An example of how they work is here:
http://testing.bredex.de/wait-for-status-text-to-change.html

Best regards,
Alex
Re: Jubula try/catch example [message #1736712 is a reply to message #1736522] Fri, 01 July 2016 09:45 Go to previous messageGo to next message
Dan Huang is currently offline Dan HuangFriend
Messages: 10
Registered: June 2016
Junior Member
Hi Alexandra,

I cannot find the retry event handlers, I search keyword "retry" in Test Case Browser's search bar.
My default module toolkit is concrete[8.2], rcp[8.2], swt[8.2].
Re: Jubula try/catch example [message #1736732 is a reply to message #1736712] Fri, 01 July 2016 11:25 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hello Dan,

Event Handlers are normal Test Cases that you create. They only get called when an error occurs. You can read how to add Event Handlers in the docs here:
http://help.eclipse.org/neon/topic/org.eclipse.jubula.client.ua.help/content/html/userManual/tasks/dealWithErrors/dealing-with-errors-in-tests.html?cp=46_2_25

Best regards,
Alex
Re: Jubula try/catch example [message #1736992 is a reply to message #1736732] Tue, 05 July 2016 01:03 Go to previous message
Dan Huang is currently offline Dan HuangFriend
Messages: 10
Registered: June 2016
Junior Member
Thanks. I got it.
Previous Topic:Need some wait until the component is present/loaded usage example
Next Topic:Eclipse RCP Jacoco .exec file
Goto Forum:
  


Current Time: Thu Apr 25 20:52:36 GMT 2024

Powered by FUDForum. Page generated in 0.03271 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top