Forum Discussion

Jonas's avatar
Jonas
Occasional Contributor
15 years ago

PDF Report not created

Hello,
i'm using soapUI Pro 3.5.1
Everytime i launch the TestRunner for a TestSuite i want a PDF Report file to be generated.
So in the "Reports" Options i set the Root Folder: D:\Export, the Report to Generate: Test_Report and the Report Format(s): PDF.

When i lunch the TestRunner everything works fine except the Report. I can't find any pdf file in my Root Folder.

Thanks,
Jonas

7 Replies

  • Jonas's avatar
    Jonas
    Occasional Contributor
    Hey Robert,

    The problem still exist.
    Additional Info:
    The Tests are now started via Commandline with the following parameters:
    cmd.exe /C testrunner.bat -h"%IPAddress%" -u"%User%" -p"%Pw%" -f%ReportPath% -R"Test Report" -FPDF -a

    Jonas
  • hi,

    you need to add soapui.home property:

    cmd.exe /C testrunner.bat -h"%IPAddress%" -u"%User%" -p"%Pw%" -f%ReportPath% -R"Test Report" -FPDF -a -Dsoapui.home=path_where_you_installed_soapui

    let us know if this helps
    regards
    Nebojsa
    eviware.com
  • Jonas's avatar
    Jonas
    Occasional Contributor
    Hey,

    thanks for the quick answer. Unfortunately the problem stays the same.
    All TestSuites are working fine.
    When i start the Test in TestSuite Editor and then click the "Creates a Report for this item"-Button, select "TestSuite Report" i'm getting exactly what i want.

    Jonas
  • Hello,

    Try changing the command option -R"Test Report" to -R"TestSuite Report" (it needs to match the actual name of the report to generate).

    Regards,
    Dain
    eviware.com
  • Jonas's avatar
    Jonas
    Occasional Contributor
    Hey,

    i found the problem.
    My cmd script looked like this:
    @echo off
    cls
    setlocal
    path %path%;D:\tools\eviware\soapUI-Pro-3.5.1\bin
    cmd.exe /C testrunner.bat -R"TestSuite Report" -fD:\_export\ -FPDF "D:\_xml\test.xml"
    endlocal


    There is one parameter missing that is needed to create a PDF Report.
    -s"TestSuite-Name"

    I didn't add this one because the ambition of the script file was to run all xml soapUI projectfiles within a folder:
    dir %XMLPath%*.xml
    for %%k in (%XMLPath%*.xml) do (
    @echo %%k
    cmd.exe /C testrunner.bat -h"%TestSystem%" -R"TestSuite Report" -f%ReportPath% -FPDF "%%k"
    )


    All TestSuites of each project are tested but i don't see a possibility to set the changing TestSuitename so that a Report can be created.

    Thanks a lot for your help.
    Jonas
  • Hello,

    Yes, if you run a project than a project report could be created, if you run test suite a test suite report will be created. So, instead of creating a suite report put there a project report. Anyway it will contain reports from all test suites in those project. Or you could modify given report templates according to your needs.

    Hope this helps,
    robert