设为首页 收藏本站
查看: 682|回复: 0

Coded UI Test在Windows Vista、2003和2008上需要Windows Automation API 3.0(转)

[复制链接]

尚未签到

发表于 2015-5-2 06:26:50 | 显示全部楼层 |阅读模式
   最近团队的Nightly run被迁移到装有Windows Vista的Build Agent上执行,98+%的自动化用例执行通过率,还是蛮不错的!但是发现有几个之前(在装有Win7的Build Agent)一直通过的测试用例,突然失败了!今天同事Juan分析了一下这几个失败的用例,它们全部是基于Coded UI Test的,错误的场景让人有点匪夷所思,比如:ListBox.SelectedItems返回Null,之前在Win 7上运行都是很稳定的,经过一段调试还是一头雾水!
        后来仔细观察,发现在执行这些失败用例的时候,系统总有个提示(可不要小瞧这提示,因为没有它,打死我我也不知道要去装下面的补丁。一开始就是忽略这个重要的提示,所以“杯具”了几个小时,呵呵!),要求去更新一下 Windows Automation API,地址连接如下:

  • http://support.microsoft.com/kb/976779/
  于是就按照提示,下载更新了一下基于x86的Windows Vista Automation API。很灵,更新完毕一切OK!
        原来是在Vista和Windows 2003/2008等操作系统上,Coded UI Test的基石之一Windows Automation API版本比较就旧,需要更新到最新的Windows Automation API 3.0,而在Win7则不用。Windows Automation API包括了最新的Microsoft Active Accessiblity和Microsoft UI Automation。如果大家不是很了解这两项技术,下面是从MSDN上摘取的一段简介,言简意赅的对它们进行了解释:
    
  " The Windows Automation API consists of two technologies—Microsoft Active Accessibility and Microsoft UI Automation. Microsoft Active Accessibility is the legacy accessibility technology that was introduced as a platform add-in for Windows 95, while Microsoft UI Automation is a newer, more capable technology that overcomes the limitations inherent in Microsoft Active Accessibility. "
  
  " Although Microsoft Active Accessibility and UI Automation are two different technologies, the basic design principles are similar. The purpose of both technologies is to expose rich information about the UI elements used in Windows applications. Developers of accessibility tools can use this information to create software that makes applications running on Windows more accessible to people with vision, hearing, or motion disabilities. "
  " Both Microsoft Active Accessibility and UI Automation expose the UI object model as a hierarchical tree, rooted at the desktop. Microsoft Active Accessibility represents individual UI elements as accessible objects, and UI Automation represents them as automation elements. Both refer to the accessibility tool or software automation program as the client. However, Microsoft Active Accessibility refers to the application or control offering the UI for accessibility as the server, while UI Automation refers to this as the provider."

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-62649-1-1.html 上篇帖子: T410 Windows 2008 R2 “蓝屏” 下篇帖子: Windows Server 2008 R2 七步创建集群cluster!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表