开发者

Get all screenshots in one location with PHPUnit/Selenium tests

开发者 https://www.devze.com 2023-02-14 10:59 出处:网络
I\'m using PHPUnit to run my Selenium tests.I\'m using captureScreenshotOnFailure to get screenshots when my assertions fail.

I'm using PHPUnit to run my Selenium tests. I'm using captureScreenshotOnFailure to get screenshots when my assertions fail.

I run tests on a Linux box, a Mac and a Windows box. The tests are all run from the Linux (Ubuntu) box.

I would like to get all of the failure screenshots in one location. Everything that I've read, just says that开发者_高级运维 the screenshots are put on the host computer (if the test fails in IE on the Windows box, the screenshots have to be saved on the Windows box). Does anyone have any great ideas on how I could make my screenshots all "end up" on the Linux box, regardless of where they occurred?


Make a shared drive/folder (e.g. SMB or WebDAV) on linux and mount this on the other computers, so PHPUnit saves the screenshots to this drive.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号