rah
15 years agoOccasional Contributor
missing package org.apache.xmlbeans when running a Test Case from java
I am trying to start to run a TestCase from java more or less like this
try {
WsdlProject project = new WsdlProject(testxml);
TestSuite testSuite = project.getTestSuiteByName(suitename);
TestCase testCase = testSuite.getTestCaseByName(testcase);
// create empty properties and run synchronously
TestRunner runner = testCase.run(new PropertiesMap(), false);
Assert.assertEquals(Status.FINISHED, runner.getStatus());
}
catch (XmlException e) {
Assert.fail("Could not start soapui");
}
catch (IOException e) {
Assert.fail("Could not start soapui");
}
catch (SoapUIException e) {
Assert.fail("Could not start soapui");
}
But I keep getting the following Exception: package org.apache.xmlbeans does not exist
[javac] import org.apache.xmlbeans.XmlException;
what am I missing in my class path?
try {
WsdlProject project = new WsdlProject(testxml);
TestSuite testSuite = project.getTestSuiteByName(suitename);
TestCase testCase = testSuite.getTestCaseByName(testcase);
// create empty properties and run synchronously
TestRunner runner = testCase.run(new PropertiesMap(), false);
Assert.assertEquals(Status.FINISHED, runner.getStatus());
}
catch (XmlException e) {
Assert.fail("Could not start soapui");
}
catch (IOException e) {
Assert.fail("Could not start soapui");
}
catch (SoapUIException e) {
Assert.fail("Could not start soapui");
}
But I keep getting the following Exception: package org.apache.xmlbeans does not exist
[javac] import org.apache.xmlbeans.XmlException;
what am I missing in my class path?