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
.
November 21, 2008, 08:15:34 am
Username:
Password:
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Forgot your password?
How to retrieve the Test Suite and Test Case labels within a groovy script
Welcome,
Guest
. Please
login
or
register
.
November 21, 2008, 08:15:34 am
News:
The Forums are up! Welcome to eviware.
Eviware Forum
soapUI
soapUI
How to retrieve the Test Suite and Test Case labels within a groovy script
« previous
next »
Pages:
[
1
]
Author
Topic: How to retrieve the Test Suite and Test Case labels within a groovy script (Read 383 times)
mermet
Newbie
Posts: 16
How to retrieve the Test Suite and Test Case labels within a groovy script
«
on:
December 14, 2007, 10:00:00 am »
Hi, I would like to create some log (using log4j Logger) of my Test activity. For that I need to be able to retrieve the Test Suite ad Test Cases labels from within a groovy script. I have looked at the javadoc of the WsdlTestCaseRunner and WsdlTestRunContext and have found nothing.
Is there a way to retrieve that Information ?
Thanks.
Logged
omatzura
Administrator
Hero Member
Posts: 1,420
Re: How to retrieve the Test Suite and Test Case labels within a groovy script
«
Reply #1 on:
December 14, 2007, 10:02:48 am »
Hi mermet,
sure.. try using the following to print them..
log.info( testRunner.testCase.name + " in " + testRunner.testCase.testSuite )
Hope this helps!
regards,
/Ole
eviware.com
Logged
mermet
Newbie
Posts: 16
Re: How to retrieve the Test Suite and Test Case labels within a groovy script
«
Reply #2 on:
December 30, 2007, 10:07:59 am »
Hi Ole, this produces the following output:
Sun Dec 30 10:04:14 CET 2007:INFO:Initialisation Test Case in com.eviware.soapui.impl.wsdl.WsdlTestSuite@e62df
Gives at least the correct Test Case name under soapUI 1.7.6. I'll give a try with soapUI 2.0...
Thanks.
Logged
omatzura
Administrator
Hero Member
Posts: 1,420
Re: How to retrieve the Test Suite and Test Case labels within a groovy script
«
Reply #3 on:
December 30, 2007, 12:02:49 pm »
Hi!
sorry, it should have been
log.info( testRunner.testCase.name + " in " + testRunner.testCase.testSuite.name )
regards,
/Ole
eviware.com
Logged
mermet
Newbie
Posts: 16
Re: How to retrieve the Test Suite and Test Case labels within a groovy script
«
Reply #4 on:
January 02, 2008, 04:15:24 pm »
Hi, works new with testRunner.testCase.testSuite.name.
Thanks a lot !
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...