NivNavick / trxer

Transforms trx file into html
105 stars 92 forks source link

System.FormatException: String was not recognized as a valid DateTime #29

Open sorianog opened 7 years ago

sorianog commented 7 years ago

I ran the program against a .trx file that was generated from the CodedUITest framework with VS 2015 Enterprise. This test results file was generated from 125 total tests but the test run was aborted after 2 tests were executed in the test suite.

Did anyone face the same issue? If so, how did you remedy it?

Thanks, Gerald

gist of stack trace: https://gist.github.com/sorianog/a18e727f38145ed0de2b5d115c41126e

junalmeida commented 7 years ago

Got another exception about substring

System.ArgumentOutOfRangeException: Comprimento n�o pode ser menor que zero.
Nome do par�metro: length
   em System.String.Substring(Int32 startIndex, Int32 length)
   em System.Xml.Xsl.CompiledQuery.Script1.RemoveAssemblyName(String asm) na c:\Users\gitlab\AppData\Local\Temp\oh1uq11i.0.cs:linha 29
   em System.Xml.Xsl.CompiledQuery.Query.<xsl:template name="compiler:generated"> (6)(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current, Double {urn:schemas-microsoft-com:xslt-debug}position, Double {urn:schemas-microsoft-com:xslt-debug}last, IList`1 {urn:schemas-microsoft-com:xslt-debug}namespaces, IList`1 testRunOutcome, IList`1 testsFailedSet, IList`1 testsFailedCount, IList`1 classSet, IList`1 classCount)
   em System.Xml.Xsl.CompiledQuery.Query.<xsl:template name="compiler:generated"> (4)(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current, Double {urn:schemas-microsoft-com:xslt-debug}position, Double {urn:schemas-microsoft-com:xslt-debug}last, IList`1 {urn:schemas-microsoft-com:xslt-debug}namespaces, IList`1 classCount, IList`1 classSet, IList`1 testsFailedCount, IList`1 testsFailedSet, IList`1 testRunOutcome)
   em System.Xml.Xsl.CompiledQuery.Query.<xsl:template name="compiler:generated"> (3)(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current, Double {urn:schemas-microsoft-com:xslt-debug}position, Double {urn:schemas-microsoft-com:xslt-debug}last, IList`1 {urn:schemas-microsoft-com:xslt-debug}namespaces, IList`1 testRunOutcome)
   em System.Xml.Xsl.CompiledQuery.Query.<xsl:template name="compiler:generated"> (2)(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current, Double {urn:schemas-microsoft-com:xslt-debug}position, Double {urn:schemas-microsoft-com:xslt-debug}last, IList`1 {urn:schemas-microsoft-com:xslt-debug}namespaces, IList`1 testRunOutcome)
   em System.Xml.Xsl.CompiledQuery.Query.<xsl:template match="/">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current, Double {urn:schemas-microsoft-com:xslt-debug}position, Double {urn:schemas-microsoft-com:xslt-debug}last, IList`1 {urn:schemas-microsoft-com:xslt-debug}namespaces)
   em System.Xml.Xsl.CompiledQuery.Query.<xsl:apply-templates>(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator , Double , Double )
   em System.Xml.Xsl.CompiledQuery.Query.Root(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
   em System.Xml.Xsl.CompiledQuery.Query.Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
   em System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results)
   em System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer)
   em System.Xml.Xsl.XslCompiledTransform.Transform(String inputUri, String resultsFile)
   em TrxerConsole.Program.Transform(String fileName, XmlDocument xsl)
   em TrxerConsole.Program.Main(String[] args)
ksaicop commented 7 years ago

I had the same problem. Changes from #24 helped in my case