Forum Discussion

Saibhargav29's avatar
Saibhargav29
New Contributor
4 years ago
Solved

ReadyApi 3.5.2 not generating report

Hi,

 

After upgrading Ready Api from 3.0.0 to 3.5.2 i.e- linux distribution PDF,HTML reports are not getting generated and fyi, we run test suite via  jenkins serverand for the same i have followed community discussion and looked at msttcore fonts dir and it looks perfect for me so please find the below error log

ERROR [SoapUIProTestCaseRunner] Unable to generate Data Driven Test Case Report. Please check ReadyAPI report generation options

And also below are the commandline parameters

/opt/SmartBear/ReadyAPI-3.5.2/bin/testrunner.sh -f /opt/readyapi/temp -s TestEngine -c 'Run Tests' -R 'Test Report' -FHTML,PDF -I -Elocalhost -PjenkinsRun=true -Pendpoint=apiurl -Pprotocol=https -PprojectRoot=/opt/test/readyapi -PcustomerLogo=reports/logos/Reyes.png -PJdaLogo=reports/logos/jda_rgb.png -PtestsFileName=test-data/TestCaseList.xlsx /opt/test/readyapi

  • Hey Saibhargav29 ,

     

    Not sure if you're still having issues with this, but I found something interesting that may be helpful.

    You mentioned this is happening after a recent upgrade, so I wonder if it's related to this:
    https://smartbear-cc.force.com/portal/KbArticleViewer?name=How-to-avoid-the-Failed-to-generate-a-report-error-when-generating-a-LoadUI-report&sp=all 


    Summary of the issue: "These exceptions may occur if ReadyAPI tries to use report files from a more recent version of ReadyAPI than you're currently running. For example, you're trying to generate a report in ReadyAPI 2.3.0, but the "Custom report library" property is set to C:\Program Files\SmartBear\ReadyAPI-2.5.0\bin\reports."

    Suggested fix:

    "1. Leave the "Custom report library" property empty (recommended). In this case, the reports directory of the currently running version of ReadyAPI will be used.
    or
    2. Specify the full path to the reports directory of the currently running version of ReadyAPI, i.e. <ReadyAPI_Install>\bin\reports, in Preferences -> Ready API -> Custom report library. "

    Please let us know if this was helpful, or if your issue has been resolved otherwise.

    ~Russel

2 Replies

  • RusselViola's avatar
    RusselViola
    SmartBear Alumni (Retired)

    Hey Saibhargav29 ,

     

    Not sure if you're still having issues with this, but I found something interesting that may be helpful.

    You mentioned this is happening after a recent upgrade, so I wonder if it's related to this:
    https://smartbear-cc.force.com/portal/KbArticleViewer?name=How-to-avoid-the-Failed-to-generate-a-report-error-when-generating-a-LoadUI-report&sp=all 


    Summary of the issue: "These exceptions may occur if ReadyAPI tries to use report files from a more recent version of ReadyAPI than you're currently running. For example, you're trying to generate a report in ReadyAPI 2.3.0, but the "Custom report library" property is set to C:\Program Files\SmartBear\ReadyAPI-2.5.0\bin\reports."

    Suggested fix:

    "1. Leave the "Custom report library" property empty (recommended). In this case, the reports directory of the currently running version of ReadyAPI will be used.
    or
    2. Specify the full path to the reports directory of the currently running version of ReadyAPI, i.e. <ReadyAPI_Install>\bin\reports, in Preferences -> Ready API -> Custom report library. "

    Please let us know if this was helpful, or if your issue has been resolved otherwise.

    ~Russel

    • Saibhargav29's avatar
      Saibhargav29
      New Contributor

      Hi @,

       

      As I am trying from Linux-centos how to set this preference as we are using custom report library "Data Driven Test Case Report .jrxml" which needs to be pulled by Ready Api 3.5.2 to generate the report at the end as it does in readyapi-3.0.0

       

      Below is the command line parameters

       

      /opt/SmartBear/ReadyAPI-3.5.2/bin/testrunner.sh -f /opt/automationTest/test/readyapi/temp -s TestEngine -c 'Run Tests' -R 'Data Driven Test Case Report' -FHTML,PDF -I -Elocalhost -PjenkinsRun=true -PprojectRoot=/opt/automationTest/test/readyapi -PtestsFileName=test-data/TestCaseList.xlsx

       

       

      Here Data Driven Test Case Report.jrxml andData Driven Test Case Report-config.xml are the custom report library we have in /opt/Smartbear/ReadyApi-3.5.2/bin/reports

       

      Log:

       

      OpenJDK 64-Bit Server VM warning: Option UseBiasedLocking was deprecated in version 15.0 and will likely be removed in a future release.
      14:27:21,296 INFO  [license] ReadyAPI 3.5.2 (build 6766) started - System properties: {OS=Linux, User name=jenkins}
      14:27:21,303 INFO  [DefaultSoapUICore] Creating new settings at [/var/lib/jenkins/soapui-settings.xml]
      14:27:21,497 INFO  [SoapUIExtensionClassLoader] "/opt/SmartBear/ReadyAPI-3.5.2/bin/ext/postgresql-9.3-1102.jdbc41.jar" has been added to the classpath.
      14:27:21,497 INFO  [SoapUIExtensionClassLoader] "/opt/SmartBear/ReadyAPI-3.5.2/bin/ext/sqljdbc42.jar" has been added to the classpath.
      14:27:21,647 INFO  [DefaultSoapUICore] 2 JDBC drivers have been registered from the directory bin/ext: [org.postgresql.Driver, com.microsoft.sqlserver.jdbc.SQLServerDriver].
      14:27:21,648 INFO  [DefaultSoapUICore] Adding listeners from [/opt/SmartBear/ReadyAPI-3.5.2/bin/listeners/demo-listeners.xml]
      14:27:22,264 ERROR [SoapUIProTestCaseRunner] Unable to generate TestCaseReport. Please check ReadyAPI report generation options.