XCTest UI记录和播放-模拟器未更新UI [英] XCTest UI Record and Play - Simulator not updating UI

查看:56
本文介绍了XCTest UI记录和播放-模拟器未更新UI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

2天前,在WWDC 2015期间,Apple发布了新的UI测试框架.我正在尝试编写一个测试用例,当我尝试记录UI测试时,要生成脚手架代码,看起来是在生成代码,但是模拟器上的UI并没有真正更新.

Apple released a new UI Testing framework 2 days ago during WWDC2015. I'm trying to write a test case and when I try to record the UI testing, to generate the scaffolding code, it looks the code is being generated, however the UI on the simulator is not actually updating.

即,当我点击一个按钮时,将生成代码以实际找到该按钮并点击,但是实际上并没有在模拟器上同时点击该按钮. 因此,基本上我无法进入模拟器的下一个屏幕,而无法继续进行测试用例.

i.e When I tap on a button, the code is generated to actually find the button and tap, but the button is not actually tapped simultaneously on the simulator. So basically I'm not able to go to the next screen on the simulator, to actually proceed in the test case.

WWDC会话视频显示了一个iPhone应用程序(Lister应用程序)的示例.但是我正在iPad 2应用程序上进行尝试.那就是唯一的区别.

The WWDC session video showed an example of an iPhone app (Lister app). But I'm trying it on a iPad 2 app. Thats about the only difference.

关于为什么会发生这种情况的任何线索吗?

Any clues about why this might be happening?

想在向苹果公司实际提交Radar之前检查是否还有其他实例.

Wanted to check if there has been other instances of these before actually filing a Radar with Apple.

推荐答案

我能够解决此问题.

问题是,在主要应用程序目标的部署目标"部分中,列出的所有目标都有不同的列. 对于应用程序的UI测试目标,该目标已设置为iOS8. 将其更改为iOS9并开始工作.

The problem was, in the "deployment target" section in the main Application target, there are different columns for all the targets listed. For the Application's UI test target, the target was set to iOS8. Changed it to iOS9 and it started working.

这篇关于XCTest UI记录和播放-模拟器未更新UI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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