I have a test that fails on purpose, but the array of screen shots shown me empty.
Why does this happen?
{ message: 'H2 [Present - H2 element 'Opciones de personalización' is present]',
stacktrace: ' at Object. (/var/www/testing/tests/CorporateData/Domains/domain.js:104:19)\n at HttpRequest. (/var/www/testing/node_modules/nightwatch/lib/index.js:337:20)\n at HttpRequest.emit (events.js:110:17)\n at HttpRequest. (/var/www/testing/node_modules/nightwatch/lib/index.js:365:15)\n at HttpRequest.emit (events.js:118:17)\n at IncomingMessage. (/var/www/testing/node_modules/nightwatch/lib/http/request.js:155:16)\n at IncomingMessage.emit (events.js:129:20)\n at _stream_readable.js:908:16\n at process._tickCallback (node.js:355:11)',
failure: 'Expected "found" but got: "not found"',
screenshots: [],
isFailure: 'Expected "found" but got: "not found"' } ],
isFailure: true }
the path is set in the gruntfile.js:
test_settings : {
default : {
launch_url : "www",
selenium_host : "127.0.0.1",
selenium_port : 4444,
silent: true,
screenshots : {
enabled : true,
on_failure : true,
on_error : true,
path : "./"
},
desiredCapabilities: {
browserName: "chrome",
"platform": "LINUX",
javascriptEnabled: true,
acceptSslCerts: true
}
},
firefox : {
desiredCapabilities: {
browserName: "firefox",
"platform": "LINUX",
javascriptEnabled: true,
acceptSslCerts: true
}
},
},
Thanks!!