我们可以向HtmlLoggerState添加自定义操作吗 [英] Can we add custom action to HtmlLoggerState

查看:94
本文介绍了我们可以向HtmlLoggerState添加自定义操作吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是VS2013 / CodedUI,我的palybacksetting如下:

I'm using VS2013/CodedUI and my palybacksetting is as follow:

 Playback.PlaybackSettings.LoggerOverrideState = HtmlLoggerState.AllActionSnapshot;

我还有一个第三方工具,该工具已集成到我的代码中,可以执行codedui可以执行的某些操作't ... Iw an能够将这些步骤登录到CodeLog捕获动作和屏幕截图的ActionLog.html文件中。

I also have a 3rd party tool that I have integrated to my code that does some action that codedui can't...Iw an to be able to log those steps into the ActionLog.html file with where codedui capture the actions and screenshot.

我进行了很多搜索,但没有

I searched a lot but didn't find anything on how we can achieve this.

在此先感谢您的帮助

推荐答案

我在此处发布了回复:编写自定义HTML日志

I posted a response over here: Writing Custom HTML Logs

听起来好像没有一个好方法。您可以获取html文件所在的路径,并从此处编写自定义记录器。我不确定在执行测试时尝试写安全性是安全的,但也许在测试完成后。

It sounds like there's not a good way to do this. You can get the path to where the html file lives and write a custom logger from there. I'm not sure it'd be safe to try and write to it while your test is executing, but perhaps once your test is complete.

这篇关于我们可以向HtmlLoggerState添加自定义操作吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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