suiteView.zpt 9.05 KB
Newer Older
Rafael Monnerat's avatar
Rafael Monnerat committed
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
<html tal:define="URL string:${context/absolute_url}/core;">

<head>
    <HTA:APPLICATION ID="SeleniumHTARunner" APPLICATIONNAME="Selenium">
        <!-- the previous line is only relevant if you rename this
     file to "TestRunner.hta" -->

        <!-- The copyright notice and other comments have been moved to after the HTA declaration,
to work-around a bug in IE on Win2K whereby the HTA application doesn't function correctly -->
        <!--
        Copyright 2004 ThoughtWorks, Inc

         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.
        -->
        <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"/>

        <title>Selenium Functional Test Runner</title>
        <link rel="stylesheet" type="text/css" href="selenium.css" tal:attributes="href string:${URL}/selenium.css"/>
        <script type="text/javascript" src="scripts/narcissus-defs.js" tal:attributes="src string:${URL}/scripts/narcissus-defs.js"></script>
        <script type="text/javascript" src="scripts/narcissus-parse.js" tal:attributes="src string:${URL}/scripts/narcissus-parse.js"></script>
        <script type="text/javascript" src="scripts/narcissus-exec.js" tal:attributes="src string:${URL}/scripts/narcissus-exec.js"></script>
        <script language="JavaScript" type="text/javascript" src="lib/prototype.js" tal:attributes="src string:${URL}/lib/prototype.js"></script>
        <script language="JavaScript" type="text/javascript" src="lib/scriptaculous/scriptaculous.js" tal:attributes="src string:${URL}/lib/scriptaculous/scriptaculous.js"></script>
        <script language="JavaScript" type="text/javascript" src="lib/cssQuery/cssQuery-p.js" tal:attributes="src string:${URL}/lib/cssQuery/cssQuery-p.js"></script>
        <script language="JavaScript" type="text/javascript" src="scripts/selenium-browserdetect.js" tal:attributes="src string:${URL}/scripts/selenium-browserdetect.js"></script>
        <script language="JavaScript" type="text/javascript" src="scripts/selenium-browserbot.js" tal:attributes="src string:${URL}/scripts/selenium-browserbot.js"></script>
        <script language="JavaScript" type="text/javascript" src="scripts/find_matching_child.js" tal:attributes="src string:${URL}/scripts/find_matching_child.js"></script>
        <script language="JavaScript" type="text/javascript" src="scripts/htmlutils.js" tal:attributes="src string:${URL}/scripts/htmlutils.js"></script>
        <script language="JavaScript" type="text/javascript" src="scripts/selenium-api.js" tal:attributes="src string:${URL}/scripts/selenium-api.js"></script>
        <script language="JavaScript" type="text/javascript" src="scripts/selenium-commandhandlers.js" tal:attributes="src string:${URL}/scripts/selenium-commandhandlers.js"></script>
        <script language="JavaScript" type="text/javascript" src="scripts/selenium-executionloop.js" tal:attributes="src string:${URL}/scripts/selenium-executionloop.js"></script>
        <script language="JavaScript" type="text/javascript" src="scripts/selenium-testrunner.js" tal:attributes="src string:${URL}/scripts/selenium-testrunner.js"></script>
        <script language="JavaScript" type="text/javascript" src="scripts/selenium-logging.js" tal:attributes="src string:${URL}/scripts/selenium-logging.js"></script>
        <script language="JavaScript" type="text/javascript" src="scripts/selenium-version.js" tal:attributes="src string:${URL}/scripts/selenium-version.js"></script>
        <script language="JavaScript" type="text/javascript" src="xpath/misc.js" tal:attributes="src string:${URL}/xpath/misc.js"></script>
        <script language="JavaScript" type="text/javascript" src="xpath/dom.js" tal:attributes="src string:${URL}/xpath/dom.js"></script>
        <script language="JavaScript" type="text/javascript" src="xpath/xpath.js" tal:attributes="src string:${URL}/xpath/xpath.js"></script>
        <script language="JavaScript" type="text/javascript" src="scripts/user-extensions.js" tal:attributes="src string:${URL}/scripts/user-extensions.js"></script>
        <script language="JavaScript" type="text/javascript">
            function openDomViewer() {
                var autFrame = document.getElementById('myiframe');
                var autFrameDocument = new SeleniumFrame(autFrame).getDocument();
                this.rootDocument = autFrameDocument;
                var domViewer = window.open(getDocumentBase(document) + 'domviewer/domviewer.html');
                return false;
            }
        </script>
</head>

<body onLoad="onSeleniumLoad();">
<table class="layout">
<form action="" name="controlPanel">

<!-- Suite, Test, Control Panel -->

<tr class="selenium">
<td width="25%" height="30%">
    <iframe name="testSuiteFrame" id="testSuiteFrame" src="./TestPrompt.html"
    tal:attributes="src string:${URL}/test_prompt_html" application="yes"></iframe>
</td>
<td width="50%" height="30%">
    <iframe name="testFrame" id="testFrame" application="yes"></iframe>
</td>

<td width="25%">
    <table class="layout">
        <tr class="selenium">
            <th width="25%" height="1" class="header">
                <h1><a href="http://selenium.thoughtworks.com" title="The Selenium Project">Selenium</a> TestRunner
                </h1>
            </th>
        </tr>
        <tr>
            <td width="25%" height="30%" id="controlPanel">
                <fieldset>
                    <legend>Execute Tests</legend>

                    <div id="imageButtonPanel">
                        <button type="button" id="runSuite" onClick="htmlTestRunner.startTestSuite();"
                                title="Run All tests">
                        </button>
                        <button type="button" id="runSeleniumTest" onClick="htmlTestRunner.runSingleTest();"
                                title="Run the Selected test">
                        </button>
                        <button type="button" id="pauseTest" disabled="disabled"
                                title="Pause/Continue" class="cssPauseTest">
                        </button>
                        <button type="button" id="stepTest" disabled="disabled"
                                title="Step">
                        </button>
                    </div>

                    <div style="float:left">Fast</div>
                    <div style="float:right">Slow</div>
                    <br/>
                    <div id="speedSlider">
                        <div id="speedTrack">&nbsp;</div>
                        <div id="speedHandle">&nbsp;</div>
                    </div>

                    <div class="executionOptions">
                        <input id="highlightOption" type="checkbox" name="highlightOption" value="0"/>
                        <label for="highlightOption">Highlight elements</label>
                    </div>

                </fieldset>

                <table id="stats" align="center">
                    <tr>
                        <td colspan="2" align="right">Elapsed:</td>
                        <td id="elapsedTime" colspan="2">00.00</td>
                    </tr>
                    <tr>
                        <th colspan="2">Tests</th>
                        <th colspan="2">Commands</th>
                    </tr>
                    <tr>
                        <td class="count" id="testRuns">0</td>
                        <td>run</td>
                        <td class="count" id="commandPasses">0</td>
                        <td>passed</td>
                    </tr>
                    <tr>
                        <td class="count" id="testFailures">0</td>
                        <td>failed</td>
                        <td class="count" id="commandFailures">0</td>
                        <td>failed</td>
                    </tr>
                    <tr>
                        <td colspan="2"></td>
                        <td class="count" id="commandErrors">0</td>
                        <td>incomplete</td>
                    </tr>
                </table>

                <fieldset>
                    <legend>Tools</legend>

                    <button type="button" id="domViewer1" onClick="openDomViewer();">
                        View DOM
                    </button>
                    <button type="button" onClick="LOG.show();">
                        Show Log
                    </button>

                </fieldset>

            </td>
        </tr>
    </table>
</td>
</tr>

<!-- AUT -->

<tr>
    <td colspan="3" height="70%">
        <iframe name="myiframe" id="myiframe" src="TestRunner-splash.html" tal:attributes="src string:${URL}/TestRunner-splash.html"></iframe>
    </td>
</tr>

    </form>
    </table>

</body>
</html>