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 <!DOCTYPE script PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
18 <html ng-app="BlueprintValidationUIManagement">
21 .graph, .empty-graph {
22 border: 1px solid #ccc;
33 .pass-bar, .fail-bar {
39 <body ng-controller="AECFindBySubmissionIdController">
40 <div id="akrainofindbysubmissionidform"
41 style="padding-left: 20px; padding-right: 20px">
43 <h1>Find results by submission</h1>
46 <label>Select Submission: </label>
47 <div class="selectStyle">
48 <select class="exampleTable" ng-model="selectedSubmission"
49 ng-init="selectedSubmission=submissionsForDisplay[0]"
50 ng-change="selectedSubmissionChange(selectedSubmission)"
51 ng-options="n for n in submissionsForDisplay">
55 <div ng-repeat="result in results">
59 <p>Name: {{result.name}}</p>
60 <p>Generated: {{result.robot.generated}}</p>
61 <p>Generator: {{result.robot.generator}}</p>
62 <p>Errors: {{result.robot.errors}}</p>
64 <h2>Test Statistics</h2>
66 <table cellspacing="0" cellpadding="10" class="siteStatusTable">
71 <th> Total statistics </th>
75 <th>Pass / Fail </th>
79 <tr class="border_bottom"
80 ng-repeat="stat in result.robot.statistics.total.stat">
81 <td style="padding-left: 10px; font-size: 15px; width: 13%;">{{
83 <td style="padding-left: 10px; font-size: 15px; width: 13%;">{{
84 (stat.fail * 1) + (stat.pass*1) }}</td>
85 <td style="padding-left: 10px; font-size: 15px; width: 13%;">{{
87 <td style="padding-left: 10px; font-size: 15px; width: 13%;">{{
89 <td style="padding-left: 10px; font-size: 15px; width: 13%;">
92 ng-style="{ 'width': {{(100* stat.pass/((stat.fail * 1) + (stat.pass*1)) )| number:0}} + '%' }"
95 ng-style="{ 'width': {{(100* stat.fail/((stat.fail * 1) + (stat.pass*1)) )| number:0}} + '%' }"
103 <table cellspacing="0" cellpadding="10" class="siteStatusTable">
108 <th> Statistics by Tag </th>
112 <th>Pass / Fail </th>
116 <tr class="border_bottom"
117 ng-repeat="stat in results.robot.statistics.tag.stat">
118 <td style="padding-left: 10px; font-size: 15px; width: 13%;">{{
120 <td style="padding-left: 10px; font-size: 15px; width: 13%;">{{
121 (stat.fail * 1) + (stat.pass*1) }}</td>
122 <td style="padding-left: 10px; font-size: 15px; width: 13%;">{{
124 <td style="padding-left: 10px; font-size: 15px; width: 13%;">{{
126 <td style="padding-left: 10px; font-size: 15px; width: 13%;">
128 <div class="pass-bar"
129 ng-style="{ 'width': {{(100* stat.pass/((stat.fail * 1) + (stat.pass*1)) )| number:0}} + '%' }"
131 <div class="fail-bar"
132 ng-style="{ 'width': {{(100* stat.fail/((stat.fail * 1) + (stat.pass*1)) )| number:0}} + '%' }"
140 <table cellspacing="0" cellpadding="10" class="siteStatusTable">
145 <th> Statistics by Suite </th>
149 <th>Pass / Fail </th>
153 <tr class="border_bottom"
154 ng-repeat="stat in result.robot.statistics.suite.stat">
155 <td style="padding-left: 10px; font-size: 15px; width: 13%;">{{
157 <td style="padding-left: 10px; font-size: 15px; width: 13%;">{{
158 (stat.fail * 1) + (stat.pass*1) }}</td>
159 <td style="padding-left: 10px; font-size: 15px; width: 13%;">{{
161 <td style="padding-left: 10px; font-size: 15px; width: 13%;">{{
163 <td style="padding-left: 10px; font-size: 15px; width: 13%;">
165 <div class="pass-bar"
166 ng-style="{ 'width': {{(100* stat.pass/((stat.fail * 1) + (stat.pass*1)) )| number:0}} + '%' }"
168 <div class="fail-bar"
169 ng-style="{ 'width': {{(100* stat.fail/((stat.fail * 1) + (stat.pass*1)) )| number:0}} + '%' }"