by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
abhianni
@abhianni
hi uttesh
when i am trying to run on my project its giving error XTSE0010: Attribute @text-align is not allowed on element on xslt file
please help me what is the cause of this error as report.xsl has this line on line no 32
please find error trace below
Error at xsl:value-of on line 32 of :
XTSE0010: Attribute @text-align is not allowed on element <xsl:value-of>
javax.xml.transform.TransformerConfigurationException: Failed to compile stylesheet. 1 error detected.
at net.sf.saxon.PreparedStylesheet.prepare(PreparedStylesheet.java:140)
at net.sf.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:135)
at net.sf.saxon.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:86)
at com.uttesh.pdfngreport.handler.PdfReportHandler.generatePdfReport(PdfReportHandler.java:150)
at com.uttesh.pdfngreport.PDFGenerator.generateReport(PDFGenerator.java:84)
at com.uttesh.pdfngreport.PDFReportListener.generateReport(PDFReportListener.java:86)
at org.testng.TestNG.generateReports(TestNG.java:1115)
at org.testng.TestNG.run(TestNG.java:1074)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
abhianni
@abhianni
hi uttesh how can I edit report name ?? I mean I want to remove seconds from system date which is used to name the pdf file but I dont want that I need it till min?
taddeuz
@taddeuz
Hey. Yes I also want to know how can I rename the report name. My goal is to overrite the pdf report with the new one.
uttesh
@uttesh
@taddeuz you should change in the pdfngreport.properties file, http://uttesh.com/pdfngreport/ i.e "pdfreport.title.text" property value change to any name u want
@abhianni all configurable properties are there in pdfngreport.properties file http://uttesh.com/pdfngreport/
taddeuz
@taddeuz
hey. Thanks for the info. But "pdfreport.title.text" changes only the title in the pdf, not the filename. So, I want to change the filename, is that possible?
uttesh
@uttesh
@taddeuz file name is not configurable at current version, we can just modify the file name manually!!! will kept that in change for the next release. thanks
taddeuz
@taddeuz
@uttesh Ok, thank you. Would be great if its changeable.
Rohit negi
@rohinegi548
Hi Uttesh, I am getting this error while generating report using Maven com.uttesh.pdfngreport.exceptionHandler.ReportException: Failed generating PDF report. Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
can you please look into it. I am not able to figure it out.
uttesh
@uttesh
@rohinegi548 could you please provide me more information, is the sample code is working fine?
Rohit negi
@rohinegi548
the sample code you provided is working fine, but if I integrate it with my project it throwing the same error. looks like error in line:88, in pdfgenerator.java file, where String location is passing and it is calling create file. looks its not taking path.
uttesh
@uttesh
looks like windows/linux system path slash issue i guess, are you using windows or linux? for windows tried to user forwar slash "/" or double backward slash "\"
@rohinegi548 looks like windows/linux system path slash issue i guess, are you using windows or linux? for windows tried to user forwar slash "/" or double backward slash "\"
padmasri
@padmasri
@uttesh , Thanks for such a wonderful work. :) Is there any way that I can add few more columns (Description of the test..etc) to the table in the report?
kambojah
@kambojah
Hi Uttesh,

Great work, but I meet a one problem. PDF Report can't be generated because I am getting this error: SEVERE: null
java.lang.IllegalArgumentException: input == null!
at javax.imageio.ImageIO.read(ImageIO.java:1348)
at com.uttesh.pdfngreport.common.ImageUtils.imageToBase64String(ImageUtils.java:32)
at com.uttesh.pdfngreport.util.PdfngUtil.populateReportDataProperties(PdfngUtil.java:127)
at com.uttesh.pdfngreport.PDFGenerator.generateReport(PDFGenerator.java:59)
at com.uttesh.pdfngreport.PDFReportListener.generateReport(PDFReportListener.java:93)
at org.testng.TestNG.generateReports(TestNG.java:1135)
at org.testng.TestNG.run(TestNG.java:1081)
at com.uttesh.ConsoleRunner.run(ConsoleRunner.java:77)
at com.uttesh.ConsoleRunner.main(ConsoleRunner.java:53)

I suggest that there is a problem with images, but i can't find where is the problem.

