Showing results for 
Search instead for 
Did you mean: 

Invoking TestRunner from web application

Occasional Contributor

Invoking TestRunner from web application

I am creating a web application which will allow users to execute testRunner from a browser. Is there any way this can be achieved? Currently I am using the following piece of code in my Webapplication. This starts a new command window and executes the WebRunnerTestCase.

String cmdLine = "cmd /c start testrunner.bat -r -c WebRunnerTestCase D:/soapUIprojects/DBDrivenTest-soapui-project.xml";
    Process proc = Runtime.getRuntime().exec(commandLine.toString(), null, soapUIBinDir);

The problem with this solution is that if the server is running on some remote system this will not work. Is there any way i can trigger the execution of com.eviware.soapui.SoapUIProTestCaseRunner from a Web Application?

Would appreciate any suggestion.
Super Contributor

Re: Invoking TestRunner from web application

Hi Tareque,

try linking to the soapui jars and running the SoapUIProTestCaseRunner class directly!?


New Here?
Join us and watch the welcome video:
Watch the new Interview