Name: screenshot-stitching
Owner: Sauce Labs
Description: Stitches together images to provide a long screenshot of a webpage on an iOS device
Created: 2015-11-04 10:55:22.0
Updated: 2017-10-12 14:13:44.0
Pushed: 2016-07-08 12:48:35.0
Homepage: null
Size: 95
Language: Java
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This script will visit a list of websites on a TestObject iOS device, and save a “stitched screenshot” of each one, saving the results locally.
The test reads environment variables for configuration:
TESTOBJECT_API_KEY
(required)TESTOBJECT_APP_ID
(default is 1
, match this up to the ID in the App Versions section of your app on TestObject)TESTOBJECT_DEVICE
(default is iPhone_6S_Plus_16GB_real_ABP_off_private
)TESTOBJECT_APPIUM_VERSION
(default is 1.4.16
)WEBSITE_LIST_FILE
(default is websites.txt
)SKIP_EXISTING_SCREENSHOTS
(default is false
)The defaults are set to test with ABP off. You are still free to modify settings via environment variables if you wish.
TESTOBJECT_APP_ID
to comma separated list of values, the first element of which is the ID of your web test, and the second of which
is the ID of the Adblock Plus app, which will be installed as a dependency. For example, TESTOBJECT_APP_ID=1,2
TESTOBJECT_DEVICE
to iPhone_6S_Plus_16GB_real_ABP_on_private
gradle clean test
java -jar screenshot-stitching-1.3.1-all.jar
websites.txt
(a newline separated list), and save each screenshot to
iPhone_6S_Plus_16GB_real_ABP_off_private/http.www.example.com/restofurl.png
--skipExistingScreenshots
parameter, though this does not with the gradle
build.