简体   繁体   English

iPhone应用程序的UI自动化

[英]UI automation of an iphone app

I need to automate the UI testing of an iPhone application, ie if in my iPhone application I have two text fields corresponding to username and password the tests should automatically fill in the values and press the submit button, but as I am a newbie in the field of iPhone programming I am not aware of the processes and procedures that are needed to automate this testing. 我需要自动执行iPhone应用程序的UI测试,即,如果我的iPhone应用程序中有两个与用户名和密码相对应的文本字段,则测试应自动填写值并按Submit按钮,但由于我是新手, iPhone编程领域我不知道自动化此测试所需的过程和步骤。

Can anyone please suggest a complete procedure of how to mitigate this problem or point me to some link where I can find some relevant information concerning the problem? 任何人都可以提出解决此问题的完整过程的建议,或者将我指向某个链接,在该链接中我可以找到有关该问题的一些相关信息?
I just need to automate the scenario described above ie filling in the details in the two text fields and pressing a submit button automatically. 我只需要自动化上述场景,即在两个文本字段中填写详细信息并自动按下提交按钮即可。

If this is a Web Application on iOS I can suggest Selenium WebDriver utilising the iPhoneDriver . 如果这是iOS上的Web应用程序,我可以建议使用iPhoneDriver的 Selenium WebDriver。 If not, this SO post might help. 如果没有,那么此SO帖子可能会有所帮助。

This should be exactly what you need. 这应该正是您所需要的。 It allows automatic filling of textfields and automation of UI https://github.com/square/KIF 它允许自动填充文本字段和自动化UI https://github.com/square/KIF

here is the blog post introducing it http://corner.squareup.com/2011/07/ios-integration-testing.html 这是介绍它的博客文章http://corner.squareup.com/2011/07/ios-integration-testing.html

有几种用于iOS UI测试的新兴开源框架,包括AppiumCalabashFrankZucchini

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM