1
|
<html>
|
2
|
|
3
|
<head>
|
4
|
<HTA:APPLICATION ID="SeleniumHTARunner" APPLICATIONNAME="Selenium">
|
5
|
<!-- the previous line is only relevant if you rename this
|
6
|
file to "TestRunner.hta" -->
|
7
|
|
8
|
<!-- The copyright notice and other comments have been moved to after the HTA declaration,
|
9
|
to work-around a bug in IE on Win2K whereby the HTA application doesn't function correctly -->
|
10
|
<!--
|
11
|
Copyright 2004 ThoughtWorks, Inc
|
12
|
|
13
|
Licensed under the Apache License, Version 2.0 (the "License");
|
14
|
you may not use this file except in compliance with the License.
|
15
|
You may obtain a copy of the License at
|
16
|
|
17
|
http://www.apache.org/licenses/LICENSE-2.0
|
18
|
|
19
|
Unless required by applicable law or agreed to in writing, software
|
20
|
distributed under the License is distributed on an "AS IS" BASIS,
|
21
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
22
|
See the License for the specific language governing permissions and
|
23
|
limitations under the License.
|
24
|
-->
|
25
|
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"/>
|
26
|
|
27
|
<title>Selenium Functional Test Runner</title>
|
28
|
<link rel="stylesheet" type="text/css" href="selenium.css"/>
|
29
|
<script type="text/javascript" src="scripts/narcissus-defs.js"></script>
|
30
|
<script type="text/javascript" src="scripts/narcissus-parse.js"></script>
|
31
|
<script type="text/javascript" src="scripts/narcissus-exec.js"></script>
|
32
|
<script language="JavaScript" type="text/javascript" src="lib/prototype.js"></script>
|
33
|
<script language="JavaScript" type="text/javascript" src="scripts/htmlutils.js"></script>
|
34
|
<script language="JavaScript" type="text/javascript" src="lib/scriptaculous/scriptaculous.js"></script>
|
35
|
<script language="JavaScript" type="text/javascript" src="lib/cssQuery/cssQuery-p.js"></script>
|
36
|
<script language="JavaScript" type="text/javascript" src="scripts/selenium-browserdetect.js"></script>
|
37
|
<script language="JavaScript" type="text/javascript" src="scripts/selenium-browserbot.js"></script>
|
38
|
<script language="JavaScript" type="text/javascript" src="scripts/find_matching_child.js"></script>
|
39
|
<script language="JavaScript" type="text/javascript" src="scripts/selenium-api.js"></script>
|
40
|
<script language="JavaScript" type="text/javascript" src="scripts/selenium-commandhandlers.js"></script>
|
41
|
<script language="JavaScript" type="text/javascript" src="scripts/selenium-executionloop.js"></script>
|
42
|
<script language="JavaScript" type="text/javascript" src="scripts/selenium-testrunner.js"></script>
|
43
|
<script language="JavaScript" type="text/javascript" src="scripts/selenium-logging.js"></script>
|
44
|
<script language="JavaScript" type="text/javascript" src="scripts/selenium-version.js"></script>
|
45
|
<script language="JavaScript" type="text/javascript" src="xpath/misc.js"></script>
|
46
|
<script language="JavaScript" type="text/javascript" src="xpath/dom.js"></script>
|
47
|
<script language="JavaScript" type="text/javascript" src="xpath/xpath.js"></script>
|
48
|
<script language="JavaScript" type="text/javascript" src="scripts/user-extensions.js"></script>
|
49
|
<script language="JavaScript" type="text/javascript">
|
50
|
function openDomViewer() {
|
51
|
var autFrame = document.getElementById('myiframe');
|
52
|
var autFrameDocument = new SeleniumFrame(autFrame).getDocument();
|
53
|
this.rootDocument = autFrameDocument;
|
54
|
var domViewer = window.open(getDocumentBase(document) + 'domviewer/domviewer.html');
|
55
|
return false;
|
56
|
}
|
57
|
</script>
|
58
|
</head>
|
59
|
|
60
|
<body onLoad="onSeleniumLoad();">
|
61
|
<table class="layout">
|
62
|
<form action="" name="controlPanel">
|
63
|
|
64
|
<!-- Suite, Test, Control Panel -->
|
65
|
|
66
|
<tr class="selenium">
|
67
|
<td width="25%" height="30%">
|
68
|
<iframe name="testSuiteFrame" id="testSuiteFrame" src="./TestPrompt.html" application="yes"></iframe>
|
69
|
</td>
|
70
|
<td width="50%" height="30%">
|
71
|
<iframe name="testFrame" id="testFrame" application="yes"></iframe>
|
72
|
</td>
|
73
|
|
74
|
<td width="25%">
|
75
|
<table class="layout">
|
76
|
<tr class="selenium">
|
77
|
<th width="25%" height="1" class="header">
|
78
|
<h1><a href="http://selenium.thoughtworks.com" title="The Selenium Project">Selenium</a> TestRunner
|
79
|
</h1>
|
80
|
</th>
|
81
|
</tr>
|
82
|
<tr>
|
83
|
<td width="25%" height="30%" id="controlPanel">
|
84
|
<fieldset>
|
85
|
<legend>Execute Tests</legend>
|
86
|
|
87
|
<div id="imageButtonPanel">
|
88
|
<button type="button" id="runSuite" onClick="htmlTestRunner.startTestSuite();"
|
89
|
title="Run All tests">
|
90
|
</button>
|
91
|
<button type="button" id="runSeleniumTest" onClick="htmlTestRunner.runSingleTest();"
|
92
|
title="Run the Selected test">
|
93
|
</button>
|
94
|
<button type="button" id="pauseTest" disabled="disabled"
|
95
|
title="Pause/Continue" class="cssPauseTest">
|
96
|
</button>
|
97
|
<button type="button" id="stepTest" disabled="disabled"
|
98
|
title="Step">
|
99
|
</button>
|
100
|
</div>
|
101
|
|
102
|
<div style="float:left">Fast</div>
|
103
|
<div style="float:right">Slow</div>
|
104
|
<br/>
|
105
|
<div id="speedSlider">
|
106
|
<div id="speedTrack"> </div>
|
107
|
<div id="speedHandle"> </div>
|
108
|
</div>
|
109
|
|
110
|
<div class="executionOptions">
|
111
|
<input id="highlightOption" type="checkbox" name="highlightOption" value="0"/>
|
112
|
<label for="highlightOption">Highlight elements</label>
|
113
|
</div>
|
114
|
|
115
|
</fieldset>
|
116
|
|
117
|
<table id="stats" align="center">
|
118
|
<tr>
|
119
|
<td colspan="2" align="right">Elapsed:</td>
|
120
|
<td id="elapsedTime" colspan="2">00.00</td>
|
121
|
</tr>
|
122
|
<tr>
|
123
|
<th colspan="2">Tests</th>
|
124
|
<th colspan="2">Commands</th>
|
125
|
</tr>
|
126
|
<tr>
|
127
|
<td class="count" id="testRuns">0</td>
|
128
|
<td>run</td>
|
129
|
<td class="count" id="commandPasses">0</td>
|
130
|
<td>passed</td>
|
131
|
</tr>
|
132
|
<tr>
|
133
|
<td class="count" id="testFailures">0</td>
|
134
|
<td>failed</td>
|
135
|
<td class="count" id="commandFailures">0</td>
|
136
|
<td>failed</td>
|
137
|
</tr>
|
138
|
<tr>
|
139
|
<td colspan="2"></td>
|
140
|
<td class="count" id="commandErrors">0</td>
|
141
|
<td>incomplete</td>
|
142
|
</tr>
|
143
|
</table>
|
144
|
|
145
|
<fieldset>
|
146
|
<legend>Tools</legend>
|
147
|
|
148
|
<button type="button" id="domViewer1" onClick="openDomViewer();">
|
149
|
View DOM
|
150
|
</button>
|
151
|
<button type="button" onClick="LOG.show();">
|
152
|
Show Log
|
153
|
</button>
|
154
|
|
155
|
</fieldset>
|
156
|
|
157
|
</td>
|
158
|
</tr>
|
159
|
</table>
|
160
|
</td>
|
161
|
</tr>
|
162
|
|
163
|
<!-- AUT -->
|
164
|
|
165
|
<tr>
|
166
|
<td colspan="3" height="70%">
|
167
|
<iframe name="myiframe" id="myiframe" src="TestRunner-splash.html"></iframe>
|
168
|
</td>
|
169
|
</tr>
|
170
|
|
171
|
</form>
|
172
|
</table>
|
173
|
|
174
|
</body>
|
175
|
</html>
|