Get help with testing, discuss unit testing strategies etc.
After upgrading to version 5.5.1 from 4.0.0 the screenshot doesn't work.
After a failed test, I took a screenshot of the page:
here is a part of code:
harness.on('testupdate', function(ev, test) {
...
test.screenshot('testResults/screenshots/' + url, function() {});
});
Might be because the test is already finalized by the time a screenshot is taken. Are you sure it worked in 4.0.0? Any chance you can provide a reproducible test case? That would greatly speed up the resolution.
I got the error : Taking screenshot has failed with error: [object Object]
In 4.0.0 it worked properly.
I run the test with webdriver
Please try taking regular screenshot (from the normal test flow, not on the error). Does that work?
The same error
{
exitCode: 4,
stdout: '',
stderr: 'Invalid Parameter - 1271x797+0+0\r\n'
}
Hm.. What if you copy the files in /bin/binary/imagemagick
from 4.0.0 to 5.5.1? Will it work after that?