1

I am working on an iOS application in which automation testing will be done on OS level( can open any application through script). I have searched a lot, all I found is we are allowed to automate the test script within our own application only. Okay, My question is How the EggPlant is able to automate the test on OS level( can open contacts, phone application through scripts)?

Note: This will be an in-House enterprise application and not destined for apple app store.

Hawk-Eye
  • 400
  • 1
  • 7
  • 23

2 Answers2

2

Mobile test automation tools use vendor provided APIs to interact with operating system. For iOS it's UI Automation.

finspin
  • 4,021
  • 6
  • 38
  • 66
  • Does UI Automation allows for System level interaction? – Hawk-Eye Jun 10 '14 at 07:40
  • In simple words, Can i open any application through UI Automation scripts? In my knowledge, we can run automation scripts within our app only. – Hawk-Eye Jun 10 '14 at 07:42
  • I haven't worked directly with UI Automation but for example with Appium, which uses UI Automation API to run the iOS tests, you can open any application on iOS. Take a look here for some example Appium tests for the Preferences app on iOS: https://github.com/appium/appium/tree/master/test/functional/ios/prefs – finspin Jun 10 '14 at 10:16
1

You can only automate what is within the binary of your application. For instance, if your app uses a web view you can access the internet, but you cannot exit your application from the automation test and open Safari. EggPlant doesn't operate based on the binary of your application, it "looks" at the screen and executes gestures or processes based on what it sees.

chamille
  • 49
  • 3
  • I agree EggPlant is using image recognition to search anything on the device screen. My Question is how the iPhone is able to execute the SenseTalk commands ? – Hawk-Eye Jun 16 '14 at 04:44
  • The SenseTalk commands are executed against the computer, not jus the simulator. UIAutomation is just executed against the binary of the app. With EggPlant, anything that is on screen is tappable, so iPhone itself is not executing the commands,, it's just like when you are interacting with the simulator. – chamille Jun 16 '14 at 18:45