避免手势链经常测试iPhone App代码的方法 [英] Way to avoid chain of gestures to test iPhone App code often

查看:103
本文介绍了避免手势链经常测试iPhone App代码的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设应用程序运行正常。但是现在应用正处于为其添加功能的阶段。假设程序员在一个按钮上添加了功能,在iPhone上应用了许多手势后可以看到这个功能。

Suppose an application runs fine. But now app is in a phase of adding functionality to it. Assume programmer added functionality to one button which is visible after applying many gesture on iPhone.

(例如,点击其中一个标签,然后点击其中一个可查看的tableview单元格此后,再过几次点击并在导航栏上说一个按钮对于程序员添加功能是可见的。

(for example, tap one of the tabs then, tap one of the tableview cells visible thereafter, then few more taps & say on Navigation bar one button is visible to which programmer added functionality ).

因此,在测试该按钮的功能时,程序员必须多次点击iPhone才能转到该特定按钮。
如果增加的功能是关键的&需要多次测试然后只是达到那个按钮的繁琐过程可能会导致一些挫败感。

So while testing functionality of that button, programmer has to tap the iPhone many times to goto that specific button. If that added functionality is critical & needs to be tested many times then it would be tedious process of just reaching that button which may lead to some frustration.

那么有什么工具可以帮助用户在iPhone上跳过这个tappings链。

So is there any tool available that will help user in skipping this chain of tappings on iPhone.

或者还有其他方法来测试这样的应用。

Or is there any other way to test such an app.

推荐答案

您可以使用带有UIAutomation的Instruments,它可以让您编写UI动作脚本,记录消息并截取屏幕截图。测试脚本是使用Javascript编写的(搜索UIAElement以查找API参考)。

You can use Instruments with UIAutomation, which lets you script UI actions, log messages and take screenshots. The test scripts are written using Javascript (search for UIAElement to find the API reference).

但是,让您入门的最佳资源是WWDC 2010会话自动化用户界面用仪器测试。

But the best resource to get you started is the WWDC 2010 session "Automating User Interface Testing with Instruments".

你还应该阅读可访问性编程指南,因为UI Automation利用了这一点。

You should also read the Accessibility Programming Guide since UI Automation leverages on that.

这篇关于避免手势链经常测试iPhone App代码的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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