forked from SideeX/sideex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
panel.html
282 lines (278 loc) · 13.6 KB
/
panel.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
<!--
/*
* Copyright 2017 SideeX committers
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
-->
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<!-- TODO: Change the title bar text -->
<title>SideeX</title>
<link rel="stylesheet" href="panel/css/jquery-ui.min.css">
<link rel="stylesheet" href="panel/css/layout.css" type="text/css" media="screen" />
<link rel="stylesheet" href="panel/css/font-awesome.min.css">
<!-- to hide right button feature -->
<!--[if lt IE 9]>
<link rel="stylesheet" href="panel/css/ie.css" type="text/css" media="screen" />
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script type="text/javascript" src="panel/js/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="panel/js/jquery-ui.min.js"></script>
<script type="text/javascript" src="panel/js/hideshow.js"></script>
<script type="text/javascript" src="panel/js/jquery.tablesorter.min.js"></script>
<script type="text/javascript" src="panel/js/jquery.equalHeight.js"></script>
<script type="text/javascript" src="panel/js/jquery.tabletab.js"></script>
<script type="text/javascript" src="panel/js/colResizable-1.5.min.js"></script>
<script type="text/javascript" src="panel/js/panelSetting.js"></script>
<script type="text/javascript" src="panel/js/sortable-ui.js"></script>
</head>
<!-- TODO: Make whole panel size flexible -->
<body>
<header id="header">
<hgroup>
<img class="logo_img" src="./icons/logo.png"></img>
<a href="#">
<img class="QA_img" src="./icons/QA.png"></img>
</a>
</hgroup>
</header>
<!-- end of header bar -->
<!-- right button feature -->
<div id="suite-grid-menu" class="menu">
<ul>
<li id="load-testSuite-show-menu"><a href="#">Open Test Suites</a></li>
<li id="add-testSuite-menu"><a href="#">Add New Test Suite</a></li>
</ul>
</div>
<div id="command-grid-menu" class="menu">
<ul>
<li id="grid-add"><a href="#">Add Command</a></li>
<li id="grid-delete"><a href="#">Delete Command</a></li>
<li id="grid-deleteAll"><a href="#">Delete All Commands</a></li>
</ul>
</div>
<section id="main" class="column">
<div id="toolbar-container" class="submit_link">
<!-- hidden, because it has default style -->
<input id="load-testSuite-hidden" type="file" multiple accept="text/*" style="display: none"></input>
<input id="load-testSuite-show" type="button" value="OpenSuite" style="display: none"></input>
<button id="save-testSuite" style="display: none">SaveSuite</button>
<button id="close-testSuite" style="display: none">CloseSuite</button>
<button id="add-testSuite" style="display: none">+Suite</button>
<button id="add-testCase" style="display: none">+Case</button>
<button id="delete-testCase" style="display: none">-Case</button>
<a download="info.html" id="downloadlink" style="display: none">Download</a>
<button id="record" class="sub_btn" style="width: 15%"><i class="fa fa-video-camera" aria-hidden="true"></i> Record</button>
<button id="playback" class="sub_btn" style="width: 20%"><i class="fa fa-play" aria-hidden="true"></i> PlayThisCase</button>
<button id="stop" class="sub_btn" style="display: none; width: 20%"><i class="fa fa-stop" aria-hidden="true"></i> Stop</button>
<button id="playSuite" class="sub_btn" style="width: 21%"><i class="fa fa-cube" aria-hidden="true"></i> PlayThisSuite</button>
<button id="playSuites" class="sub_btn" style="width: 21%"><i class="fa fa-cubes" aria-hidden="true"></i> PlayAllSuites</button>
<button id="pause" class="sub_btn btn_pr" style="width: 15.5%"><i class="fa fa-pause-circle" aria-hidden="true"></i> Pause</button>
<button id="resume" class="sub_btn btn_pr" style="display: none; width: 15.5%"><i class="fa fa-reply" aria-hidden="true"></i> Resume</button>
<!-- TODO: Add a stop button -->
</div>
<div class="module_all">
<article class="width_quarter module_right">
<div id="middle-container" class="module">
<header>
<h3>Test case</h3>
</header>
<div id="testCase-container" class="case_list">
<!-- Sug: Add animation when dragdrop -->
<div id="testCase-grid" class="module_content">
<!--<div class="message"><strong>Suite</strong>
<p>Case</p>
<p class="modified">Case</p>
</div>
<div class="message"><strong>Suite</strong>
<p>Case</p>
</div>
<div class="message"><strong>Suite</strong>
<p>Case</p>
</div>
<div class="message"><strong>Suite</strong>
<p>Case</p>
</div>
<div class="message"><strong>Suite</strong>
<p>Case</p>
</div>-->
</div>
</div>
</div>
<!-- end of messages article -->
<article id="result-container" class="module">
<div class="fieldset">
<div class="result-row">
<label id="result1">Runs</label>
<p id="result-runs" class="runs">0</p>
</div>
<div class="result-row">
<label id="result2">Failures</label>
<p id="result-failures" class="failures">0</p>
</div>
</div>
</article>
</article>
<article class="module width_3_quarter">
<div id="command-container" class="tab_content case_hight">
<div class="smallSection">
<table id="command-grid" class="tablesorter" cellspacing="0">
<!-- TODO: Make the width flexible -->
<thead>
<tr>
<th style="width: 23%">Command<div class="border"></div></th>
<th style="width: 40%">Target<div class="border"></div></th>
<th style="width: 37%">Value</th>
</tr>
</thead>
<tbody id="records-grid">
<!-- TODO: Make only tbody scoll -->
<input id="records-count" type="hidden" value="0"></input>
<!-- set input and /tbody in same line to avoid textNode -->
<!--<tr>
<td>time</td>
<td>open</td>
<td>1</td>
</tr>
<tr>
<td>time</td>
<td>open</td>
<td>2</td>
</tr>
<tr>
<td>time</td>
<td>open</td>
<td>3</td>
</tr>
<tr>
<td>time</td>
<td>open</td>
<td>4</td>
</tr>
<tr>
<td>time</td>
<td>open</td>
<td>5</td>
</tr>
<tr>
<td>time</td>
<td>open</td>
<td>6</td>
</tr>
<tr>
<td>time</td>
<td>open</td>
<td>7</td>
</tr>
<tr>
<td>time</td>
<td>open</td>
<td>8</td>
</tr>
<tr>
<td>time</td>
<td>open</td>
<td>9</td>
</tr>
<tr>
<td>time</td>
<td>open</td>
<td>10</td>
</tr>
<tr>
<td>time</td>
<td>open</td>
<td>11</td>
</tr>
<tr>
<td>time</td>
<td>open</td>
<td>12</td>
</tr>-->
</tbody>
</table>
<div class="record-bottom"></div>
</div>
</div>
<div id="command-toolbar">
<div class="fieldset">
<!-- TODO: make (command &) target selectable -->
<div class="command-row">
<label>Command</label>
<input id="command-command" list="command-command-list" type="text"><i id="command-" class="fa fa-chevron-down" aria-hidden="true"></i>
<div id="command-dropdown" class="w3-dropdown-content w3-bar-block">
</div>
</div>
<datalist id="command-command-list">
</datalist>
<div class="command-row">
<label>Target</label>
<input id="command-target" list="command-target-list" type="text"><i id="target-" class="fa fa-chevron-down" aria-hidden="true"></i>
<div id="target-dropdown" class="w3-dropdown-content w3-bar-block">
</div>
<button id="selectElementButton" class="btn_sf" style="width: 60px">Select</button>
<button id="showElementButton" class="btn_sf" style="width: 50px">Find</button>
</div>
<datalist id="command-target-list">
</datalist>
<div class="command-row">
<label>Value</label>
<input id="command-value" type="text">
</div>
</div>
</div>
<!-- end of #command-container -->
</article>
<!-- end of content manager article -->
<div class="clear"></div>
<article class="module width_full">
<header class="tabs_involved">
<ul class="tabs">
<li id="clear-log"><a>Clear</a></li>
</ul>
</header>
<div id="tab4" class="tab_content case_roll">
<div class="module_content">
<div id="logcontainer">
</div>
</div>
</div>
<!-- end of #tab4 -->
</article>
<!-- end of styles article -->
</div>
<!--<div class="spacer"></div>-->
</section>
<!-- script -->
<script src="browser-polyfill.js"></script>
<script src="IO/load_file.js"></script>
<script src="IO/save_file.js"></script>
<script src="panel/js/context_menu.js"></script>
<script src="panel/js/command_grid.js"></script>
<script src="panel/js/command_grid_toolbar.js"></script>
<script src="panel/js/testcase_grid.js"></script>
<script src="panel/js/log.js"></script>
<script src="ext-command.js"></script>
<script src="initial.js"></script>
<script src="escape.js"></script>
<script src="editor.js"></script>
<script src="locatorBuilders.js"></script>
<script src="formatCommand.js"></script>
<!-- playback -->
<script type="text/javascript" src="playback-api.js"></script>
</body>
</html>