1
<%@ page import="net.jsunit.JsUnitServer" %>
2
<%@ page import="net.jsunit.ServerRegistry" %>
3
<%@ page import="net.jsunit.configuration.Configuration" %>
4
<%@ page import="net.jsunit.configuration.ConfigurationProperty" %>
5
<%@ page import="net.jsunit.model.Browser" %>
6
<%@ page import="net.jsunit.utility.SystemUtility" %>
7
<%@ page import="java.text.SimpleDateFormat" %>
8
<%JsUnitServer server = ServerRegistry.getServer();%>
9
<%Configuration configuration = server.getConfiguration();%>
10
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
13
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
14
<title>JsUnit <%if (server.isFarmServer()) {%> Farm<%}%> Server</title>
15
<script type="text/javascript" src="app/jsUnitCore.js"></script>
16
<script type="text/javascript" src="app/jsUnitVersionCheck.js"></script>
17
<script type="text/javascript">
18
function selectDiv(selectedDivName) {
19
updateDiv("testRunnerDiv", selectedDivName);
20
updateDiv("configDiv", selectedDivName);
21
updateDiv("runnerDiv", selectedDivName);
22
updateDiv("displayerDiv", selectedDivName);
25
function updateDiv(divName, selectedDivName) {
26
var isSelected = divName == selectedDivName;
27
var theDiv = document.getElementById(divName);
28
theDiv.style.visibility = isSelected ? "visible" : "hidden";
29
theDiv.style.height = isSelected ? "" : "0";
31
var theDivHeader = document.getElementById(divName + "Header");
32
theDivHeader.className = isSelected ? "selectedTab" : "unselectedTab";
35
<link rel="stylesheet" type="text/css" href="./css/jsUnitStyle.css">
38
<body onload="selectDiv('runnerDiv')">
39
<table height="90" width="100%" cellpadding="0" cellspacing="0" border="0" summary="jsUnit Information"
43
<a href="http://www.jsunit.net" target="_blank"><img src="images/logo_jsunit.gif" alt="JsUnit" border="0"/></a>
45
<td width="50"> </td>
46
<th nowrap align="left">
47
<h4>JsUnit <%=SystemUtility.jsUnitVersion()%><%if (server.isFarmServer()) {%> Farm<%}%> Server</h4>
48
<font size="-2"><i>Running on <%=SystemUtility.displayString()%>
49
since <%=new SimpleDateFormat().format(server.getStartDate())%></i></font>
50
<%if (!server.isFarmServer()) {%>
52
<font size="-2"><i><%=server.getTestRunCount()%> test run(s) completed</i></font>
56
<td nowrap align="right" valign="middle">
58
<b><a href="http://www.jsunit.net/" target="_blank">www.jsunit.net</a></b><br>
60
<div id="versionCheckDiv"><a href="javascript:checkForLatestVersion('latestversion')">Check for newer
63
<a href="http://www.pivotalsf.com/" target="top">
64
<img border="0" src="images/powerby-transparent.gif" alt="Powered By Pivotal">
75
<th nowrap align="right">Server type:</th>
76
<td width="10"> </td>
77
<td><%=server.serverType().getDisplayName()%></td>
80
for (ConfigurationProperty property : configuration.getRequiredAndOptionalConfigurationProperties(server.serverType())) {
83
<th nowrap align="right"><%=property.getDisplayName()%>:</th>
84
<td width="10"> </td>
87
for (String valueString : property.getValueStrings(configuration)) {
89
if (valueString != null) {
90
if (property.isURL()) {
91
%><a href="<%=valueString%>"><%=valueString%></a><%
109
<table cellpadding="0" cellspacing="0">
111
<td class="tabHeaderSeparator"> </td>
112
<td id="runnerDivHeader" class="selectedTab">
113
<a href="javascript:selectDiv('runnerDiv')">runner</a>
115
<td class="tabHeaderSeparator"> </td>
116
<%if (!server.isFarmServer()) {%>
117
<td id="displayerDivHeader" class="unselectedTab">
118
<a href="javascript:selectDiv('displayerDiv')">displayer</a>
120
<td class="tabHeaderSeparator"> </td>
122
<td id="testRunnerDivHeader" class="unselectedTab">
123
<a href="javascript:selectDiv('testRunnerDiv')">testRunner.html</a>
125
<td class="tabHeaderSeparator"> </td>
126
<td id="configDivHeader" class="unselectedTab">
127
<a href="javascript:selectDiv('configDiv')">config</a>
129
<td class="tabHeaderSeparator" width="99%"> </td>
133
style="border-style: solid;border-bottom-width:1px;border-top-width:0px;border-left-width:1px;border-right-width:1px;">
134
<div id="runnerDiv" style="width:100%;visibility:visible;background:#DDDDDD">
137
<form action="/jsunit/runner" method="get" name="runnerForm">
141
You can ask the server to run JsUnit tests using the <i>runner</i> servlet.
142
You can run using the server's default URL for tests by going to <a href="/jsunit/runner">runner</a>,
143
or you can specify a custom URL and/or browser ID using this form:
151
<input type="text" name="url" size="100" value=""/>
156
<font size="-2"><i>e.g.
157
http://www.jsunit.net/runner/testRunner.html?testPage=http://www.jsunit.net/runner/tests/jsUnitTestSuite.html</i>
166
<%if (!server.isFarmServer()) {%>
168
<select name="browserId">
169
<option value="">(All browsers)</option>
171
for (Browser browser : configuration.getBrowsers()) {
172
%><option value="<%=browser.getId()%>"><%=browser.getFileName()%></option>
180
<input type="submit" value="go"/>
188
<%if (!server.isFarmServer()) {%>
190
<div id="displayerDiv" style="width:100%;visibility:hidden;background:#DDDDDD">
193
<form action="/jsunit/displayer" name="displayerForm">
197
You can view the logs of past runs using the displayer command.
198
Use this form to specify the ID of the run you want to see:
206
<input type="text" name="id" size="20"/>
214
<select name="browserId">
216
for (Browser browser : configuration.getBrowsers()) {
217
%><option value="<%=browser.getId()%>"><%=browser.getFileName()%></option>
224
<input type="submit" value="go"/>
233
<div id="testRunnerDiv" style="width:100%;visibility:hidden;background:#DDDDDD">
235
The manual Test Runner is at <a id="testRunnerHtml" href="./testRunner.html">testRunner.html</a>.
240
<div id="configDiv" style="width:100%;visibility:hidden;background:#DDDDDD">
242
You can see the configuration of this server as XML by going to <a id="config"
243
href="/jsunit/config">config</a>.
244
The config service is usually only used programmatically.
b'\\ No newline at end of file'