Testing web apps in Ruby using Selenium WebDriver
Running Tests with Applitools
Prerequisites
- A free Applitools account and Applitools API KEY
Read Retrieving your API key to find your API key.
git
is optionalInstalling git is used to clone the demo project from the Github repository. Instead of installing git
, you can simply download the Zip file from the repository. Further, if you are Mac, you already have git
.
PATH
Below are some resources from the internet that'll help you
On Mac, place the chromedriver
executable in /usr/local/bin
folder so Eclipse and IntelliJ can find it.
Option 1 - Run With The Ultrafast Grid
- Clone or download the repository and navigate to that folder
git clone https://github.com/applitools/tutorial-selenium-ruby-ultrafastgrid.git
cd tutorial-selenium-ruby-ultrafastgrid
Note: you can alternatively download the project as a Zip file and extract it
- Install the dependencies
gem install bundler && bundle install
- Run the example test
APPLITOOLS_API_KEY="[Your API Key]" bundle exec ruby simple_test_script.rb
This will first set your APPLITOOLS_API_KEY
into the node process then run bundle exec
.
Adding Applitools Eyes to an Existing Project
- Install Applitools Eyes dependencies
gem install eyes_selenium
- Add an example test
Option 2 - Run Locally
- Clone or download the repository and navigate to that folder
git clone https://github.com/applitools/tutorial-selenium-ruby-basic.git
cd tutorial-selenium-ruby-basic
Note: you can alternatively download the project as a Zip file and extract it
- Install the dependencies
gem install bundler && bundle install
- Run the example test
APPLITOOLS_API_KEY="[Your API Key]" bundle exec ruby simple_test_script.rb
This will first set your APPLITOOLS_API_KEY
into the node process then run bundle exec
.
Adding Applitools Eyes to an Existing Project
- Install Applitools Eyes dependencies
gem install eyes_selenium
- Add an example test
Don't suffer in silence! Let us help you. Please reach out to us to get your project working.
Taking the next steps with Applitools
Congratulations on completing this quickstart! There's still so much to learn about visual testing with Applitools, but you're off to a great start.