Ask a Question

Problem generating project report via testrunner in Jenkins

SOLVED
ecsmmek
Occasional Contributor

Problem generating project report via testrunner in Jenkins

Hi,
 
I'm trying to generate a project report via testrunner in a shell script in Jenkins but somehow it doesn't seem to create the actual report in the target folder.
It is a "normal" soapUI project, i.e not a composite project that is run.
 
The odd part is that it does generate both "Data Export" and "JUnit-Style HTML Report" reports.
 
This is the row generating the different types of reports. The two first examples below are working
 
bin/testrunner.sh -R"JUnit-Style HTML Report" -f$SOAPUI_HOME/logs_$USER/$test \
 
bin/testrunner.sh -R"Data Export" -FMXL -f$SOAPUI_HOME/logs_$USER/$test \
 
 
However, the below example trying to generate a project report does not create any report
 
bin/testrunner.sh -R"Project Report" -FXML -f$SOAPUI_HOME/logs_$USER/$test \
 
The path to the report folder is the same. It's only the type of report that differs.
 
Tried a few different approaches with different arguments (flags) without any luck. 
Tried to shift the " characters, e.g. "-RProject Report" in order to mimic the "original" testrunner command line generated i ReadyAPI.
Tried to add .xml to the target folder, i.e. -f$SOAPUI_HOME/logs_$USER/$test.xml but that didn't work either
 
Any ideas?
 
I'm using ReadyAPI 2.6.0 locally and version 2.5.0 is installed on the Jenkins server.
 
Best regards
Mathias
Mahias Eklund
13 REPLIES 13

Sorry for the late reply, I've been trying to look into this a bit. I've verified the same behavior that, on my windows machine, I can generate a Project level report via testrunner in XML format. When tryign to do this via Jenkins and testrunner, there is no project/report generated. 




---

Click the Accept as Solution button if my answer has helped, and remember to give kudos where appropriate too!
ecsmmek
Occasional Contributor

Hi,
 
Found this in soapUI-errors.log on the Jenkins server:
 
net.sf.jasperreports.engine.util.JRFontNotFoundException: Font "Arial" is not available to the JVM. See the Javadoc for more details.
 

And then I saw the following information on Smartbear (https://support.smartbear.com/readyapi/docs/testing/reports/existing/about.html)

 
-----------------------------------------
Fonts in Linux
ReadyAPI reports use some of Microsoft core fonts. Not all Linux installations include these fonts. If you have issues with creating reports:
  1. Install the mscorefonts package applicable for your Linux distributive.
  2. Copy TTF files from /usr/share/fonts/truetype/msttcorefonts to the <ReadyAPI Installation>/jre/lib/fontsdirectory.
Make sure to specify the <ReadyAPI Installation>/bin/reports directory in the Custom Reports Library field of the ReadyAPI tab in the Preferences window.
 -----------------------------------------------
So I created a jira ticket asking our DevOps if they could add fonts according to the instructions above.
Awaiting their response and then I'll try again and see if this solves the problem
 
Best regards
Mathias
Mahias Eklund
ecsmmek
Occasional Contributor

Hi Community

 

The problem was indeed the unix server lacking the font "package".

After installing the fonts required the Project Reports ( both XML and PDF) were generated accordingly.

 

Best Regards

Mathias

Mahias Eklund

Excellent find, @ecsmmek! Thanks for circling back and giving the answer. 




---

Click the Accept as Solution button if my answer has helped, and remember to give kudos where appropriate too!
cancel
Showing results for 
Search instead for 
Did you mean: