Forum Discussion

MSrisawat's avatar
MSrisawat
New Contributor
11 years ago

exporting xml test report for loadtestrunner

Hi,

I want to run loadtestrunner on Jenkins, and to have a report on results I need to export results in xml format.

At first I thought it would simply be a case of running a command and specifying output folder + file format.
A nice instruction page on using Launch Loadtestrunner is on http://www.soapui.org/Load-Testing/comm ... ution.html

However, when I follow instructions result is that running Launch Loadtestrunner results in an ok message, and exports two plain text files about logging and statistics - no xml files are being made.

If I run a command like
loadtestrunner.bat -FXML -R"c:\someoutputdirectory" "c:\someplace\soapuiproject.xml"

it runs the tests but does not generate a xml file.

I must be missing something small, but I have no clue.
Do I forget an option, or do I put it on the wrong place?
Does my project contains errors?
I know this must be a case of RTFM, but I don't see it anymore.
What can I do to find out?

Greetings, Albert

5 Replies

  • Try this instead

    loadtestrunner.bat -s"TestSuite Name" -c"TestCase Name" -l"LoadTest Name" -fC:\someplace -R"LoadTest Report" -F XML


    Let me know if this works.

    Regards,
    Temil
  • MSrisawat's avatar
    MSrisawat
    New Contributor
    Thank you for your reply, Temil.

    I tried this command (cmd was opened with administrator rights):
    c:\Program Files\SmartBear\SoapUI-Pro-5.0.0\bin>loadtestrunner.bat -s"Published_web_serviceSoap TestSuite" -c"ReturnHelloWorld TestCase" -l"LoadTest 1" -f"f:\documentatie\soapuistuff\dezedan" -R"NewReport" -F XML "f:\documentatie\soapuistuff\HelloWorld-soapui-project.xml"


    Again, the test ran fine, but no test report could be found.

    I created the project with an open source version. I will try a new one created with Pro. See if that makes a difference.

    Regards, Albert
  • Open source does not have the reporting feature. This should work with the Pro version.

    Regards,
    Temil
  • MSrisawat's avatar
    MSrisawat
    New Contributor
    I created a new project with SoapUI Pro, and ran it with Pro. Still with the same problem.
    I tend to give up and create a workaround with the 'plain' log file.

    Regards, Albert
  • Hi,

    To generate XML report with SoapUI pro 5.0.0. Launch the LoadTestRunner > switch to the reports tab > Check the screenshot. Run it. Copy the command > Start the commandline > Browse to the SoapUI Pro installation\bin folder and then paste the command.

    It should work.

    Thanks,
    Jeshtha