From 45664ce221a0bfde1b3fc299a6a2a6662ccf6b4a Mon Sep 17 00:00:00 2001 From: CosminSontu Date: Tue, 28 Jun 2016 16:46:07 +0300 Subject: [PATCH 1/2] fixed error when duration value is string.Empty in .trx files where duration field is empty, TimeSpan parsing threw an exception. This fix assumes the TimeSpan is 0 in that case. --- TrxerConsole/Trxer.xslt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TrxerConsole/Trxer.xslt b/TrxerConsole/Trxer.xslt index 1ada859..dd65512 100644 --- a/TrxerConsole/Trxer.xslt +++ b/TrxerConsole/Trxer.xslt @@ -40,7 +40,7 @@ public string ToExactTimeDefinition(string duration) { - return ToExtactTime(TimeSpan.Parse(duration).TotalMilliseconds); + return string.IsNullOrWhiteSpace(duration) ? ToExtactTime(0) : ToExtactTime(TimeSpan.Parse(duration).TotalMilliseconds); } public string ToExactTimeDefinition(string start,string finish) From b89e9f95af831dd523dce12379c627a1d611d04a Mon Sep 17 00:00:00 2001 From: CosminSontu Date: Tue, 28 Jun 2016 16:48:39 +0300 Subject: [PATCH 2/2] Fixed caption Caption was not using proper english. --- TrxerConsole/Trxer.xslt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TrxerConsole/Trxer.xslt b/TrxerConsole/Trxer.xslt index dd65512..d6db067 100644 --- a/TrxerConsole/Trxer.xslt +++ b/TrxerConsole/Trxer.xslt @@ -351,7 +351,7 @@ - +
Five most slowest testsTop 5 slowest tests
Time