If I fixed that exception. I'm getting failed to load a project exception. I'm trying to load composite project here. I'm not sure is it possible to load composite project with below code
public void soapRunner() throws Exception {
testProjectFileNameStr = "C:\\Users\\akrishnan\\git\\et-3.5-automation\\et-3.5-automation\\";
proxy = ProxySelector.getDefault();
// TestUtil.getEnvProperties();
testSuiteResultJsonArrList = new ArrayList<String>();
testProjectResultJsonArrList = new ArrayList<String>();
project = new WsdlProject(testProjectFileNameStr);
testProjectNameStr = project.getName();
final WsdlTestSuite testSuite = project.getTestSuiteByName("InitiateTransfer");
// testSuiteDisabled = testSuite.getConfig().getDisabled();
final int numOfTestCases = testSuite.getTestCaseCount();
KSU.testSuitesOut(testSuiteNameStr);
KSU.info("Number Of Test Cases: " + numOfTestCases);
testCaseResultJsonArrList = new ArrayList<String>();
if (!testSuiteDisabled) {
for (int i = 0; i < numOfTestCases; i++) {
testCase = testSuite.getTestCaseAt(i);
// testCase.setDisabled(true);
testCaseNameStr = testCase.getName();
testCaseDisabled = testCase.getConfig().getDisabled();
final int countCases = i + 1;
final int numOfTestSteps = testCase.getTestStepCount();
KSU.testCasesOut(countCases, testCaseNameStr);
KSU.info("Number of Test Steps: " + numOfTestSteps);
testStepResultJsonArrList = new ArrayList<String>();
if (!testCaseDisabled) {
for (int j = 0; j < numOfTestSteps; j++) {
reasonStr = "";
final WsdlTestStep testStep = testCase.getTestStepAt(j);
testStepNameStr = testStep.getName();
final int countSteps = j + 1;
KSU.testStepsOut(countSteps, testStepNameStr);
testStepDisabled = testStep.getConfig().getDisabled();
if (!testStepDisabled) {
testRunner = new WsdlTestCaseRunner(testCase, null);
soapResult = testRunner.runTestStepByName(testStepNameStr);
final Status result = testRunner.getStatus();
final String resultStr = result.toString();
An error occurred [Failed to load project from file [file:/C:/Users/akrishnan/git/et-3.5-automation/et-3.5-automation/]], see error log for details
13:01:17,913 ERROR [errorlog] com.eviware.soapui.support.SoapUIException: Failed to load project from file [file:/C:/Users/akrishnan/git/et-3.5-automation/et-3.5-automation/]
com.eviware.soapui.support.SoapUIException: Failed to load project from file [file:/C:/Users/akrishnan/git/et-3.5-automation/et-3.5-automation/]
at com.eviware.soapui.impl.wsdl.WsdlProject.loadProject(WsdlProject.java:498) ~[ready-api-soapui-2.8.0.jar:2.8.0]
at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:324) [ready-api-soapui-2.8.0.jar:2.8.0]
at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:303) [ready-api-soapui-2.8.0.jar:2.8.0]
at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:298) [ready-api-soapui-2.8.0.jar:2.8.0]
at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:286) [ready-api-soapui-2.8.0.jar:2.8.0]
at com.interac.api.emt.test.SoapRunner2.soapRunner(SoapRunner2.java:137) [classes/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_171]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_171]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_171]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_171]
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84) [testng-6.8.8.jar:?]
at org.testng.internal.Invoker.invokeMethod(Invoker.java:714) [testng-6.8.8.jar:?]
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901) [testng-6.8.8.jar:?]
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231) [testng-6.8.8.jar:?]
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127) [testng-6.8.8.jar:?]
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111) [testng-6.8.8.jar:?]
at org.testng.TestRunner.privateRun(TestRunner.java:767) [testng-6.8.8.jar:?]
at org.testng.TestRunner.run(TestRunner.java:617) [testng-6.8.8.jar:?]
at org.testng.SuiteRunner.runTest(SuiteRunner.java:348) [testng-6.8.8.jar:?]
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:343) [testng-6.8.8.jar:?]
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:305) [testng-6.8.8.jar:?]
at org.testng.SuiteRunner.run(SuiteRunner.java:254) [testng-6.8.8.jar:?]
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) [testng-6.8.8.jar:?]
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) [testng-6.8.8.jar:?]
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224) [testng-6.8.8.jar:?]
at org.testng.TestNG.runSuitesLocally(TestNG.java:1149) [testng-6.8.8.jar:?]
at org.testng.TestNG.run(TestNG.java:1057) [testng-6.8.8.jar:?]
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:115) [testng-remote.jar:?]
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251) [testng-remote.jar:?]
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77) [testng-remote.jar:?]
Caused by: org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA
at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3486) ~[xbean-2.4.0-sb-fixed.jar:?]
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1276) ~[xbean-2.4.0-sb-fixed.jar:?]
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1263) ~[xbean-2.4.0-sb-fixed.jar:?]
at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345) ~[xbean-2.4.0-sb-fixed.jar:?]
at com.eviware.soapui.config.SoapuiProjectDocumentConfig$Factory.parse(Unknown Source) ~[ready-api-soapui-2.8.0.jar:2.8.0]
at com.eviware.soapui.impl.wsdl.WsdlProject.loadProjectFromStreamBase(WsdlProject.java:517) ~[ready-api-soapui-2.8.0.jar:2.8.0]
at com.eviware.soapui.impl.wsdl.WsdlProject.loadProjectFromInputStream(WsdlProject.java:689) ~[ready-api-soapui-2.8.0.jar:2.8.0]
at com.eviware.soapui.impl.wsdl.WsdlProject.loadProject(WsdlProject.java:482) ~[ready-api-soapui-2.8.0.jar:2.8.0]
... 29 more