I have refereed the below forum for automating iPhone Settings using UI Automation tool. It's showing "iOS Simulator failed to install the application." error when started recording:
Automation of Settings app, iPhone
Could you please share how to automate iPhone Settings using UI Automation tool? Could you please share also how to automate third party app like Facebook or Twitter using UI Automation tool?
If you're talking about the Settings app on the device itself, you cannot use UI Automation to automate any interactions with it. However, there's a way to access the Settings app on the simulator. See my response on the posting you've linked.
As for automating the Facebook or Twitter apps, UI Automation can only be used with applications in which you have access to the source code.
Related
Appium is an open source mobile automation tool for iOS and Android. Appium can test native and hybrid applications, and can even be used to automate Mobile Safari on iOS.
please start from here - http://appium.io/slate/en/v1.3.4/?java#about-appium . This is very helpful and you will catch up very quickly
I have explored couple of tools like Appium,KIF, for these tools we need to own the app (to enable Automation Instrument) to automate. And also tried with .IPA files available on the internet (Gmail email client) on iOS simulator, not got any success yet.
I have requirement to automate iOS default Email app, is there any tool/approach to do this?
Yup, Apple has it pretty locked down for apps that are not yours. For that situation, you can try using Sikuli, which uses a computer vision approach to automation. (Sikuli uses OpenCV under the hood).
If you also want to automate an app on a real device, you can use Sikuli combined with a camera and Tapster, a robot for interacting with a device. (Disclosure: I started the Appium and Tapster projects.)
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.
Mobile test automation tools use vendor provided APIs to interact with operating system. For iOS it's UI Automation.
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.
When I test native application I can choose target (application from real device listed in the choose target list; or in the case with simulator - choose Profile menu item in application project).
But how can I choose target for web application?
Do I have to choose some browser as a target in this case? Device has Safari and Chrome browsers. Chrome browser appears in the list of targets. But when I try to run script, it does not works. Chrome is just launched, but any actions are performed.
I have also tried to create XCode project that simply open web page in browser. But when I try to run the script error "target application is not the frontmost" appears.
Is there some possibility to choose applications installed on the device as a target, if they are not present in the Instruments choose target list? There is a link to the web application on device home page. Can I somehow choose it as a target? In Organizer (called from XCode) only one - native - application is displayed.
UI Automation will only work for native applications built by you with Xcode. From your question it sounds like you want to launch Mobile Safari or Chrome for iOS and manipulate that with UI Automation. That won't work. Instruments can let you connect to applications you didn't compile running on the simulator or device, but only some of the instruments work and UI Automation isn't one of them.
If your web app was wrapped in a native shell then you could use UI Automation. You might want to look into Phone Gap. It's a full fledged wrapper that tries to expose native functionality to web apps, which you wouldn't need. But the fact that it's a well supported wrapper around web pages could be a great place to start if you still wanted to try this.
UI Automation doesn't support web automation. Try Selenium web driver for iOS, helps to automate web apps on iOS Safari browser. runs on both device and on simulator.
I am trying to build a tool that downloads an app from the market or App Store and run it on a device and take screenshots.
I have been successful in doing this on android devices by using monkey runner tool.
Is the same possible for iOS?
Starting with iOS 4.0 you can use UIAutomation to obtain this.
http://developer.apple.com/technologies/iphone/whats-new.html#tools