Skip to content

Commit

Permalink
Merge pull request #116 from kshitijSharma2014/test1
Browse files Browse the repository at this point in the history
Kill selenium Server
  • Loading branch information
Kubik-Rubik committed Oct 31, 2015
2 parents e116330 + 577933c commit 3f6288b
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions RoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,6 @@ public function runTests($use_htaccess = false)
->arg('tests/acceptance/frontend/')
->run()
->stopOnFail();

// Kill selenium server
// $this->_exec('curl http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer');

/*
// Uncomment this lines if you need to debug selenium errors
$seleniumErrors = file_get_contents('selenium.log');
Expand Down Expand Up @@ -158,9 +154,6 @@ public function runTest($pathToTestFile = null, $suite = 'acceptance')
->arg('--debug')
->run()
->stopOnFail();

// Kill selenium server
// $this->_exec('curl http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer');
}

/**
Expand Down Expand Up @@ -309,4 +302,16 @@ private function getComposer()
$this->_exec('curl --retry 3 --retry-delay 5 -sS https://getcomposer.org/installer | php');
}
}

/**
* Kills the selenium server running
*
* @param string $host Web host of the remote server.
* @param string $port Server port.
*/
public function killSelenium($host = 'localhost', $port = '4444')
{
$this->say('Trying to kill the selenium server.');
$this->_exec("curl http://$host:$port/selenium-server/driver/?cmd=shutDownSeleniumServer");
}
}

0 comments on commit 3f6288b

Please sign in to comment.