Example code for running a Selenium test against the Testable remote grid. Examples for the Webdriver.io Selenium client library and for Selenium Java included here though this can be adapted to any Selenium bindings.
- Set your API key:
export TESTABLE_KEY=xxx. API keys can be generated by logging into Testable and going to Org Management => API Keys. - Run
npm installto install any dependencies in thewdiodirectory. - Choose the example you want to run and use the embedded
wdio. For example:./node_modules/.bin/wdio 01-chrome-latest-shared-region.conf.jsto run the basic example.
The examples include an assertion-reporter.js Webdriver.io reporter that reports the test steps back to Testable as assertions that can be seen along side the test results.
- Make sure you have Gradle and Java 8+ installed.
- Set your API key:
export TESTABLE_KEY=xxx. API keys can be generated by logging into Testable and going to Org Management => API Keys. - From the
javadirectory on the command line executegradle run.
This should run your test against Testable's remote selenium grid.