如何测试我的iOS应用程序 [英] How do I test my iOS Apps
问题描述
我的问题可能很愚蠢,但是有人可以教我吗?
My question maybe silly, but can anyone coach me?
除了在编写代码时进行一些测试(很可能是白盒测试),在应用程序构建完成后,我们有一些测试工具或特殊方法来进行测试吗?
Except doing some test(most likely white box testing) while coding, after the App was built, do we have some testing tools or special method for doing the test?
我现在可以成像,只是手动测试我的应用程序的功能。
All I can imaging for now, is only manual testing the functionality of my App.
谢谢大家。
推荐答案
更新:已添加部分'iOS4的自动测试'
作为一名专业测试人员,我的建议是你应该有一个健康的自动和手动测试组合。以下示例位于.net中,但您应该很容易找到适合您所使用技术的工具。
As a professional tester my suggestion is that you should have a healthy mix of automated and manual testing. The Examples below are in .net but it should be easy to find a tool for whatever technique you are using.
自动测试
-
单元测试
使用NUnit测试你的类,函数和它们之间的交互。$
http://www.nunit.org/index.php
自动功能测试
如果可能,您应该自动执行大量功能测试。一些框架工作具有内置的功能测试。否则你必须使用它的工具。如果您正在开发网站/应用程序,您可能需要查看Selenium。
http://www.peterkrantz.com/2005/selenium-for-aspnet/
持续整合
使用CI确保每次团队成员提交项目时都会运行所有自动化测试。
http://martinfowler.com/articles/continuousIntegration.html
iOS4的自动测试
使用新的UIAutomation仪器编写触摸事件脚本,自动测试您的应用程序。
一些链接:
Automated testing for iOS4
Automate the testing of your application by scripting touch events using the new UIAutomation Instrument.
Some links:
- http://answers.oreilly.com/topic/1646-how-to-use-uiautomation-to-create-iphone-ui -tests /
- http://cocoawithlove.com/2008/11/automated-user-interface-testing-on.html
- http://alexvollmer.com/posts/2010/07/03/working-with -uiautomation /
- http://answers.oreilly.com/topic/1646-how-to-use-uiautomation-to-create-iphone-ui-tests/
- http://cocoawithlove.com/2008/11/automated-user-interface-testing-on.html
- http://alexvollmer.com/posts/2010/07/03/working-with-uiautomation/
手动测试
尽管我喜欢自动化测试,但恕我直言,它不能代替手动测试。主要原因是自动化只能执行它所说的内容,并且只验证它被通知查看为通过/失败的内容。人类可以使用它的智能来查找错误并提出在测试其他内容时出现的问题。
MANUAL TESTING
As much as I love automated testing it is, IMHO, not a substitute for manual testing. The main reason being that an automated can only do what it is told and only verify what it has been informed to view as pass/fail. A human can use it's intelligence to find faults and raise questions that appear while testing something else.
- 探索性测试
ET是一种非常低成本且有效的方法来查找项目中的缺陷。它充分利用了人类的智慧,并且比我所知道的任何其他测试技术更能教会测试者/开发人员更多关于项目的信息。针对测试环境中部署的每个功能进行ET会话不仅是快速查找问题的有效方法,而且是学习和娱乐的好方法!
http://www.satisfice.com/articles/et-article.pdf
- Exploratory Testing
ET is a very low cost and effective way to find defects in a project. It take advantage of the intelligence of a human being and a teaches the testers/developers more about the project than any other testing technique i know of. Doing an ET session aimed at every feature deployed in the test environment is not only an effective way to find problems fast, but also a good way to learn and fun!
http://www.satisfice.com/articles/et-article.pdf
这篇关于如何测试我的iOS应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!