2 if (!defined('MEDIAWIKI') ||
!defined('SELENIUMTEST')) {
3 echo "This script cannot be run standalone";
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);
12 class SeleniumTestSuite
extends PHPUnit_Framework_TestSuite
16 public function setUp()
19 $this->selenium
= Selenium
::getInstance();
20 $this->selenium
->start();
22 //$this->loadPage('Testpage', 'edit');
25 public function tearDown()
27 $this->selenium
->stop();
30 public function login()
32 $this->selenium
->login();
35 public function loadPage($title, $action)
37 $this->selenium
->loadPage($title, $action);