Ask a Question

How to generate report with testrunner.bat without over writing existing report files ?

TanyaYatskovska
Community Manager

Re: How to generate report with testrunner.bat without over writing existing report files ?

The following command line (with my project) exports the report to the PDF format. Please pay attention to the R argument – I’ve changed its value based on the fact that you are running test suite from your command line:

 

cd C:\Program Files\SmartBear\ReadyAPI-1.4.0\bin\
testrunner.bat "-FPDF" "-RTestSuite Report" "-fC:\RESULTAT\login_test" "-Eenv_staging" "-cTestSuite_Login" "C:\myfolder\myproject.xml"

 

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


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
_ivanovich_
Frequent Contributor

Re: How to generate report with testrunner.bat without over writing existing report files ?

Hi,

i updated my bat file like this:

the pdf file is not generated

 

cd C:\Program Files\SmartBear\ReadyAPI-1.6.0-m-SNAPSHOT\bin
testrunner.bat "-FPDF" "-RTestSuite Report" "-fC:\RESULTAT\login_demo" "-EDefault environment" "-cTestSuite_Login" "C:\myfolder\project.xml"

 

pebaha
Regular Visitor

Re: How to generate report with testrunner.bat without over writing existing report files ?

Hello,

I believe the error stems from trying to generate a TestSuite Report while a TestCase is specified (using -R"TestSuite Report" in combination with -c rather than -s for targeting a test suite).

 

Incase anyone else stumbles upon this thread, running the following command should successfully generate a test report for the given test case

 

testrunner.bat -FPDF -R"TestCase Report" -f"C:\RESULTAT\login_demo" -E"Default environment" -c"TestSuite_Login" "C:\myfolder\project.xml"

 

Similarly, a report for the entire project could be generated by

 

testrunner.bat -FPDF -R"Project Report" -f"C:\RESULTAT\login_demo" -E"Default environment" "C:\myfolder\project.xml"

 

cancel
Showing results for 
Search instead for 
Did you mean: