Contributions
Re: Issue while Running SOAPUI xml from Java in a container like Jboss Server
Yes the web application is taking the parameter like the SOAPUI XML path , SOAPUI report generation path .The SOAP UI is running in a different thread. Also while running I have monitored the server the active thread count ..after the runner.run() line executes the active thread count is 0 ..but still the server is getting hanged ..It is not allowing to run any other process.791Views0likes1CommentRe: Issue while Running SOAPUI xml from Java in a container like Jboss Server
Hi Rao, Thanks for your patience. I really appreciate for your help . You are correct . I have written a program (which execute the soapui project), created a library and deployed in jboss. As you mentioned I have tried by using the testRunner.bat and also from CI like JEnkins .It is working fine. But here we are developing one framework which will execute any type of test cases like SOAPUI or SELENIUM type ..Our requirement is to execute that framework form the server ..Thats why I am using like this. Hope my explanation clarify your question .2.4KViews0likes3CommentsRe: Issue while Running SOAPUI xml from Java in a container like Jboss Server
Hi Rao, Thanks again for your quick reply . I am really struggling to fix this issue. I have a web application UI . My requirement is from my application I need to select the SOAPUI xml path which is present in my server static path and then when I will click one button (eg Run) from my UI .. It should execute that SOAPUI xml and generate the result report in the server path . So when I am running this from my UI the server is getting stuck . A quick response is highly appreciated.2.5KViews0likes7CommentsRe: Issue while Running SOAPUI xml from Java in a container like Jboss Server
Hi Rao, Thanks for your quick reply . The link which you have provided I have gone through this. I have written the similar piece of code to run the xml . SoapUITestCaseRunner runner = new SoapUITestCaseRunner(); // Set xml path runner.setProjectFile((String) detail.get("testcasepath")); // Set output folder runner.setOutputFolder(filePath + timeStamp); // Executing the xml and generating the report runner.setJUnitReport(true); runner.setPrintReport(true); try { LOGGER.error("Run Started"); runner.run(); } catch (Exception e1) { LOGGER.error("Execution failed due to : "); e1.printStackTrace(); } But the issue here is the test cases is running fine when running from a standalone program but while invoking the same program from a webapplication the JBOSS server is getting stuck at that point. Server is not responding no more.We need to restart the server again to respond as usual.2.5KViews0likes9CommentsIssue while Running SOAPUI xml from Java in a container like Jboss Server
I am trying to run the SOAP UI project xml from the Java end and that java project is a web application that has been deployed in Jboss server. The SOAPUI xml is running for the first time and report is generating but the server is getting hanged after that .. and also it is not allowing to do any successive run . I am closing the SOAPUI Thread also completely. Please find the code snippet which I have written for this. //SOAPUI xml file path set here runner.setProjectFile((String) detail.get("testcasepath")); runner.setOutputFolder(filePath + timeStamp); // Executing the xml and generating the report runner.setJUnitReport(true); runner.setPrintReport(true); try { LOGGER.error("Run Started"); runner.run(); } catch (Exception e1) { System.out.println("Execution failed due to : "); e1.printStackTrace(); } } // Need to shutdown all the threads invoked by each SoapUI TestSuite SoapUI.getThreadPool().shutdown(); try { SoapUI.getThreadPool().awaitTermination(1, TimeUnit.MINUTES); } catch (InterruptedException e) { e.printStackTrace(); } // Now to shutdown the monitor thread setup by SoapUI Thread[] tarray = new Thread[Thread.activeCount()]; Thread.enumerate(tarray); for (Thread t : tarray) { if (t instanceof SoapUIMultiThreadedHttpConnectionManager.IdleConnectionMonitorThread) { ((SoapUIMultiThreadedHttpConnectionManager.IdleConnectionMonitorThread) t) .shutdown(); } } // Finally Shutdown SoapUI itself. SoapUI.shutdown();2.6KViews0likes11Comments