0

我正在使用链接https://github.com/NivNavick/trxer中的以下实用程序。

当我尝试执行相同的操作以生成报告时出现以下错误。

TrxerConsole.exe unitestresult.trx.trx
Trx 文件
unitestresult.trx.trx
正在加载 xslt 模板...
正在加载 css...
正在加载 javascript...正在
转换...
未处理的异常:System.FormatException:字符串未被识别为有效的 TimeSpan .
在 System.Globalization.TimeSpanParse.TryParseTimeSpan(字符串输入,TimeSpan StandardStyles 样式,IFormatProvider 格式提供程序,TimeSpanResult& 结果)
在 System.Globalization.TimeSpanParse.Parse(字符串输入,IFormatProvider for matProvider)
在 System.TimeSpan.Parse(String s)
在 System .Xml.Xsl.CompiledQuery.Script1.ToExactTimeDefinition(字符串持续时间)
在 System.Xml.Xsl.CompiledQuery.Query.(XmlQuery Runtime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schem as-microsoft-com:xslt-debug}current, Double {urn: schemas-microsoft-com:xslt-debug}位置,双 {urn:schemas-microsoft-com:xslt-debug}last,IList1 {urn:sche mas-microsoft-com:xslt-debug}命名空间,IList1 testId,IList `1 testDescription )
在 System.Xml.Xsl.CompiledQuery.Query。

如果有人遇到过类似的问题,请告诉我如何解决这个问题。

谢谢穆拉利
_

4

1 回答 1

0

我已经解决了这个问题。Trxer 工具提供的 XSLT 中的 API 之一返回的字符串格式存在一些问题。我已经在 trxer git hub 中更新了相同的内容。请参阅以下链接以获取修复。

https://github.com/NivNavick/trxer/pull/17/files

于 2016-02-12T13:26:45.800 回答