0

I need to automate the UI testing of an iPhone application, i.e. 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.

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 i.e. filling in the details in the two text fields and pressing a submit button automatically.

Widor
  • 13,003
  • 7
  • 42
  • 64
AnkitSablok
  • 3,021
  • 7
  • 35
  • 52
  • Please provide the relevant information about the problem at hand. Can you please paste the code? It will be much easier to make out the solution for the problem by looking at the code. – Akhilesh Sharma May 22 '12 at 06:16

3 Answers3

0

If this is a Web Application on iOS I can suggest Selenium WebDriver utilising the iPhoneDriver. If not, this SO post might help.

Community
  • 1
  • 1
Nashibukasan
  • 2,028
  • 23
  • 37
  • I am not able to connect the instruments automation tool with my app can you please elaborate that process as that is the only step left – AnkitSablok May 22 '12 at 17:10
  • What do you mean by 'instruments automation tool' in this situation? Happy to help, but am unsure as to what you are asking. Do you mean "How do I test my app via Selenium?". – Nashibukasan May 22 '12 at 22:30
  • See the situation is as follows I have made an iphone app that just consists of a text box in which a user can enter some random text and I have a button on which if the user clicks then a label gets displayed printing Welcome : and the text which was there in the text filed, my task is to automate the testing of the UI that is how can I write some sort of script such that the script automatically fills in the details in the app and presses the button can you help me with this – AnkitSablok May 23 '12 at 05:50
  • As I mentioned in my initial post, if it is a Web App then Selenium can do this (you will have to read up on how to write tests in Selenium in the documentation). If not you can go through the SO post I suggested or look at Farhan Patel's answer which appears to be along the lines of what you are looking for. – Nashibukasan May 23 '12 at 06:07
  • Man I have written the required java script for the test cases but the instruments utility doesn't seem to work – AnkitSablok May 23 '12 at 06:11
0

This should be exactly what you need. It allows automatic filling of textfields and automation of UI https://github.com/square/KIF

here is the blog post introducing it http://corner.squareup.com/2011/07/ios-integration-testing.html

Farhan Patel
  • 506
  • 3
  • 7
0

There several emerging open source frameworks for iOS UI testing, including Appium, Calabash, Frank, and Zucchini.

sah
  • 476
  • 4
  • 9