summaryrefslogtreecommitdiff
path: root/tests/test_tools/selenium/php/TestRunner.php
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2013-09-22 22:39:41 +0200
committerFabio Bas <ctrlaltca@gmail.com>2013-09-22 22:39:41 +0200
commit7c65b2f40ea9242260eac5a746863f5925423861 (patch)
tree6c516057baa4356fde43f8d79517571bc8f0bfa2 /tests/test_tools/selenium/php/TestRunner.php
parent60c6bfa6f7caeb122cb8fa820506bdd1c54a842e (diff)
Phing: added target for phpunit+selenium
Functional tests were using an old selenium RC version. Ported them to use phpunit + selenium; next: opensauce
Diffstat (limited to 'tests/test_tools/selenium/php/TestRunner.php')
-rw-r--r--tests/test_tools/selenium/php/TestRunner.php162
1 files changed, 0 insertions, 162 deletions
diff --git a/tests/test_tools/selenium/php/TestRunner.php b/tests/test_tools/selenium/php/TestRunner.php
deleted file mode 100644
index ec2e32d3..00000000
--- a/tests/test_tools/selenium/php/TestRunner.php
+++ /dev/null
@@ -1,162 +0,0 @@
-<html>
-
-<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="<?php echo $base_dir; ?>core/selenium.css"/>
- <script type="text/javascript" src="<?php echo $base_dir; ?>core/scripts/narcissus-defs.js"></script>
- <script type="text/javascript" src="<?php echo $base_dir; ?>core/scripts/narcissus-parse.js"></script>
- <script type="text/javascript" src="<?php echo $base_dir; ?>core/scripts/narcissus-exec.js"></script>
- <script language="JavaScript" type="text/javascript" src="<?php echo $base_dir; ?>core/scripts/htmlutils.js"></script>
- <script language="JavaScript" type="text/javascript" src="<?php echo $base_dir; ?>core/lib/prototype.js"></script>
- <script language="JavaScript" type="text/javascript" src="<?php echo $base_dir; ?>core/lib/scriptaculous/scriptaculous.js"></script>
- <script language="JavaScript" type="text/javascript" src="<?php echo $base_dir; ?>core/lib/cssQuery/cssQuery-p.js"></script>
- <script language="JavaScript" type="text/javascript" src="<?php echo $base_dir; ?>core/scripts/selenium-browserdetect.js"></script>
- <script language="JavaScript" type="text/javascript" src="<?php echo $base_dir; ?>core/scripts/selenium-browserbot.js"></script>
- <script language="JavaScript" type="text/javascript" src="<?php echo $base_dir; ?>core/scripts/find_matching_child.js"></script>
- <script language="JavaScript" type="text/javascript" src="<?php echo $base_dir; ?>core/scripts/selenium-api.js"></script>
- <script language="JavaScript" type="text/javascript" src="<?php echo $base_dir; ?>core/scripts/selenium-commandhandlers.js"></script>
- <script language="JavaScript" type="text/javascript" src="<?php echo $base_dir; ?>core/scripts/selenium-executionloop.js"></script>
- <script language="JavaScript" type="text/javascript" src="<?php echo $base_dir; ?>core/scripts/selenium-testrunner.js"></script>
- <script language="JavaScript" type="text/javascript" src="<?php echo $base_dir; ?>core/scripts/selenium-logging.js"></script>
- <script language="JavaScript" type="text/javascript" src="<?php echo $base_dir; ?>core/scripts/selenium-version.js"></script>
- <script language="JavaScript" type="text/javascript" src="<?php echo $base_dir; ?>core/xpath/misc.js"></script>
- <script language="JavaScript" type="text/javascript" src="<?php echo $base_dir; ?>core/xpath/dom.js"></script>
- <script language="JavaScript" type="text/javascript" src="<?php echo $base_dir; ?>core/xpath/xpath.js"></script>
- <script language="JavaScript" type="text/javascript" src="<?php echo $base_dir; ?>prado-functional-test.js"></script>
-
- <script language="JavaScript" type="text/javascript">
- var post_results_to = "<?php echo $driver; ?>";
- var script_base_url = "<?php echo $base_dir; ?>";
- </script>
-</head>
-
-<body onLoad="onSeleniumLoad();">
-<table class="layout">
-<form action="" name="controlPanel">
-
-<!-- Suite, Test, Control Panel -->
-
-<tr class="selenium">
-<td width="25%" height="15%">
- <iframe name="testSuiteFrame" id="testSuiteFrame" src="<?php echo $driver; ?>?testSuites" application="yes"></iframe>
-</td>
-<td width="50%" height="15%">
- <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="15%" id="controlPanel">
- <fieldset>
- <legend>Execute Tests</legend>
-
- <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>
- <button type="button" id="runSuite" onClick="htmlTestRunner.startTestSuite();"
- title="Run the entire Test-Suite">
- <strong>All</strong>
- </button>
- <button type="button" id="runSeleniumTest" onClick="htmlTestRunner.runSingleTest();"
- title="Run the current Test">
- <em>Selected</em>
- </button>
- <button type="button" id="pauseTest" disabled="disabled"
- title="Pause the current Test">
- Pause
- </button>
- <button type="button" id="stepTest" disabled="disabled"
- title="Step the Test">
- Step
- </button>
- </div>
-
- <div class="executionOptions">
- <input id="highlightOption" type="checkbox" name="highlightOption" value="0" checked="checked"/>
- <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>
- </td>
- </tr>
- </table>
-</td>
-</tr>
-
-<!-- AUT -->
-
-<tr>
- <td colspan="3" height="70%">
- <iframe name="myiframe" id="myiframe" src="<?php echo $base_dir; ?>core/TestRunner-splash.html"></iframe>
- </td>
-</tr>
-
- </form>
- </table>
-
-</body>
-</html>