UWP应用程序自动化的差异 [英] Difference on UWP app automation

查看:70
本文介绍了UWP应用程序自动化的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我们的移动应用是一款UWP应用。由于某些问题,无法使用编码的UI测试来调用移动设备。计划将测试自动化为商店应用程序。什么是不同的,同时在移动设备上的PC和UWP应用程序上自动化UWP应用程序?可以重复使用多少代码?




解决方案

嗨palanist,


欢迎来到MSDN论坛。


你想使用什么版本的Visual Studio?


如果您打算使用VS2015,您可以使用
编码的UI测试项目(Windows Phone)模板,用于测试您的UWP移动应用程序。
 


在移动设备或模拟器上运行的UWP应用程序将作为电话应用程序运行。要对此进行测试,您必须使用
编码的UI测试项目(Windows Phone)模板。要在创建新项目时找到此模板,请转到
Windows 通用节点。或者转到 Windows
Windows 8 Windows Phone 节点。


参考" 使用编码的UI测试测试Windows UWP和8.1手机
应用程序
"


如果你打算使用VS2017,那就没有
编码的UI测试项目(其中的Windows Phone)模板,您可以使用
编码的UI测试项目(通用Windows)模板。


参考" 使用编码
UI测试的Windows Windows UWP应用程序
"。


此外,本案例讨论了VS 2017中Windows Phone app项目模板的编码UI测试,您可以查看它:


https://social.msdn.microsoft.com/Forums/en-US/3b0be19e-c59c-44cc-9571 -cd080cc6e63a / where-is-codedui-test-for-windows-phone-app-project-template-universal-apps-in-vs-2017?forum = vstest


问候,


Judyzh


Hi All,

Our mobile app is an UWP app. Due to some issues, unable to invoke mobile device using coded UI tests. Planning to automate tests as store app. What would be the difference, while automating UWP app on PC and UWP app on Mobile? How much code can be re-used?

解决方案

Hi palanist,

Welcome to the MSDN forum.

What version of Visual Studio you want to use?

If you're going to use VS2015, you could use Coded UI Test Project (Windows Phone) template to test your UWP Mobile App.  

A UWP app running on mobile device or emulator will run as a Phone app. To test this, you must use the Coded UI Test Project (Windows Phone) template. To find this template when you create a new project, go to the Windows, Universal node. Or go to the Windows, Windows 8, Windows Phone node.

Reference "Test Windows UWP and 8.1 Phone Apps with Coded UI Tests"

If you’re going to use VS2017, there’s no Coded UI Test Project (Windows Phone) template in it, you could use Coded UI Test Project (Universal Windows) template.

Reference "Test Windows UWP Apps with Coded UI Tests".

In addition, this case is discussing coded UI test for windows phone app project template in VS 2017, you could have a look at it:

https://social.msdn.microsoft.com/Forums/en-US/3b0be19e-c59c-44cc-9571-cd080cc6e63a/where-is-codedui-test-for-windows-phone-app-project-template-universal-apps-in-vs-2017?forum=vstest

Regards,

Judyzh


这篇关于UWP应用程序自动化的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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