Jenkins tasks and helper scripts to retrieve and play Walkthroughs via Selenium.
# Install Composer
$ curl -sS https://getcomposer.org/installer | php
# Install dependencies
$ php composer.phar install
Test logging in:
- Using basic authentication
$ php wt_selenium.php -w [walkhub url] -u [username] -p [password] status
Ok.
- Via OAuth
$ php wt_selenium.php -w [walkhub url] -k [consumer key] -s [consumer secret] process_queue
Ok.
Taking automatic screenshots:
- Simple screenshot queue processing
$ php wt_selenium.php -w [walkhub url] -u [username] -p [password] process_queue
.
- Processing multiple items from the queue
$ php wt_selenium.php -w [walkhub url] -u [username] -p [password] -l [number of items to process] process_queue
..E.E....
- Change the target browser
$ php wt_selenium.php -w [walkhub url] -u [username] -p [password] -b [browser string] process_queue
.
Taking screenshots using saucelabs:
- Log in to saucelabs
$ vendor/bin/sauce_config [YOUR_SAUCE_USERNAME] [YOUR_SAUCE_ACCESS_KEY]
- Extend the saucelabs class when processing the queue
$ php wt_selenium.php -w [walkhub url] -u [username] -p [password] -e "Sauce\Sausage\WebDriverTestCase" process_queue
.