Contact Us
About Us
News
Home
Main Menu
Home
Eviware Store
Downloads
Products
News
Forum
Eviware Blog
Search
FAQs
Customer Area
Support
Documentation
Tutorials
CookBook
Downloads
Forum
Login Form
Welcome,
Guest
. Please
login
or
register
.
December 04, 2008, 10:03:58 pm
Username:
Password:
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Forgot your password?
Groovy script executed up to the end after a testRunner.gotoStepByName(someStep)
Welcome,
Guest
. Please
login
or
register
.
December 04, 2008, 10:03:58 pm
News:
The Forums are up! Welcome to eviware.
Eviware Forum
soapUI
soapUI
Groovy script executed up to the end after a testRunner.gotoStepByName(someStep)
« previous
next »
Pages:
[
1
]
Author
Topic: Groovy script executed up to the end after a testRunner.gotoStepByName(someStep) (Read 323 times)
mermet
Newbie
Posts: 16
Groovy script executed up to the end after a testRunner.gotoStepByName(someStep)
«
on:
December 20, 2007, 03:52:46 pm »
Hi, I'm observing that a Groovy script is executed up to the end even after a testRunner.gotoStepByName(someStep);
If there an efficient way to return from a Groovy script after a testRunner.gotoStepByName() call ? return ?
Or the only way is if() else ?
Thanks and merry Christmas !
if ( requestId.equals(contextRequestId) == false ) {
log.info ("ERROR: received RequestId value '" + requestId + "' does NOT match RequestId value in Context '" + contextRequestId + "'");
// Protect the Test Case against out dated or unrelated Notifications
//testRunner.fail("Blabla");
log.info ("Ignoring Notification for RequestId '" + requestId + "'. Returning to step Notification Request...");
// Transfers execution of this TestRunner to the TestStep with the specified name in the TestCase
testRunner.gotoStepByName("Notification Request");
}
This code is always executed:
log.info ("Received RequestId value '" + requestId + "' matching RequestId value in Context '" +
contextRequestId + "'");
Logged
omatzura
Administrator
Hero Member
Posts: 1,506
Re: Groovy script executed up to the end after a testRunner.gotoStepByName(someS
«
Reply #1 on:
December 20, 2007, 09:02:57 pm »
Hi!
you should be able to just do a return to exit the script.
Hope this helps...
regards,
/Ole
eviware.com
Logged
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> eviware general
-----------------------------
soapUI
-----------------------------
=> soapUI
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Powered by SMF 1.1.2
|
SMF © 2006-2007, Simple Machines LLC
Loading...