Lior_Kinsbruner
17 years agoNew Contributor
Need to run specific Test Step through JUNIT test
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();
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();