Forum Discussion

Hamza_amami's avatar
Occasional Contributor
6 years ago

Need dependency for integrating ReadyApi with Java Maven


I've done a lot of dev with SoapUi (open source version) with this dependency


Now that we bought SoapUi Pro, some testSteps can't be executed in our Java code (I guess because these testStep are only compatible with SoapUi OpenSource testRunner)

Is there a way to keep the same code source that we have and integrate the Pro feature, like changing only the dependency ?


2 Replies

  • Hi Hamza_amami,


    Would you mind sharing the piece of your Java code where you invoke SoapUI OS classes so that we could advise what SoapUI Pro classes you need to use for achieving the same and what exact Maven dependencies should be included to your POM? 


    • Hamza_amami's avatar
      Occasional Contributor

      hank your for your answer: here's how I envoke soapui teststeps :

      SoapUI.setSoapUICore(new StandaloneSoapUICore(true));
      		SoapUI.getSettings().setBoolean(HttpSettings.RESPONSE_COMPRESSION, false);
      		WsdlProject project;
      		try {
      			project = new WsdlProject("SoapProjects/" + projectName);
      			tSuite = project.getTestSuiteByName(defaultTestSuite);
      		} catch (XmlException | IOException | SoapUIException e) {



      WsdlTestCase tc = tSuite.getTestCaseByName("name");
      			Map<String, String> params = new HashMap<String, String>() {
      					put("ApiVersion","1.0.0" );
      					put("env",env );



      for (int i = 0; i < tc.getTestStepCount(); i++) {
      			WsdlTestStep ts = tc.getTestStepAt(i);
      			String tsName = ts.getName();
      			if (!ts.isDisabled()) {
      				WsdlTestCaseRunner runner = new WsdlTestCaseRunner(tc, new StringToObjectMap());
      				TestStepResult result = runner.runTestStep(ts);

      By the way, I filter on disabled, but it execute them anyway

      Thanks in advance