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
{
15 public function setUp() {
16 $this->selenium
= Selenium
::getInstance();
17 $this->selenium
->start();
19 // $this->loadPage( 'Testpage', 'edit' );
22 public function tearDown() {
23 $this->selenium
->stop();
26 public function login() {
27 $this->selenium
->login();
30 public function loadPage( $title, $action ) {
31 $this->selenium
->loadPage( $title, $action );