Forum Discussion

saikiran40cs's avatar
saikiran40cs
New Contributor
8 years ago

How to save reports in dynamic names for example in date format

Hi All,

 

I am trying to run the ReadyAPI tests from Jenkins using the batch command files.

Always it generates report in the Report template name. 

 

For example i am generating report in Project Report format, the command i am using to execute in jenkins,

 

cd C:\Program Files\SmartBear\ReadyAPI-1.9.0\bin
testrunner.bat -FPDF -f "C:\Reports\%ReportName%" -R"ProjectReport" C:\%ProjectName%.xml

 

where the Project name is parameterised using jenkins

I want the report name as "Test<dynamicvalue>_Report".pdf

 

is it possible?

  • Hi Saikiran40cs,

     

     

    From my understanding, it's impossible to do via the Ready! API command line. However, you can create a script that will rename the report file and execute this script after the test execution.

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Saikiran40cs,

     

     

    From my understanding, it's impossible to do via the Ready! API command line. However, you can create a script that will rename the report file and execute this script after the test execution.