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 01, 2008, 06:36:57 pm
Username:
Password:
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Forgot your password?
Running a Test Case from groovy script
Welcome,
Guest
. Please
login
or
register
.
December 01, 2008, 06:36:57 pm
News:
The Forums are up! Welcome to eviware.
Eviware Forum
soapUI
soapUI
Running a Test Case from groovy script
« previous
next »
Pages:
[
1
]
Author
Topic: Running a Test Case from groovy script (Read 353 times)
anu
Newbie
Posts: 6
Running a Test Case from groovy script
«
on:
August 22, 2008, 01:13:29 am »
Hi Ole
I want to run a test case. For that I have coded the following. But, I get compilation error. Can you pl. help me
testRunner.getTestCase().getTestStepByName("Step getSessionid").run(testRunner, context);
println("Finished Executing:");
List stepResult=testRunner.getResults()
Iterator j=stepResult.iterator();
while (j.hasNext())
{
TestStepResult result=(TestStepResult)j.next();
println("result:"+result.getStatus())
}
The error is in "TestStepResult result=(TestStepResult)j.next();"
Also can you explain me why is testrunner being passed as parameter in the run method?
Thanks
Anu
Logged
omatzura
Administrator
Hero Member
Posts: 1,466
Re: Running a Test Case from groovy script
«
Reply #1 on:
August 24, 2008, 10:10:23 pm »
Hi Anu,
just to make sure; you are running a TestStep, not a TestCase here..
Can you show the actual compilation error so I can get a better understanding?
If you want to know why the testRunner is being passed as an argument to the TestStep.run method, I kindly ask you to have a look at the source-code, you will see how it is used :-)
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...