How to Regenerate XSLT Report with out deleting the folder | Selenium Training|Java|WebDriver|TestNG|Frameworks|Videos
30% Mid August Discount Avail now

Selenium Training Forum

How to Regenerate XSLT Report with out deleting the folder

M
Post on 18/09/2015

Hi Ashish,

Every time I have to delete XSLT_Report Folder when ever I run "make xstlreports" using ant command...

If I don't delete I get the below error message, I could NOT able to override and generate the new XSLT Report... Please provide some sollution ...


====================================================

makexsltreports:
[xslt] Processing E:\automation\drcap\test-output\testng-results.xml to E:\
automation\drcap\XSLT_Reports\output\index.html
[xslt] Loading stylesheet E:\automation\drcap\src\com\emcsg\drcap\xslt\test
ng-results.xsl
[xslt] E:\automation\drcap\test-output\testng-results.xml:839:163: Fatal Er
ror! Error reported by XML parser Cause: org.xml.sax.SAXParseException; systemId
: file:/E:/automation/drcap/test-output/testng-results.xml; lineNumber: 839; col
umnNumber: 163; Invalid byte 1 of 1-byte UTF-8 sequence.
[xslt] Failed to process E:\automation\drcap\test-output\testng-results.xml


BUILD FAILED
E:\automation\drcap\build.xml:109: net.sf.saxon.trans.DynamicError: org.xml.sax.
SAXParseException; systemId: file:/E:/automation/drcap/test-output/testng-result
s.xml; lineNumber: 839; columnNumber: 163; Invalid byte 1 of 1-byte UTF-8 sequen
ce.
at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:278)
at net.sf.saxon.event.Sender.send(Sender.java:124)
at net.sf.saxon.event.Sender.send(Sender.java:46)
at net.sf.saxon.Controller.transform(Controller.java:1340)
at org.apache.tools.ant.taskdefs.optional.TraXLiaison.transform(TraXLiai
son.java:197)
at SaxonLiaison.transform(SaxonLiaison.java:18)
at org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:87
8)
at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:41
6)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.Main.runBuild(Main.java:853)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)
Caused by: org.xml.sax.SAXParseException; systemId: file:/E:/automation/drcap/te
st-output/testng-results.xml; lineNumber: 839; columnNumber: 163; Invalid byte 1
of 1-byte UTF-8 sequence.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un
known Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)

at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

====================================================================