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.
November 22, 2008, 04:16:33 am
Username: Password:
Login with username, password and session length

Forgot your password?
 
Need to run specific Test Step through JUNIT test
Welcome, Guest. Please login or register.
November 22, 2008, 04:16:33 am
Home Help Search Login Register
News: The Forums are up! Welcome to eviware.

+  Eviware Forum
|-+  soapUI
| |-+  soapUI
| | |-+  Need to run specific Test Step through JUNIT test
« previous next »
Pages: [1] Print
Author Topic: Need to run specific Test Step through JUNIT test  (Read 324 times)
Lior Kinsbruner
Newbie
*
Posts: 4


« on: August 10, 2008, 02:45:19 pm »

Hi,
I Need to run specific Test Step through JUNIT and I only saw a way to run a whole Test Case (which obviously has multiple test steps).

This is my code:
assertNotNull("Please set the SoapUI project file", soapUIProject);
        WsdlProject project = new WsdlProject(soapUIProject.getAbsolutePath());
        printProjectTestInfo(project);
        TestSuite testSuite = project.getTestSuiteByName(suiteName);

        TestCase testCase = testSuite.getTestCaseByName(caseName);
        testCase.addTestRunListener(this);

        // create empty properties and run synchronously
       
        TestRunner runner = testCase.run(new PropertiesMap(), false);
        Status status = runner.getStatus();
Logged
omatzura
Administrator
Hero Member
*****
Posts: 1,425


« Reply #1 on: August 11, 2008, 07:24:55 am »

Hi!

hmm.. maybe you could just disable all the other teststeps with testStep.setDisabled( true ) before running the testcase?

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