Forum Discussion

Tareque's avatar
Tareque
Occasional Contributor
17 years ago

Invoking TestRunner from web application

Hi,
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.
Regards
T

1 Reply

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Tareque,

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

    regards,

    /Ole
    eviware.com