Forum Discussion
13 Replies
- redfish4ktc2Super Contributorhi, what is your plateform (windows, linux, mac)?
some sh scripts provided in soapui contains misconfiguration that may prevent the report generation to work - RWibringOccasional ContributorI am running this in Linux (CentOS release 6.4). Is there any patch available ? or just tell me the way to fix these paths.
- Hi,
I would suggest you to open the loadtestrunner.bat in \SoapUI-Pro-4.6.4\bin in notepad and replace,
set JAVA_OPTS=-Xms128m -Xmx1024m -Dsoapui.properties=soapui.properties -Dgroovy.source.encoding=iso-8859-1 "-Dsoapui.home=%SOAPUI_HOME%\"
with
set JAVA_OPTS=-Xms128m -Xmx1024m -Dsoapui.properties=soapui.properties -Dgroovy.source.encoding=iso-8859-1 "-Dsoapui.home=%SOAPUI_HOME%\bin"
Close and open SoapUI Pro and make sure the LoadTest Report is the name of the report. Also can you provide us the command you are using to generate the report.
Thanks,
Jeshtha - RWibringOccasional ContributorWell your example is strictly for Windows OS and as I said I am using Linux but never mind I followed your instructions and edit the file.
Command./loadtestrunner.sh -sXMLRPC_testcases -cpost_cooking -l3thread_postcooking -r -f/root/Report -R"LoadTest Report" -F PDF -EDefault /root/cooking_player.xml
But now I am getting font error seems I need to install Arial font for report generation.17:16:49,611 INFO [SoapUIProLoadTestRunner] Exported 4 statistics to [/root/Report/3thread_postcooking-statistics.txt]
net.sf.jasperreports.engine.util.JRFontNotFoundException: Font 'Arial' is not available to the JVM. See the Javadoc for more details.
at net.sf.jasperreports.engine.util.JRFontUtil.checkAwtFont(JRFontUtil.java:358)
at net.sf.jasperreports.engine.util.JRStyledText.getAwtAttributedString(JRStyledText.java:225)
at net.sf.jasperreports.engine.fill.TextMeasurer.measure(TextMeasurer.java:326)
at net.sf.jasperreports.engine.fill.JRFillTextElement.chopTextElement(JRFillTextElement.java:1151)
at net.sf.jasperreports.engine.fill.JRFillStaticText.prepare(JRFillStaticText.java:183)
at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:329)
at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:419)
at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:378)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillBandNoOverflow(JRVerticalFiller.java:440)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnHeader(JRVerticalFiller.java:484)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:266)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:128)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:946)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:864)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:84)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:624)
at com.eviware.soapui.reporting.engine.jasper.GenerateJasperReport.generateJasperReport(SourceFile:329)
at com.eviware.soapui.reporting.engine.jasper.JasperReportEngine$GeneratableJasperReport.generate(SourceFile:123)
at com.eviware.soapui.SoapUIProLoadTestRunner.runWsdlLoadTest(SourceFile:119)
at com.eviware.soapui.tools.SoapUILoadTestRunner.runTestCase(SoapUILoadTestRunner.java:360)
at com.eviware.soapui.tools.SoapUILoadTestRunner.runSuite(SoapUILoadTestRunner.java:332)
at com.eviware.soapui.tools.SoapUILoadTestRunner.runRunner(SoapUILoadTestRunner.java:266)
at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:158)
at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:89)
at com.eviware.soapui.SoapUIProLoadTestRunner.main(SourceFile:46)
17:16:52,535 INFO [SoapUIProLoadTestRunner] SoapUI suite [XMLRPC_testcases] finished in 64057ms - Hi,
I am sorry I should have mentioned the linux version but I found this link to fix this issue with JasperReports on Jasper community,
http://community.jaspersoft.com/questions/531843/font-arial-not-available-jvm-see
"I have resolved this like this:
first get the microsoft core fonts. In Ubuntu 12.04 this package is called: ttf-mscorefonts-installer
After install you can see the fonts in: /usr/share/fonts/truetype/msttcorefonts
copy all the ttf files to your JAVA_HOME/jre/lib/fonts
I had to do a restart of iReport to be resolved of the error"
Can you specify which JRE version are you using?
Thanks,
Jeshtha - RWibringOccasional ContributorThanks for the response guys. Another issue that I am not able to see the charts in pdf and HTML reports and all the text is unaligned.
- Hi,
Please go to the 'lib' folder under your SoapUI Pro 4.6.4 installation and remove the jasperreports-4.0.2.jar file (you can change its extension or back it up to a different folder). Then, please replace it with the jasperreports-4.0.1.jar file that you can find here: http://repo1.maven.org/maven2/net/sf/jasperreports/jasperreports/4.0.1/jasperreports-4.0.1.jar
That should fix the issue with the misalignments.
Regards,
Giscard - RWibringOccasional Contributor
- Hi,
I am sorry you are still having issues. Your feedback is valuable to us.
I am not able to reproduce these blank graphs other then when I generate a report without running the LoadTest (through the GUI). But if you are using the LoadTestRunner, you should have your test data available. Can you attach your entire LoadTest Report? At least, you should have some data on you charts. Can you also check your error log files after you run the Load Test (in the 'bin' folder of your SoapUI Pro installation: error.log, soapui.log)?
Thanks,
Giscard
SmartBear Support - RWibringOccasional ContributorHi,
I upgraded my java version to 1.7.0_51-b13. The pdf report file is attached with soapui.log. there are no errors in errors.log for this test run.