header
header
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:
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
Home Help Search Login Register
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] Print
Author Topic: Groovy script executed up to the end after a testRunner.gotoStepByName(someStep)  (Read 323 times)
mermet
Newbie
*
Posts: 16


« 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


« 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] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
header header
header
header