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 22, 2008, 01:00:50 pm
Username:
Password:
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Forgot your password?
Test step Type
Welcome,
Guest
. Please
login
or
register
.
November 22, 2008, 01:00:50 pm
News:
The Forums are up! Welcome to eviware.
Eviware Forum
soapUI
soapUI
Test step Type
« previous
next »
Pages:
[
1
]
Author
Topic: Test step Type (Read 643 times)
Keacey
Newbie
Posts: 23
Test step Type
«
on:
April 14, 2008, 02:31:10 pm »
Hi,
How can i get the Test Step Type (like test request, groovy step, property transfer etc) for any test step? i want to use this information in groovy script.
Also how do u use the below method in a TestCase Interface? Could you please give me an example with respect to Test Request type?
<T extends TestStep> java.util.List<T> getTestStepsOfType(java.lang.Class<T> stepType)
Thanks in advance.
KC.
«
Last Edit: April 14, 2008, 03:21:56 pm by Keacey
»
Logged
omatzura
Administrator
Hero Member
Posts: 1,425
Re: Test step Type
«
Reply #1 on:
April 14, 2008, 08:26:18 pm »
Hi!
you can use
testStep.config.type
to get the type of a testStep. You can use the getTestStepsOfType method with for example:
def requests = testCase.getTestStepsOfType( WsdlTestRequestStep.class )
to get all requests..
regards!
/Ole
eviware.com
Logged
Keacey
Newbie
Posts: 23
Re: Test step Type
«
Reply #2 on:
April 15, 2008, 08:56:39 am »
Hi,
I tried with
def requests = testCase.getTestStepsOfType( WsdlTestRequestStep.class )
but this did not work and was giving errors.
However i used
testStep.config.type
for my code and it gave me perfect results.
Thanks a lot Ole.
Regards,
KC.
Logged
omatzura
Administrator
Hero Member
Posts: 1,425
Re: Test step Type
«
Reply #3 on:
April 15, 2008, 09:04:36 am »
Hi!
hmm.. what errors did you get with this first statement?
regards,
/Ole
eviware.com
Logged
Keacey
Newbie
Posts: 23
Re: Test step Type
«
Reply #4 on:
April 15, 2008, 09:07:51 am »
Hi Ole,
This is the error i got.
org.codehaus.groovy.runtime.metaclass.MissingPropertyExceptionNoStack: No such property: WsdlTestRequestStep for class: Script27
i did not replace "WsdlTestRequestStep" in the code with anything else. Was this the problem?
KC.
Logged
omatzura
Administrator
Hero Member
Posts: 1,425
Re: Test step Type
«
Reply #5 on:
April 15, 2008, 09:11:40 am »
Hi!
you will either need to import the WsdlTestRequestStep class or use
def requests = testCase.getTestStepsOfType( com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep.class )
regards,
/Ole
eviware.com
Logged
Keacey
Newbie
Posts: 23
Re: Test step Type
«
Reply #6 on:
April 15, 2008, 10:28:07 am »
Hi,
Thanks Ole. Will check with this too.
KC.
Logged
suri
Newbie
Posts: 1
Re: Test step Type
«
Reply #7 on:
April 15, 2008, 01:06:10 pm »
caan any one help me how to start soapUI
Logged
ramesh nallavolu
Newbie
Posts: 30
Re: Test step Type
«
Reply #8 on:
April 18, 2008, 09:01:34 pm »
what is the problem you facing ... do you see any exceptions while you start ?
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...