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();
Above is the code I used for SoapUI and its working fine, now I'm trying to implement soapUI pro. I tried same code by calling soapui-pro test cases , I got below exception
java.util.ServiceConfigurationError: java.sql.Driver: Provider org.olap4j.driver.xmla.XmlaOlap4jDriver could not be instantiated
at java.util.ServiceLoader.fail(ServiceLoader.java:232)
at java.util.ServiceLoader.access$100(ServiceLoader.java:185)
at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:384)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
at java.lang.Iterable.forEach(Iterable.java:74)
at com.eviware.soapui.DefaultSoapUICore.loadJdbcDrivers(DefaultSoapUICore.java:690)
at com.eviware.soapui.DefaultSoapUICore.loadExternalLibraries(DefaultSoapUICore.java:725)
at com.eviware.soapui.DefaultSoapUICore.init(DefaultSoapUICore.java:185)
at com.eviware.soapui.DefaultSoapUICore.<init>(DefaultSoapUICore.java:159)
at com.eviware.soapui.DefaultSoapUICore.createDefault(DefaultSoapUICore.java:169)
at com.smartbear.ready.core.ApplicationEnvironment.initDefaultCore(ApplicationEnvironment.java:213)
at com.smartbear.ready.core.ApplicationEnvironment.getSoapUICore(ApplicationEnvironment.java:182)
at com.smartbear.ready.core.Registries.getListenerRegistry(Registries.java:16)
at com.eviware.soapui.impl.wsdl.WsdlProject.addProjectListeners(WsdlProject.java:998)
at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:317)
at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:303)
at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:298)
at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:286)
at com.interac.api.emt.test.SoapRunner2.soapRunner(SoapRunner2.java:137)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:348)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:343)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:305)
at org.testng.SuiteRunner.run(SuiteRunner.java:254)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
at org.testng.TestNG.run(TestNG.java:1057)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:115)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)
Caused by: java.lang.IllegalAccessException: Class java.util.ServiceLoader$LazyIterator can not access a member of class org.olap4j.driver.xmla.XmlaOlap4jDriver with modifiers "protected"
at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:102)
at java.lang.Class.newInstance(Class.java:436)
at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380)
... 41 more