Forum Discussion

chikki's avatar
chikki
Contributor
15 years ago

Running Testrunner from command line.

Hi,

I am Running Testrunner from command line.

Now I need to echo a result of "passed" for batch file (if all test passed) and "failed" for batch file (if one or more test failed).
How can I get a passed/failed result (no details) after running each test suite using command line if that is possible? or can anybody suggest a way of accomplishing this.

PS: I'm rather new to soapUI so please include as much details as you can

Thanks in advance

5 Replies

  • Hi,

    I am using the below statement in vbs editor.


    Set obj=CreateObject("Wscript.Shell")
    abc = obj.Run("cmd")
    WScript.Sleep "10000"
    xyz="testrunner.bat -h10.47.42.78:8080 -a -r -f C:\Result  D:\Code\WSL\trunk\soapUI\abcd.xml"
    WScript.Echo(abc)
    obj.AppActivate("cmd.exe")
    obj.SendKeys "cd C:\Program Files\eviware\soapUI-Pro-2.5.1\bin",3
    obj.SendKeys "~"
    obj.SendKeys xyz,3
    obj.SendKeys "~"

    how do i get the status of pass/Fail from command line arguments.

    I mean does it return any values?

    Is there any way apart from soapui.log where we can know the status of result?

    Looking forward for your response gurus....
  • what i want to know is is there any way where we can know fail/pass.

    does it returns any argument or some thing like in argument.



    xyz="testrunner.bat -h10.47.42.78:8080 -a -r -f C:\Result  D:\Code\WSL\trunk\soapUI\abcd.xml"