From b885a0d196382b9ef64ce710be81869334621632 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Sun, 10 Jan 2016 20:25:42 +0100 Subject: test sausage --- tests/test_tools/PradoGenericSelenium2Test.php | 93 ++++++++++---------------- 1 file changed, 36 insertions(+), 57 deletions(-) (limited to 'tests') diff --git a/tests/test_tools/PradoGenericSelenium2Test.php b/tests/test_tools/PradoGenericSelenium2Test.php index 33ab21e1..d181b744 100755 --- a/tests/test_tools/PradoGenericSelenium2Test.php +++ b/tests/test_tools/PradoGenericSelenium2Test.php @@ -1,60 +1,43 @@ 'Firefox on OSX', - 'browserName' => '*firefox', - 'host' => '127.0.0.1', - 'port' => 4444, - ), -*/ - array( - 'name' => 'Chrome on OSX', - 'browserName' => 'chrome', - 'sessionStrategy' => 'shared', - 'host' => '127.0.0.1', - 'port' => 4444, - ), -/* - array( - 'name' => 'Safari on OSX', - 'browserName' => 'safari', - 'sessionStrategy' => 'shared', - 'host' => '127.0.0.1', - 'port' => 4444, - ), -*/ -/* - array( - 'name' => 'Firefox on WindowsXP', - 'browserName' => '*firefox', - 'host' => '127.0.0.1', - 'port' => 4445, - ), - array( - 'name' => 'Internet Explorer 8 on WindowsXP', - 'browserName' => '*iehta', - 'host' => '127.0.0.1', - 'port' => 4445, - ) -*/ - ); - - static $baseurl='http://127.0.0.1/prado-master/tests/FunctionalTests/'; - - static $timeout=5; //seconds - - protected function setUp() - { - self::shareSession(true); - $this->setBrowserUrl(static::$baseurl); - $this->setSeleniumServerRequestsTimeout(static::$timeout); - } + protected $start_url = 'http://saucelabs.com/test/guinea-pig'; + public static $browsers = array( + // run FF15 on Windows 8 on Sauce + array( + 'browserName' => 'firefox', + 'desiredCapabilities' => array( + 'version' => '15', + 'platform' => 'Windows 2012', + ) + ), + // run Chrome on Linux on Sauce + array( + 'browserName' => 'chrome', + 'desiredCapabilities' => array( + 'platform' => 'Linux' + ) + ), + // run Mobile Safari on iOS + //array( + //'browserName' => '', + //'desiredCapabilities' => array( + //'app' => 'safari', + //'device' => 'iPhone Simulator', + //'version' => '6.1', + //'platform' => 'Mac 10.8', + //) + //)//, + // run Chrome locally + //array( + //'browserName' => 'chrome', + //'local' => true, + //'sessionStrategy' => 'shared' + //) + ); protected function assertAttribute($idattr, $txt) { @@ -273,8 +256,4 @@ class PradoGenericSelenium2Test extends PHPUnit_Extensions_Selenium2TestCase } $this->assertFalse($found, "Failed asserting that page source does not contain $text"); } - - - - } -- cgit v1.2.3