You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Not sure if this tool supports transforming TRX file, generated from VSTestConsole, but this is not working for me.
Environment: VS 2015, output generated from running regular C# unit tests.
Test Console: VSTest.Console.
Exception while transforming:
Length can not be less than zero.
Stack strace as below:
Unhandled Exception: System.ArgumentOutOfRangeException: Length cannot be less t
han zero.
Parameter name: length
at System.String.Substring(Int32 startIndex, Int32 length)
at System.Xml.Xsl.CompiledQuery.Script1.RemoveAssemblyName(String asm) in c:
Users\praveen.polepalli\AppData\Local\Temp\2wyfjtpf.0.cs:line 29
at System.Xml.Xsl.CompiledQuery.Query.<xsl:template name="compiler:generated"
(6)(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNaviga
tor {urn:schemas-microsoft-com:xslt-debug}current, Double {urn:schemas-microsoft
-com:xslt-debug}position, Double {urn:schemas-microsoft-com:xslt-debug}last, ILi
st1 {urn:schemas-microsoft-com:xslt-debug}namespaces, IList1 testRunOutcome, I
List1 testsFailedSet, IList1 testsFailedCount, IList1 classSet, IList1 class
Count)
at System.Xml.Xsl.CompiledQuery.Query.<xsl:template name="compiler:generated"
(4)(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNaviga
tor {urn:schemas-microsoft-com:xslt-debug}current, Double {urn:schemas-microsoft
-com:xslt-debug}position, Double {urn:schemas-microsoft-com:xslt-debug}last, ILi
st1 {urn:schemas-microsoft-com:xslt-debug}namespaces, IList1 classCount, IList 1 classSet, IList1 testsFailedCount, IList1 testsFailedSet, IList1 testRunOu
tcome)
The text was updated successfully, but these errors were encountered:
In the Trxer.xslt, change the method RemoveAssemblyName (on line 13) to:
public string RemoveAssemblyName(string asm)
{
if(asm.IndexOf(',')>0) {
return asm.Substring(0,asm.IndexOf(','));
} else {return asm;}
}
Hi,
Not sure if this tool supports transforming TRX file, generated from VSTestConsole, but this is not working for me.
Environment: VS 2015, output generated from running regular C# unit tests.
Test Console: VSTest.Console.
Exception while transforming:
Length can not be less than zero.
Stack strace as below:
Unhandled Exception: System.ArgumentOutOfRangeException: Length cannot be less t
han zero.
Parameter name: length
at System.String.Substring(Int32 startIndex, Int32 length)
at System.Xml.Xsl.CompiledQuery.Script1.RemoveAssemblyName(String asm) in c:
Users\praveen.polepalli\AppData\Local\Temp\2wyfjtpf.0.cs:line 29
at System.Xml.Xsl.CompiledQuery.Query.<xsl:template name="compiler:generated"
The text was updated successfully, but these errors were encountered: