当一个测试用例超时时,编码的UI无法识别桌面窗口应用程序... [英] Coded UI is not identifying desktop window application when one test case is timed out...

查看:103
本文介绍了当一个测试用例超时时,编码的UI无法识别桌面窗口应用程序...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我有自动化套件,包含25个测试用例。当我运行全套件时,如果一个测试用例由于超时而失败。然后,由于不识别应用程序,测试用例将失败。我试图给予更多延迟,但仍然无法解决
问题。请回复并帮助我。


谢谢

解决方案


感谢您在此发布。


>>我有自动化套件,包含25个测试用例。当我运行全套件时,如果一个测试用例由于超时而失败。然后,由于不识别应用程序,测试用例将失败。我试图给予更多延迟,但仍然没有
能够解决问题。请回复并帮助我。


对于这种情况,我建议您使用WaitForControlEnabled方法指示测试等待某些事件发生,例如窗口到出现,进度条消失,依此类推。


有关详细信息,请参阅以下文档。


https://msdn.microsoft.com/en-us/library/gg131072.aspx


此外,这个论坛是关于Windows兼容性问题,对于你的情况,我建议你在下面的测试论坛发帖。


https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=visualstudiogeneral&filter=alltypes&sort= lastpostdesc


您的理解与合作将不胜感激。


最诚挚的问候,


Baron毕的


Hi All,

I have automation suite consists of 25 test cases. When I run full suite and if one test case fails due to time out. then later test cases will fail due to not recognizing the application. I tried to give more delay as well but still not able to resolve the issue. Please do respond and help me out.

Thanks

解决方案

Hi,

thanks for posting here.

>>I have automation suite consists of 25 test cases. When I run full suite and if one test case fails due to time out. then later test cases will fail due to not recognizing the application. I tried to give more delay as well but still not able to resolve the issue. Please do respond and help me out.

For this case, I suggest you use WaitForControlEnabled method to instruct the test to wait for certain events to occur, such as a window to appear, the progress bar to disappear, and so on.

For more information, please refer to this document below.

https://msdn.microsoft.com/en-us/library/gg131072.aspx

Besides, this forum is about Windows compatibility issues, for your case, I suggest you post on vs test forum below.

https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=visualstudiogeneral&filter=alltypes&sort=lastpostdesc

Your understanding and cooperation will be grateful.

Best Regards,

Baron Bi


这篇关于当一个测试用例超时时,编码的UI无法识别桌面窗口应用程序...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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