编码的UI输出附件屏幕快照显示了Visual Studio,而不是浏览器窗口 [英] Coded UI Output attachement screenshot shows Visual Studio, not the browser window

查看:94
本文介绍了编码的UI输出附件屏幕快照显示了Visual Studio,而不是浏览器窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VS2010中开发了许多基于浏览器的Codeed UI测试.我已经升级到VS2012,并且有几个问题:

1/测试失败时,通常会显示错误屏幕截图,但在VS2012中,我会获得VS窗口的屏幕截图浏览器窗口.

如何查看实际错误?

2/我将层次结构与包含其他有序测试和/或编码UI测试的有序测试一起使用.在TestExplorer中,它们都按字母顺序显示在列表中,除非测试失败/成功,然后是测试 被移动到列表的顶部,并标记为失败或成功.层次结构内的任何测试均未标记.我的屏幕非常大,但是一直要像疯狂的滚动一样令人讨厌.

如何使列表始终以相同的顺序显示?

如何对测试进行分组?

3/测试运行的输出显示为列表,从失败的测试开始,然后是成功的测试.

如何按时间顺序显示测试输出?

 

解决方案

你好,

谢谢您的发帖.

我认为文本资源管理器"中输出"中的图像显示了发生错误的当前窗口的屏幕.我在VS2012中创建了一个简单的Codeed UI Test并运行它.在运行过程中,我保持VS处于打开状态并最大化.在这种情况下,我的编码UI测试将 失败,因为找不到桌面上的控件.然后,我得到了VS IDE窗口的屏幕截图.但是,当我删除桌面上的控件然后进行测试时,如果我将VS保持在最低水平,我将获得该错误的屏幕截图.

请在运行测试期间尝试最小化VS窗口以检查结果.

" 在TestExplorer中,它们都按字母顺序显示在列表中,除非测试失败/成功,则将测试移至列表顶部并标记为失败或成功."

在VS2012 Test Explorer中应该会出现.

如果要在测试资源管理器"中对测试进行分组,可以在下一个图片中单击测试资源管理器"中的图标,以选择如何对测试进行分组,例如按结果,特征,项目等对分组进行分组.

在运行测试并获得通过/失败结果之后,如果仍然希望保持测试显示在上一个答复中,则可以使用持续时间"或结果"而不是结果"对测试进行分组,以检查结果.但恐怕没有办法展示 测试的输出按时间顺序运行.

如果您认为这些功能很重要,则可以提交此功能请求:

http://visualstudio.uservoice.com/forums/121579-visual-studio

Visual Studio产品团队正在那里聆听用户的声音.您可以在此处发送您的想法/建议,人们可以投票.

感谢您的理解.

最好的问候


I have developed a number of browser-based Coded UI tests in VS2010. I have upgraded to VS2012 and have a few questions:

1/ When a test fails there is usually a screenshot of the error, but in VS2012 I get a screenshot of the VS-window instead of the browser window.

How do I get a screnshot of the actual error?

2/ I use a hierarcy with ordered tests containing other ordered tests and/or Coded UI tests. In the TestExplorer they are all displayed in a alphabetical list except when a test fails/succeeds, then the test is moved to the top of the list and marked as failed or succeded. None of the tests within the hierarcy is marked. I have a very big screen, but it is very annoying to have to scroll like craizy all the time. 

How do I make the list always display in the same order?

How do I group the tests?

3/ The output of a test run is displayed as a list starting with the failed tests, followed by the tests that succeded. 

How do I get the test output displayed in chronological order?

 

解决方案

Hello,

Thank you for your post.

I think that the image in Output in Text Explorer displays the screen of current window where the error occurs. I have created a simple Coded UI Test in VS2012 and run it. During running, I keep VS opened and maximized. In this case my coded UI test will fail since the control on desktop can’t be found. Then I get a screenshot of VS IDE window. But when I delete the control on desktop and then run test, if I keep VS minimized, I will get a screenshot of the error.

Please try to minimize VS window during running test to check the result.

"In the TestExplorer they are all displayed in an alphabetical list except when a test fails/succeeds, then the test is moved to the top of the list and marked as failed or succeded."

It is expected in VS2012 Test Explorer.

If you want to group the tests in Test Explorer, you can click that icon in the following image in Test Explorer to choose how to group tests for example group by Outcome, Traits, Project and so on.

And after you run tests and get Passed/failed results, if you still want to keep tests displayed in the previous reply, you can group tests with Duration or something else rather than Outcome to check the result. But I am afraid that there is no way to display the output of test runs in chronological order.

If you think those features are important, you could submit this feature request:

http://visualstudio.uservoice.com/forums/121579-visual-studio

The Visual Studio product team is listening to user voice there. You can send your ideas/suggestions there and people can vote.

Thanks for your understanding.

Best regards,


这篇关于编码的UI输出附件屏幕快照显示了Visual Studio,而不是浏览器窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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