Windows Phone 8的UI自动化? [英] UI Automation for Windows Phone 8?

查看:75
本文介绍了Windows Phone 8的UI自动化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我可以为Windows Phone 8创建功能性UI自动化测试吗?是否可以为WP8使用Microsoft UI Automation API?我在网上找不到任何关于此的文件?

Can I create functional UI automated tests for Windows Phone 8? Is the Microsoft UI Automation API available for WP8? I can not find any documentation online about this?

谢谢

推荐答案

没有一种内置机制,使您能够以编程方式模仿触摸,点击,手势等。

There isn't a built in mechanism enabling you to programmatically mimic touch, tap, gestures, etc.

您需要将此类模拟构建到您的应用程序,例如,如果您的代码中有一个UI元素的Tap事件处理程序,您的UI点击模拟器可以直接调用该事件处理程序。

You would need to build such simulation into your app, for example if you have a UI element's Tap event handler in your code, your UI tap simulator could directly call that event handler.

希望这有帮助,

Mark

Hope this helps,
Mark


这篇关于Windows Phone 8的UI自动化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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