Nightvision is a combination of Selenium, Nightwatch and resemblejs
This project came to light since this kind of combination doesnt exists and some examples are not fully working. A biref description of the testcase is as follows: Browser opens url, check if element exists, if exists take screenshot in different screen size and check if it differs with existing baseline.
npm
npm install
npm i nightwatch -g
Imagemagic
http://www.imagemagick.org/script/binary-releases.php
ImageMagick-6.9.3-5-Q16-x64-dll.exe download download Win64 dynamic at 16 bits-per-pixel
See Nightwatch Guide! for more explantion of the arguments and how to use it.
To run the test,
-
click on
run.bat
inselenium
folder to start the Selenium server -
go in the appropriate directory where nightwatch.json is present and type
nightwatch
-
to run test for a specific module:
nightwatch -g modulename
-
Happy testing
-
Screenshot doest work with chrome driver
-
Cant run Selenium with Safari driver in Windows
Adding MongoDB to the project
Top contributers: Proximty MU Team
Thanks to:
Assertions Libraries: maxgalbu
ResembleJS Assertion Snippet : richard-flosi
MIT