andycha28 / php-webdriver-bindings

Automatically exported from code.google.com/p/php-webdriver-bindings
0 stars 0 forks source link

SauceLabs support request and how to #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This is really an enhancement request. Ideally code changes for support, but at 
the least, add documentation like on wiki about changes needed for this support.

Some users may want to use this driver with SauceLabs. May want to help users 
out with that. My organization is one such potential user.

I was able to get it to work in a brief experiment, modeling off the Python 
example that SauceLabs gave. To use it with SauceLabs, need to do the following:

* modify WebDriver.php, add an item to the capabilities array: 'name'=>'Testing 
Selenium 2 in PHP at Sauce, or whatever you want test name to be here'

* best to then parameterize name value as a variable that you pass via 
$webdriver->connect() this is optional but needed for extensibility.

* perhaps add additional parameters to connect() such that can specify if 
running test locally (or in grid) vs run in SauceLabs. Again, optional but 
needed for extensibility. Examples of additional parameters are OS platform. 
Some of these which also apply under Selenium Grid operation as well.

* pass SauceLabs connection string as follows in PHP code that starts up 
WebDriver: $webdriver = new 
WebDriver("username-string:access-key-string@ondemand.saucelabs.com", "80");

By the way, I am interested in perhaps helping out with code contributions to 
this project, and/or wiki updates.

Original issue reported on code.google.com by manga...@gmail.com on 6 Dec 2011 at 9:41

GoogleCodeExporter commented 8 years ago
Note that currently, it appears if you make a typo in SauceLabs connection 
string, or fail to connect, the driver might not throw error and you'd wonder 
whether integration with SauceLabs will work or not. Happened to me when I 
misread and typed a "-" instead of ":" between the SauceLabs username string 
and the API access key string.

Original comment by manga...@gmail.com on 6 Dec 2011 at 9:43

GoogleCodeExporter commented 8 years ago

Original comment by manga...@gmail.com on 9 Mar 2013 at 6:40

GoogleCodeExporter commented 8 years ago
Fixed in revision 72, assuming 1.0 release as well.

There was actually not much work to do here w/ no code changes, just need to 
know how to connect w/ proper connection strings.

Original comment by manga...@gmail.com on 9 Jun 2013 at 2:54