Monday, August 10, 2015
Visual Testing with Selenium in Rails
Pre-Request
Image Compare in Ruby
Simple Note
Gemfile
Added gem 'chunky_png'
(so need to run 'bundle install')
test_helper.rb
require two more modules 'fileutils' and 'chunky_png'
Added class ActiveSupport::VisualTestingHelper for visual testing
Added test case 'visual_testing_test.rb'
The screenshots will be stored in folder visualTesting
each test case has its own folder
Almost done the Selenium part, need to build Web App to work with it (e.g., confirm and select new base image via webpage) later.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment