You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CROPPING IMAGES
Process.fork is not supported by this Ruby
DEBUG: Both images are exactly 1024x1500 - no cropping required. (shots/home/1024_phantomjs_my_other_site.png, shots/home/1024_phantomjs_my_site.png)
DEBUG: Both images are exactly 1024x1500 - no cropping required. (shots/home1/1024_phantomjs_my_other_site.png, shots/home1/1024_phantomjs_my_site.png)
COMPARING IMAGES
Process.fork is not supported by this Ruby
Comparing shots/home/1024_phantomjs_my_other_site.png and shots/home/1024_phantomjs_my_site.png
Saved diff
Comparing shots/home1/1024_phantomjs_my_other_site.png and shots/home1/1024_phantomjs_my_site.png
Saved diff
GENERATING THUMBNAILS
Process.fork is not supported by this Ruby
GENERATING GALLERY
Gallery generated
View the gallery in your browser:
file://C:/Users/madank/Documents/Wraith/shots/gallery.html
I have run the command in verbose mode (by adding verbose: true to my config) and pasted the output below:
paste results here
I have pasted the contents of my config file below:
##############################################################
##############################################################
# This is an example configuration provided by Wraith.
# Feel free to amend for your own requirements.
# ---
# This particular config is intended to demonstrate how
# to use Wraith in 'capture' mode, which is best suited to
# comparing a test and live version of the same website.
#
# `wraith capture capture.yaml`
#
##############################################################
##############################################################
# (required) The engine to run Wraith with. Examples: 'phantomjs', 'casperjs', 'slimerjs'
browser: "phantomjs"
# (required) The domains to take screenshots of.
domains:
my_site: "https://docs-uat-staging.vmware.com/cz/vCloud-Automation-Center/0.0/smoketesting"
my_other_site: "https://docs-uat-staging.vmware.com/cz/vCloud-Automation-Center/0.0/smoketesting"
# (required) The paths to capture. All paths should exist for both of the domains specified above.
paths:
home: "/GUID-9A925449-3DC8-4BA8-91A5-DF7E1191097B.html"
home1: "/GUID-B5155B5E-36B3-4BCF-860F-5B2091B950D1.html"
#about: /about
#contact: /get-in-touch
# (required) Screen widths (and optional height) to resize the browser to before taking the screenshot.
screen_widths:
#- 320
#- 600x768
#- 768
- 1024
#- 1280
# (optional) JavaScript file to execute before taking screenshot of every path. Default: nil
before_capture: 'javascript/disable_javascript--phantom'
# (required) The directory that your screenshots will be stored in
directory: 'shots'
# (required) Amount of fuzz ImageMagick will use when comparing images. A higher fuzz makes the comparison less strict.
fuzz: '20%'
# (optional) The maximum acceptable level of difference (in %) between two images before Wraith reports a failure. Default: 0
threshold: 5
# (optional) Specify the template (and generated thumbnail sizes) for the gallery output.
gallery:
template: 'slideshow_template' # Examples: 'basic_template' (default), 'slideshow_template'
thumb_width: 200
thumb_height: 200
# (optional) Choose which results are displayed in the gallery, and in what order. Default: alphanumeric
# Options:
# alphanumeric - all paths (with or without a difference) are shown, sorted by path
# diffs_first - all paths (with or without a difference) are shown, sorted by difference size (largest first)
# diffs_only - only paths with a difference are shown, sorted by difference size (largest first)
# Note: different screen widths are always grouped together.
mode: diffs_first
# (optional) Set the number of threads to use when saving images. Raising this value can improve performance, but very high
# values can lead to server connection issues. Set to around 1.5 the available CPU cores for best performance. Default: 8
threads: 8
verbose: true
paste config here
Below is js file user in before hooks:
// ######################################################
// This is an example module provided by Wraith.
// Feel free to amend for your own requirements.
// ######################################################
module.exports = function (phantom, ready) {
// disable JavaScript
phantom.settings.javascriptEnabled=false;
// reload the page without JS enabled
phantom.open(phantom.url, function () {
setTimeout(ready, 10000);
});
}
The text was updated successfully, but these errors were encountered:
Trying to compare two domains using capture mode
Page not loaded completely even with wait of 10 seconds
Reporting a problem? Please describe the issue above, and complete the following checklist so that we can help you more quickly.
Issue checklist:
I have validated my config file against YAML Validator to make sure it is valid YAML.
I have run the
wraith info
command and pasted the output below:DEBUG: #################################################
DEBUG: Command run: capture configs/capture.yaml
DEBUG: Wraith version: 4.2.4
DEBUG: Ruby version: ruby 2.6.3p62 (2019-04-16 revision 67580) [x64-mingw32]
DEBUG: ImageMagick: Version: ImageMagick 7.0.8-58 Q16 x64 2019-07-30 http://www.imagemagick.org
DEBUG: PhantomJS version: 2.1.1
DEBUG: chromedriver version: ChromeDriver 76.0.3809.68 (420c9498db8ce8fcd190a954d51297672c1515d5-refs/branch-heads/3809@{#864})
DEBUG: CasperJS version: 1.1.4
DEBUG: #################################################
Config validated. No serious issues found.
Creating Folders
SAVING IMAGES
DEBUG: phantomjs 'C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/wraith-4.2.4/lib/wraith/javascript/phantom.js' 'https://docs-uat-staging.vmware.com/cz/vCloud-Automation-Center/0.0/smoketesting/GUID-9A925449-3DC8-4BA8-91A5-DF7E1191097B.html' '1024' 'shots/home/1024_phantomjs_my_site.png' 'body' 'C:/Users/madank/Documents/Wraith/javascript/disable_javascript--phantom' 'false'
DEBUG: phantomjs 'C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/wraith-4.2.4/lib/wraith/javascript/phantom.js' 'https://docs-uat-staging.vmware.com/cz/vCloud-Automation-Center/0.0/smoketesting/GUID-9A925449-3DC8-4BA8-91A5-DF7E1191097B.html' '1024' 'shots/home/1024_phantomjs_my_other_site.png' 'body' 'C:/Users/madank/Documents/Wraith/javascript/disable_javascript--phantom' 'false'
DEBUG: phantomjs 'C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/wraith-4.2.4/lib/wraith/javascript/phantom.js' 'https://docs-uat-staging.vmware.com/cz/vCloud-Automation-Center/0.0/smoketesting/GUID-B5155B5E-36B3-4BCF-860F-5B2091B950D1.html' '1024' 'shots/home1/1024_phantomjs_my_site.png' 'body' 'C:/Users/madank/Documents/Wraith/javascript/disable_javascript--phantom' 'false'
DEBUG: phantomjs 'C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/wraith-4.2.4/lib/wraith/javascript/phantom.js' 'https://docs-uat-staging.vmware.com/cz/vCloud-Automation-Center/0.0/smoketesting/GUID-B5155B5E-36B3-4BCF-860F-5B2091B950D1.html' '1024' 'shots/home1/1024_phantomjs_my_other_site.png' 'body' 'C:/Users/madank/Documents/Wraith/javascript/disable_javascript--phantom' 'false'
Loading https://docs-uat-staging.vmware.com/cz/vCloud-Automation-Center/0.0/smoketesting/GUID-9A925449-3DC8-4BA8-91A5-DF7E1191097B.html at dimensions: 1024x1500
Loading https://docs-uat-staging.vmware.com/cz/vCloud-Automation-Center/0.0/smoketesting/GUID-9A925449-3DC8-4BA8-91A5-DF7E1191097B.html at dimensions: 1024x1500
Loading https://docs-uat-staging.vmware.com/cz/vCloud-Automation-Center/0.0/smoketesting/GUID-B5155B5E-36B3-4BCF-860F-5B2091B950D1.html at dimensions: 1024x1500
Loading https://docs-uat-staging.vmware.com/cz/vCloud-Automation-Center/0.0/smoketesting/GUID-B5155B5E-36B3-4BCF-860F-5B2091B950D1.html at dimensions: 1024x1500
Snapping https://docs-uat-staging.vmware.com/cz/vCloud-Automation-Center/0.0/smoketesting/GUID-B5155B5E-36B3-4BCF-860F-5B2091B950D1.html at: 1024x1500
Snapping https://docs-uat-staging.vmware.com/cz/vCloud-Automation-Center/0.0/smoketesting/GUID-9A925449-3DC8-4BA8-91A5-DF7E1191097B.html at: 1024x1500
Snapping https://docs-uat-staging.vmware.com/cz/vCloud-Automation-Center/0.0/smoketesting/GUID-B5155B5E-36B3-4BCF-860F-5B2091B950D1.html at: 1024x1500
Snapping https://docs-uat-staging.vmware.com/cz/vCloud-Automation-Center/0.0/smoketesting/GUID-9A925449-3DC8-4BA8-91A5-DF7E1191097B.html at: 1024x1500
CROPPING IMAGES
Process.fork is not supported by this Ruby
DEBUG: Both images are exactly 1024x1500 - no cropping required. (shots/home/1024_phantomjs_my_other_site.png, shots/home/1024_phantomjs_my_site.png)
DEBUG: Both images are exactly 1024x1500 - no cropping required. (shots/home1/1024_phantomjs_my_other_site.png, shots/home1/1024_phantomjs_my_site.png)
COMPARING IMAGES
Process.fork is not supported by this Ruby
Comparing shots/home/1024_phantomjs_my_other_site.png and shots/home/1024_phantomjs_my_site.png
Saved diff
Comparing shots/home1/1024_phantomjs_my_other_site.png and shots/home1/1024_phantomjs_my_site.png
Saved diff
GENERATING THUMBNAILS
Process.fork is not supported by this Ruby
GENERATING GALLERY
Gallery generated
View the gallery in your browser:
file://C:/Users/madank/Documents/Wraith/shots/gallery.html
verbose: true
to my config) and pasted the output below:Below is js file user in before hooks:
// ######################################################
// This is an example module provided by Wraith.
// Feel free to amend for your own requirements.
// ######################################################
module.exports = function (phantom, ready) {
// disable JavaScript
phantom.settings.javascriptEnabled=false;
}
The text was updated successfully, but these errors were encountered: