Skip to content

Commit

Permalink
Merge pull request #3 from NivNavick/Dev
Browse files Browse the repository at this point in the history
Supports IE
  • Loading branch information
NivNavick committed Apr 17, 2015
2 parents 47a3452 + 9f43115 commit f6292bc
Show file tree
Hide file tree
Showing 2 changed files with 120 additions and 63 deletions.
62 changes: 54 additions & 8 deletions TrxerConsole/Trxer.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ address {
padding: 0;
}

.wrapOverall {
width: auto;
margin: -8px 0px 0px 0px;
height: auto;
margin-left: auto;
margin-right: auto;
}

#floatingImageBackground {
position: fixed;
display: none;
Expand All @@ -36,6 +44,52 @@ address {
border-style: solid;
}

.hWhite {
color: white;
}

.titleCenterd {
position: relative;
top: 12px;
}

.StatusBar {
width: 100%;
height: 60px;
}

.statusBarPassed {
background-color: #5bab5b;
}

.statusBarFailed {
background-color: #b93333;
}

.statusBarFailedInner {
position: relative;
background-color: #a90000;
width: 100%;
height: 70%;
margin-left: auto;
margin-right: auto;
margin-top: auto;
margin-bottom: auto;
top: 15%;
}

.statusBarPassedInner {
position: relative;
background-color: #339833;
width: 100%;
height: 70%;
margin-left: auto;
margin-right: auto;
margin-top: auto;
margin-bottom: auto;
top: 15%;
}

#floatingImage {
position: relative;
margin-left: 8%;
Expand Down Expand Up @@ -73,14 +127,6 @@ address {
font-size: 20px;
}

.wrapOverall {
width: auto;
margin: -8px 0px 0px 0px;
height: auto;
margin-left: auto;
margin-right: auto;
}

h1 {
font-size: 25px;
}
Expand Down
121 changes: 66 additions & 55 deletions TrxerConsole/Trxer.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
</msxsl:script>

<xsl:template match="/" >
<xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text>
<html>
<head>
<meta charset="utf-8"/>
Expand All @@ -88,11 +89,19 @@
<img src="" id="floatingImage"/>
</div>
<br />
<center>
<h1>
<xsl:value-of select="/t:TestRun/@name"/>
</h1>
</center>
<xsl:variable name="testRunOutcome" select="t:TestRun/t:ResultSummary/@outcome"/>

<div class="StatusBar statusBar{$testRunOutcome}">
<div class="statusBar{$testRunOutcome}Inner">
<center>
<h1 class="hWhite">
<div class="titleCenterd">
<xsl:value-of select="/t:TestRun/@name"/>
</div>
</h1>
</center>
</div>
</div>
<div class="SummaryDiv">
<table id="TotalTestsTable">
<caption>Results Summary</caption>
Expand Down Expand Up @@ -218,55 +227,57 @@
</tbody>
</table>
</div>
<table id="ReportsTable">
<caption>All Failed Tests</caption>
<xsl:variable name="testsFailedSet" select="//t:TestRun/t:Results/t:UnitTestResult[@outcome='Failed']" />
<xsl:variable name="testsFailedCount" select="count(testsFailedSet)" />
<xsl:if test="$testsFailedSet">
<table id="ReportsTable">
<caption>All Failed Tests</caption>

<tbody>
<xsl:variable name="testsSet" select="//t:TestRun/t:Results/t:UnitTestResult[@outcome='Failed']" />
<xsl:variable name="testsCount" select="count($testsSet)" />
<tr>
<td class="column1Failed"></td>
<td class="Function">
Faileds
</td>
<td class="Message" name="{generate-id(faileds)}Id">
<xsl:value-of select="concat($testsCount,' Tests')" />
</td>
<td class="ex">
<div class="OpenMoreButton" onclick="ShowHide('{generate-id(faileds)}TestsContainer','{generate-id(faileds)}Button','Show Tests','Hide Tests');">
<div class="MoreButtonText" id="{generate-id(faileds)}Button">Hide Tests</div>
</div>
</td>
</tr>
<tr id="{generate-id(faileds)}TestsContainer" class="visibleRow">
<td colspan="4">
<div id="exceptionArrow">↳</div>
<table>
<thead>
<tr class="odd">
<th scope="col" class="TestsTable">Time</th>
<th scope="col" class="TestsTable" abbr="Status">Status</th>
<th scope="col" class="TestsTable" abbr="Test">Test</th>
<th scope="col" class="TestsTable" abbr="Message">Message</th>
<th scope="col" class="TestsTable" abbr="Message">Owner</th>
<th scope="col" class="TestsTable" abbr="Exception">Duration</th>
</tr>
</thead>
<tbody>
<!--Start of package content-->
<xsl:for-each select="$testsSet">
<xsl:call-template name="tDetails">
<xsl:with-param name="testId" select="@testId" />
<xsl:with-param name="testDescription" select="./../t:Description" />
</xsl:call-template>
</xsl:for-each>
</tbody>
<!--End of package content-->
</table>
</td>
</tr>
</tbody>
</table>
<tbody>
<tr>
<td class="column1Failed"></td>
<td class="Function">
Faileds
</td>
<td class="Message" name="{generate-id(faileds)}Id">
<xsl:value-of select="concat(testsFailedCount,' Tests')" />
</td>
<td class="ex">
<div class="OpenMoreButton" onclick="ShowHide('{generate-id(faileds)}TestsContainer','{generate-id(faileds)}Button','Show Tests','Hide Tests');">
<div class="MoreButtonText" id="{generate-id(faileds)}Button">Hide Tests</div>
</div>
</td>
</tr>
<tr id="{generate-id(faileds)}TestsContainer" class="visibleRow">
<td colspan="4">
<div id="exceptionArrow">↳</div>
<table>
<thead>
<tr class="odd">
<th scope="col" class="TestsTable">Time</th>
<th scope="col" class="TestsTable" abbr="Status">Status</th>
<th scope="col" class="TestsTable" abbr="Test">Test</th>
<th scope="col" class="TestsTable" abbr="Message">Message</th>
<th scope="col" class="TestsTable" abbr="Message">Owner</th>
<th scope="col" class="TestsTable" abbr="Exception">Duration</th>
</tr>
</thead>
<tbody>
<!--Start of package content-->
<xsl:for-each select="$testsFailedSet">
<xsl:call-template name="tDetails">
<xsl:with-param name="testId" select="@testId" />
<xsl:with-param name="testDescription" select="./../t:Description" />
</xsl:call-template>
</xsl:for-each>
</tbody>
<!--End of package content-->
</table>
</td>
</tr>
</tbody>
</table>
</xsl:if>
<xsl:variable name="classSet" select="//t:TestMethod[generate-id(.)=generate-id(key('TestMethods', @className))]" />
<xsl:variable name="classCount" select="count($classSet)" />
<table id="ReportsTable">
Expand Down Expand Up @@ -505,10 +516,10 @@
<div class="atachmentImage" onclick="show('floatingImageBackground');updateFloatingImage('{$StdOut}');"></div>
</xsl:when>
<xsl:when test="$StdErr">
<div class="atachmentImage" onclick="show('floatingImageBackground');updateFloatingImage('{$StdErr}');"></div>
<div class="atachmentImage" onclick="show('floatingImageBackground');updateFloatingImage('{$StdErr}');"></div>
</xsl:when>
<xsl:when test="$MessageErrorInfo">
<div class="atachmentImage" onclick="show('floatingImageBackground');updateFloatingImage('{$MessageErrorInfo}');"></div>
<div class="atachmentImage" onclick="show('floatingImageBackground');updateFloatingImage('{$MessageErrorInfo}');"></div>
</xsl:when>
</xsl:choose>

Expand Down

0 comments on commit f6292bc

Please sign in to comment.