Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sorianog opened this issue Mar 2, 2017 · 2 comments
Open

Comments

@sorianog
Copy link

sorianog commented Mar 2, 2017

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
Copy link

junalmeida commented Mar 13, 2017

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
Copy link

ksaicop commented Mar 24, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants