b7456f150cc983b3302c7093a5a3405d07aefd2d
[lhc/web/wiklou.git] / maintenance / tests / selenium / SeleniumTestSuite.php
1 <?php
2 if (!defined('MEDIAWIKI') || !defined('SELENIUMTEST')) {
3 echo "This script cannot be run standalone";
4 exit(1);
5 }
6
7 // Do not add line break after test output
8 define('MW_TESTLOGGER_CONTINUE_LINE', 1);
9 define('MW_TESTLOGGER_RESULT_OK', 2);
10 define('MW_TESTLOGGER_RESULT_ERROR', 3);
11
12 class SeleniumTestSuite extends PHPUnit_Framework_TestSuite
13 {
14 private $selenium;
15
16 public function setUp()
17 {
18
19 $this->selenium = Selenium::getInstance();
20 $this->selenium->start();
21 $this->login();
22 //$this->loadPage('Testpage', 'edit');
23 }
24
25 public function tearDown()
26 {
27 $this->selenium->stop();
28 }
29
30 public function login()
31 {
32 $this->selenium->login();
33 }
34
35 public function loadPage($title, $action)
36 {
37 $this->selenium->loadPage($title, $action);
38 }
39 }
40