Project

General

Profile

1
<html>
2
<!--
3
Copyright 2004 ThoughtWorks, Inc
4

    
5
 Licensed under the Apache License, Version 2.0 (the "License");
6
 you may not use this file except in compliance with the License.
7
 You may obtain a copy of the License at
8

    
9
     http://www.apache.org/licenses/LICENSE-2.0
10

    
11
 Unless required by applicable law or agreed to in writing, software
12
 distributed under the License is distributed on an "AS IS" BASIS,
13
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
 See the License for the specific language governing permissions and
15
 limitations under the License.
16
-->
17

    
18
<head>
19
    <meta content="text/html; charset=ISO-8859-1"
20
          http-equiv="content-type">
21
    <title>Select a Test Suite</title>
22
    <script language="JavaScript" type="text/javascript" src="scripts/selenium-browserdetect.js"></script>
23
    <script>
24

    
25
        function load() {
26
            if (browserVersion.isHTA) {
27
                document.getElementById("save-div").style.display = "inline";
28
            }
29
        }
30

    
31
        function autoCheck() {
32
            var auto = document.getElementById("auto");
33
            var autoDiv = document.getElementById("auto-div");
34
            if (auto.checked) {
35
                autoDiv.style.display = "inline";
36
            } else {
37
                autoDiv.style.display = "none";
38
            }
39
        }
40

    
41
        function saveCheck() {
42
            var results = document.getElementById("results");
43
            var check = document.getElementById("save").checked;
44
            if (check) {
45
                results.firstChild.nodeValue = "Results file ";
46
                document.getElementById("resultsUrl").value = "results.html";
47
            } else {
48
                results.firstChild.nodeValue = "Results URL ";
49
                document.getElementById("resultsUrl").value = "../postResults";
50
            }
51
        }
52

    
53
        function go() {
54
            if (!browserVersion.isHTA) return true;
55
            var inputs = document.getElementsByTagName("input");
56
            var queryString = "";
57
            for (var i = 0; i < inputs.length; i++) {
58
                var elem = inputs[i];
59
                var name = elem.name;
60
                var value = elem.value;
61
                if (elem.type == "checkbox") {
62
                    value = elem.checked;
63
                }
64
                queryString += escape(name) + "=" + escape(value);
65
                if (i < (inputs.length - 1)) {
66
                    queryString += "&";
67
                }
68
            }
69

    
70
            window.parent.selenium = null;
71
            window.parent.htmlTestRunner.controlPanel.queryString = queryString;
72
            window.parent.htmlTestRunner.loadSuiteFrame();
73
            return false;
74
        }
75
    </script>
76
</head>
77

    
78
<body onload="load()" style="font-size: x-small">
79
<form id="prompt" target="_top" method="GET" onsubmit="return go();" action="TestRunner.html">
80

    
81
    <p>
82
        Test Suite:
83
        <input id="test" name="test" size="30" value="../tests/TestSuite.html"/>
84
    </p>
85

    
86
    <p align="center"><input type="submit" value="Go"/></p>
87

    
88
    <fieldset>
89
        <legend>Options</legend>
90

    
91
        <p>
92
            <input id="multiWindow" type="checkbox" name="multiWindow" onclick="autoCheck();"/> <label
93
                for="multiWindow">AUT in separate window</label>
94

    
95
        <p>
96

    
97
        <p>
98
            <input id="auto" type="checkbox" name="auto" onclick="autoCheck();"/> <label for="auto">Run
99
            automatically</label>
100
        </p>
101

    
102
        <div id="auto-div" style="display: none">
103
            <p>
104
                <input id="close" type="checkbox" name="close"/> <label for="close">Close afterwards </label>
105
            </p>
106

    
107
            <div id="save-div" style="display: none">
108
                <br/><label for="save">Save to file </label><input id="save" type="checkbox" name="save"
109
                                                                   onclick="saveCheck();"/>
110
            </div>
111

    
112
            <p id="results">
113
                Results URL:
114
                <input id="resultsUrl" name="resultsUrl" value="../postResults"/>
115
            </p>
116

    
117
        </div>
118
    </fieldset>
119

    
120

    
121
</form>
122
</body>
123
</html>
(5-5/13)