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 01, 2008, 06:36:57 pm
Username: Password:
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
Home Help Search Login Register
News: The Forums are up! Welcome to eviware.

+  Eviware Forum
|-+  soapUI
| |-+  soapUI
| | |-+  Running a Test Case from groovy script
« previous next »
Pages: [1] Print
Author Topic: Running a Test Case from groovy script  (Read 353 times)
anu
Newbie
*
Posts: 6


« 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


« 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] 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