uttesh
@uttesh
@kambojah check your system path of report and is sample is working?
kambojah
@kambojah
@uttesh Unfortunately sample gives me the same error. I'm new in automation and sorry for my stupid question, but what are the steps that must be followed if I want to use this perfect pdf report in already existing maven project ? Asking because I just edit my pom.xml file by adding dependencies and also add listener to my testng.xml
uttesh
@uttesh
@kambojah steps are there in http://uttesh.com/pdfngreport/, i guess your missing the pdfngreport.properties
deydebasish
@deydebasish
Hi Uttesh
could u plz help me to resolve the issue? I am getting the below error:
Aug 24, 2016 1:10:42 PM com.uttesh.pdfngreport.PDFReportListener generateReport
SEVERE: null
com.uttesh.pdfngreport.exceptionHandler.ReportException: Failed generating PDF report.
at com.uttesh.pdfngreport.PDFGenerator.generateReport(PDFGenerator.java:88)
at com.uttesh.pdfngreport.PDFReportListener.generateReport(PDFReportListener.java:91)
at org.testng.TestNG.generateReports(TestNG.java:1076)
at org.testng.TestNG.run(TestNG.java:1035)
at ApiTest.ExecuteAPI.main(ExecuteAPI.java:202)
Caused by: java.lang.NullPointerException
at com.uttesh.pdfngreport.util.pdf.GenerateTable.populateColumnHeader(GenerateTable.java:247)
at com.uttesh.pdfngreport.util.pdf.GenerateTable.generate(GenerateTable.java:63)
at com.uttesh.pdfngreport.util.pdf.SuccessTable.populateData(SuccessTable.java:40)
at com.uttesh.pdfngreport.util.pdf.SuccessTable.populateSingleTableData(SuccessTable.java:58)
at com.uttesh.pdfngreport.PDFGenerator.getTable(PDFGenerator.java:149)
at com.uttesh.pdfngreport.PDFGenerator.populatePassedListTable(PDFGenerator.java:97)
at com.uttesh.pdfngreport.PDFGenerator.generateReport(PDFGenerator.java:71)
... 4 more
uttesh
@uttesh
@deydebasish hi could you please provide more information which will help me to debug the issue and thanks for using the library, what was the implementation and where it started throwing this exception, is that sample code is working fine?
kambojah
@kambojah
@uttesh hi, can you help me with adding description ? I'm using this format : @Test(description="simple text") public void aaa() throws Exception { but it doesn't work.
abuzzz
@abuzzz
@uttesh hi,can you please help me with below error while generating report
java.lang.NoSuchMethodError: org.apache.fop.apps.FopFactory.newInstance(Ljava/net/URI;)Lorg/apache/fop/apps/FopFactory;
at com.uttesh.pdfngreport.handler.PdfReportHandler.generatePdfReport(PdfReportHandler.java:142)
at com.uttesh.pdfngreport.PDFGenerator.generateReport(PDFGenerator.java:84)
at com.uttesh.pdfngreport.PDFReportListener.generateReport(PDFReportListener.java:91)
at org.testng.TestNG.generateReports(TestNG.java:1135)
at org.testng.TestNG.run(TestNG.java:1081)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:236)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:81)
Forrest Hopkins
@forresthopkinsa
So I guess my PR probably won't get in for a while, for some unknown reason
Chetan Sutar
@cheatnsutar008
Any soultion to XTSE0010: Attribute @text-align is not allowed on element on xslt file error?
@abhianni Did u able to solve this ?
uttesh
@uttesh
@abhianni hi
when ur getting the error
please provide the steps to reproduce the issue, which will help me rectify the issue
@forresthopkinsa i will look into that, for any small changes i need to test the whole library and i was busy in other plugin/library development as well. thanks for the reminder.
uttesh
@uttesh
@cheatnsutar008 hi
could please provide the steps to reproduce the issue
Forrest Hopkins
@forresthopkinsa
@uttesh My PR is the only open one, and it's been open for 6 and a half months lolll
Ludwin&Alejandra(^^)
@garcialudwin_twitter

HI @uttesh i have the same error, when i run my project in eclipse all works fine, but whe i installed Jenkins to automatize my test i have problems, i think that is for my pie chart but i am not sure that why i cant generate my report.

Error at xsl:value-of on line 32 of :
XTSE0010: Attribute @text-align is not allowed on element <xsl:value-of>
javax.xml.transform.TransformerConfigurationException: Failed to compile stylesheet. 1 error detected.
at net.sf.saxon.PreparedStylesheet.prepare(PreparedStylesheet.java:140)
at net.sf.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:135)
at net.sf.saxon.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:86)
at com.uttesh.pdfngreport.handler.PdfReportHandler.generatePdfReport(PdfReportHandler.java:149)
at com.uttesh.pdfngreport.PDFGenerator.generateReport(PDFGenerator.java:84)
at com.uttesh.pdfngreport.PDFReportListener.generateReport(PDFReportListener.java:91)
at org.testng.TestNG.generateReports(TestNG.java:1089)
at org.testng.TestNG.run(TestNG.java:1048)
at org.testng.TestNG.privateMain(TestNG.java:1338)
at org.testng.TestNG.main(TestNG.java:1307)
Add Comment

Neter
@Neter526_twitter
@uttesh Hello, I did not face any error but reports are created
I create xml file and change name of class in xml file and properties file