Ask a Question

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

SOLVED
ecsmmek
Occasional Contributor

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

Mahias Eklund
5 REPLIES 5
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.



 

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



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

Mahias Eklund

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:

2019-01-29_10-11-12.png

Natalie
Customer Care Team

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
TanyaYatskovska
SmartBear Alumni (Retired)

Thanks for your reply, Natalie!

 

@ecsmmek, is this what you are looking for?

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



ecsmmek
Occasional Contributor

Hi,

 

Yes, that is the answer I've been looking for.

Thank you.

 

Bets regards

Mathias

Mahias Eklund
cancel
Showing results for 
Search instead for 
Did you mean: