编码用户界面:带有失败测试方法屏幕截图的Html报告。 [英] Coded UI: Html Report with screenshot for failed test methods.

查看:82
本文介绍了编码用户界面:带有失败测试方法屏幕截图的Html报告。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在论坛中发现了一篇非常好的帖子,让我开始为编码的ui创建Html报告测试方法执行。


https://social.msdn.microsoft.com/Forums/en-US/9d41a992-064d-4e17-9969-6aae7e2a03bf/如何创建自定义html-report-using-codedui-?forum = vsunittest


与帖子不同,我将为n提供相同的报告。测试方法的执行,并将调用appendAllText方法来追加结果。然而 我无法弄清楚如何在html报告中获取失败的testmethods的截图。


有没有办法做到这一点?


谢谢你看看。


谢谢&问候,





Ahetejazahmad Khan。

解决方案

朋友,


请确保您已启用日志记录。



使用编码的UI测试日志分析编码的UI测试
页面给出了设置的具体步骤。


 


问候,


Fletcher


Hi,

I found a very good post in the forum to get me started with Html Report creation for coded ui test method executions.

https://social.msdn.microsoft.com/Forums/en-US/9d41a992-064d-4e17-9969-6aae7e2a03bf/how-to-create-the-custom-html-report-using-codedui-?forum=vsunittest

Unlike the post I will have same report for n. of test method execution and will call appendAllText method to append the results. However  I am unable to figure out how I shall get the screenshot of failed testmethods in the html report.

Is there a way to do it?

Thanks for having a look.

Thanks & Regards,


Ahetejazahmad Khan.

解决方案

Hi friend,

Please make sure you've enabled logging.

This Analyzing Coded UI Tests Using Coded UI Test Logs page gives the specific steps for the setting.

 

Regards,

Fletcher


这篇关于编码用户界面:带有失败测试方法屏幕截图的Html报告。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