Page 1 of 1

Screenshot doesn't work in 5.5.1

Posted: Mon Apr 05, 2021 12:24 pm
by vakhsakhalyan

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() {});
});

Re: Screenshot doesn't work in 5.5.1

Posted: Mon Apr 05, 2021 12:28 pm
by nickolay

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.


Re: Screenshot doesn't work in 5.5.1

Posted: Mon Apr 05, 2021 12:31 pm
by vakhsakhalyan

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


Re: Screenshot doesn't work in 5.5.1

Posted: Mon Apr 05, 2021 3:23 pm
by nickolay

Please try taking regular screenshot (from the normal test flow, not on the error). Does that work?


Re: Screenshot doesn't work in 5.5.1

Posted: Mon Apr 05, 2021 5:25 pm
by vakhsakhalyan

The same error

{
      exitCode: 4,
       stdout: '',
     stderr: 'Invalid Parameter - 1271x797+0+0\r\n'
    }

Re: Screenshot doesn't work in 5.5.1

Posted: Tue Apr 06, 2021 8:28 am
by nickolay

Hm.. What if you copy the files in /bin/binary/imagemagick from 4.0.0 to 5.5.1? Will it work after that?