我用Selenium Python编写了脚本。在Jenkins中,我添加了Publish JUnit测试结果报告(http://nose.readthedocs.org/en/latest/plugins/xunit.html)。但是,我也想在该报告中添加屏幕截图。我觉得没有屏幕截图对我的测试没有用。我该如何实现?我也想在我的电子邮件中接收错误屏幕截图作为附件。
我可以仅使用Jenkins插件来实现吗?还是我需要在硒脚本中添加一些内容?我在硒python中找不到任何有用的东西。
我讨论了以下问题,但确实说明了整个过程
Adding a png image and table html while sending email in Jenkins
请帮忙.....
最佳答案
我看到有一篇关于Selenium Java + Jenkins的文章关于不在python上
https://www.safaribooksonline.com/blog/2014/06/19/jenkins-pictures-stuff/