Forum Discussion

ecsmmek's avatar
ecsmmek
Occasional Contributor
6 years ago
Solved

Is it possible to generete two types of reports in the same testrunner session?

Hi,

 

We want to generate two types of reports in the same session in testrunner when running Jenkins. Is that possible?

 

E.g -R"Project Report,JUnit-Style HTML Report"  -FXML

 

Best Regards

Mathias

  • Hi Mahias,

     

    Yes, it's possible to generate both types of reports at the same time. For this, you need to include these arguments:

    * -j to generate a JUnit-style HTML Report

    * "-RProject Report" -FPDF to generate a Project report

     

    Example: 

    "C:\Program Files\SmartBear\ReadyAPI-2.6.0\bin\testrunner.bat" -a -j -fC:\Temp\report -g "-RProject Report" -FPDF "-EDefault environment" C:\Projects\readyapi-project.xml

    Tip: you can easily generate the needed command line using TestRunner GUI:

5 Replies

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi ecsmmek,

     

    According to the Command-Line Arguments article, you can specify several formats by using a comma between them:

     

    -F<args>

    Specifies the format of the reports ReadyAPI exports.

    Usage: -F<FormatName>. ReadyAPI supports the following formats: PDF, XLS, HTML, RTF, CSV, TXT and XML. If you have not specified the parameter, ReadyAPI will use the PDF format.

     

    To export results in several formats, separate them with commas. For example: ‑FPDF,XML,CSV.

     

    The runner can ignore the -F argument depending on the value of the -R argument. See the -R argument description.



     

    • ecsmmek's avatar
      ecsmmek
      Occasional Contributor

      Hi again,

       

      I was more interested in if you can generate two types of reports in the same command line, as I wrote earlier. Is it possible to generate a Junit and a project report at the same time?

       

      E.g -R"Project Report,JUnit-Style HTML Report" 

       

      Best regards

      Mathias

      • NBorovykh's avatar
        NBorovykh
        Moderator

        Hi Mahias,

         

        Yes, it's possible to generate both types of reports at the same time. For this, you need to include these arguments:

        * -j to generate a JUnit-style HTML Report

        * "-RProject Report" -FPDF to generate a Project report

         

        Example: 

        "C:\Program Files\SmartBear\ReadyAPI-2.6.0\bin\testrunner.bat" -a -j -fC:\Temp\report -g "-RProject Report" -FPDF "-EDefault environment" C:\Projects\readyapi-project.xml

        Tip: you can easily generate the needed command line using TestRunner GUI: