2 Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
8 http://www.apache.org/licenses/LICENSE-2.0
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
17 <div id="page-content" class="content" style="padding: 25px;">
19 .graph, .empty-graph {
20 border: 1px solid #ccc;
31 .pass-bar, .fail-bar {
37 <h1 class="heading-page">Get results by submission</h1>
39 <h2 class="heading-small">Select Submission:</h2>
42 <select ng-model="selectedSubmission"
43 ng-init="selectedSubmission=submissionsForDisplay[0]"
44 ng-change="selectedSubmissionChange(selectedSubmission)"
45 ng-options="n for n in submissionsForDisplay">
49 <h2 class="heading-small">Select a blueprint layer of the selected
52 <select ng-model="selectedLayer" ng-init="resultsLayers[0]"
53 ng-change="selectedResultsLayerChange(selectedLayer)"
54 ng-options="n for n in resultsLayers">
58 <h2 class="heading-small">Select a test suite of the selected
59 (submission, layer) pair in order to be displayed:</h2>
61 <select ng-model="selectedTestSuiteName"
62 ng-init="resultsLayerTestSuitesNames[0]"
63 ng-change="selectedTestSuitesNameChange(selectedTestSuiteName)"
64 ng-options="n for n in resultsLayerTestSuitesNames">
78 <p>Name: {{selectedRobotTestResult.name}}</p>
79 <p>Generated: {{selectedRobotTestResult.robot.generated}}</p>
80 <p>Generator: {{selectedRobotTestResult.robot.generator}}</p>
81 <p>Errors: {{selectedRobotTestResult.robot.errors}}</p>
83 <h2 class="heading-small"></h2>
84 <h3 class="heading-small">
85 <u>Test Statistics</u>
88 <table class="striped" cellspacing="0" cellpadding="10">
93 <th><p> Total statistics </p></th>
94 <th><p>Total </p></th>
95 <th><p>Pass </p></th>
96 <th><p>Fail </p></th>
97 <th><p>Pass / Fail </p></th>
102 ng-repeat="stat in selectedRobotTestResult.robot.statistics.total.stat">
103 <td style="padding-left: 10px; font-size: 15px; width: 13%;">{{
105 <td style="padding-left: 10px; font-size: 15px; width: 13%;">{{
106 (stat.fail * 1) + (stat.pass*1) }}</td>
107 <td style="padding-left: 10px; font-size: 15px; width: 13%;">{{
109 <td style="padding-left: 10px; font-size: 15px; width: 13%;">{{
111 <td style="padding-left: 10px; font-size: 15px; width: 13%;">
113 <div class="pass-bar"
114 ng-style="{ 'width': {{(100* stat.pass/((stat.fail * 1) + (stat.pass*1)) )| number:0}} + '%' }"
116 <div class="fail-bar"
117 ng-style="{ 'width': {{(100* stat.fail/((stat.fail * 1) + (stat.pass*1)) )| number:0}} + '%' }"
127 <h3 class="heading-small"></h3>
128 <table class="striped" cellspacing="0" cellpadding="10">
133 <th><p> Statistics by Tag </p></th>
134 <th><p>Total </p></th>
135 <th><p>Pass </p></th>
136 <th><p>Fail </p></th>
137 <th><p>Pass / Fail </p></th>
142 ng-repeat="stat in selectedRobotTestResult.robot.statistics.tag.stat">
143 <td style="padding-left: 10px; font-size: 15px; width: 13%;">{{
145 <td style="padding-left: 10px; font-size: 15px; width: 13%;">{{
146 (stat.fail * 1) + (stat.pass*1) }}</td>
147 <td style="padding-left: 10px; font-size: 15px; width: 13%;">{{
149 <td style="padding-left: 10px; font-size: 15px; width: 13%;">{{
151 <td style="padding-left: 10px; font-size: 15px; width: 13%;">
153 <div class="pass-bar"
154 ng-style="{ 'width': {{(100* stat.pass/((stat.fail * 1) + (stat.pass*1)) )| number:0}} + '%' }"
156 <div class="fail-bar"
157 ng-style="{ 'width': {{(100* stat.fail/((stat.fail * 1) + (stat.pass*1)) )| number:0}} + '%' }"
167 <h3 class="heading-small"></h3>
168 <table class="striped" cellspacing="0" cellpadding="10">
173 <th><p> Statistics by Suite </p></th>
174 <th><p>Total </p></th>
175 <th><p>Pass </p></th>
176 <th><p>Fail </p></th>
177 <th><p>Pass / Fail </p></th>
182 ng-repeat="stat in selectedRobotTestResult.robot.statistics.suite.stat">
183 <td style="padding-left: 10px; font-size: 15px; width: 13%;">{{
185 <td style="padding-left: 10px; font-size: 15px; width: 13%;">{{
186 (stat.fail * 1) + (stat.pass*1) }}</td>
187 <td style="padding-left: 10px; font-size: 15px; width: 13%;">{{
189 <td style="padding-left: 10px; font-size: 15px; width: 13%;">{{
191 <td style="padding-left: 10px; font-size: 15px; width: 13%;">
193 <div class="pass-bar"
194 ng-style="{ 'width': {{(100* stat.pass/((stat.fail * 1) + (stat.pass*1)) )| number:0}} + '%' }"
196 <div class="fail-bar"
197 ng-style="{ 'width': {{(100* stat.fail/((stat.fail * 1) + (stat.pass*1)) )| number:0}} + '%' }"