Posts

Showing posts with the label Appium

Automate Android native applications by installing the apk file on your PC / without the need of a mobile phone

Image
Problem:  Need for automating an android application using Appium/Selenium but without emulators and without a mobile device Solution:   Install android app inside chrome as an extension! hOW? Prereq : Chrome 37+ for the solution to work! How this works? The App Runtime for Chrome (or ARC) is the piece of software that allows Android apps to run in Chrome. In the same way that ART (and the older Dalvik ) currently run Android apps in Android itself. What we will need? ARChon Custom Runtime : ARC is officially only designed for Chrome OS at the moment. To get around this, developer vladikoff created the ARChon Custom Runtime, which not only allows Windows, OS X, and Linux to run Android apps, but also removes the limit on how many can be run. Unpacked Extension : Extensions normally come from the Chrome Web Store or prepackaged in a .CRX file. For the purposes of Android apps, we're going to use unpacked extensions. These are folders that contain ...

Appium Version 1.3.7 released!

Image
Appium version 1.3.7 is available on Sauce. This small release includes two hot-fixes: General fixed a failure to remap session id in proxied responses iOS fixed intermittent failure to find Xcode http://sauceio.com/index.php/2015/03/appium-version-1-3-7-released-on-sauce-labs/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+SauceLabs+%28Sauce+Labs%29

Appium - Mobile test automation on a real device

Image
If you are looking to perform test automation on a real device (iPhone in my case) and you have had problems with the documentation on the official Appium website , the following post will help you for sure: Prerequisites:  Apple account with valid apple ID  Download and Install Eclipse on your Mac – A link that might help you with the installation process http://www.cs.dartmouth.edu/~cs5/install/eclipse-osx/ Download and Install Xcode Download Selenium Jars for java from the Selenium website Download the java client libraries from http://appium.io/downloads.html Download and install appiumD download the latest version from Appium.io. Mount the disk image.   Drag Appium.app to your Applications folder Download and Install brew (The missing package manager for OS X) It's on the bottom of the Homebrew homepage. http://brew.sh/  ( Yeah, it would be helpful if it was listed at the top, instead.) From a Terminal prompt:    ruby -e "$(curl -...

How to create a new Apple APP ID and select the WildCard App ID option and set it to “*”

Image
An application ID uniquely identifies your iOS application within Apple's application services - enabling you to use things like in-app purchasing, push notifications, game center and more inside your app. You can only create application IDs in the iOS developer portal . So first you would need to log-in with a developers access. Once you're logged in, choose the "Certificates, Identifiers & Profiles" link On the next screen, choose the "Identifiers" option on the left Now you can click the "+" icon near the top right to create a new App ID The first thing you're asked to do is provide an App ID description (Just provide something descriptive enough for your needs) You have two options here. Pick the one that says - Wildcard App ID  Choose an App ID Suffix as “*” Select App Services if needed Complete and submit to get a message – “This App ID is now registered to your account and can be used in your provisioning profile...

Appium: Fail could not start script target application is not frontmost

Image
I am guessing you are reading this post because you see this error even though you followed every single step religiously from the Appium API reference doc. We are or were in the same boat! First check  Have you started the ios-debug-webkit-proxy on port 27753 after connecting to the device ? Can you see the terminal where you started the  ios-debug-webkit-proxy showing pages that you navigate on your device If its started, can you connect to http://localhost:27753 on your local browser and browse the device and the pages currently active on the device ? This will ensure that appium is able to reach the device and talk to safari through the remote debugger Lastly your desktop Safari should also be running with Developer mode enabled. (Web inspector should be enabled) If you are still facing the same error after all the checks then we do what we do on windows: Close all prompts and restart the Mac and reconnect J You will now see that it works l...

Check dependencies code sign error safarilauncher.app OR Could not read CFBundleIdentifier from Info.plist

Image
If you are working on Appium and you have followed these step to get an error Now that you have a profile open a terminal and run the following commands: git clone https://github.com/appium/appium.git install npm using brew – brew install npm cd appium ./reset.sh --ios --real-safari –launcher Just cloned SafariLauncher Running Xcode version 5.1 I entered my provisioning profile and my code signing identity Clicked build I got this error  error: could not read CFBundleIdentifier from Info.plist (null) Did a clean and rebuild but got the same error Did a clean and built from ./build.sh and got the same error Solution: Go to Xcode open the project Navigate to the Build Settings Change the Code Signing Identity with your name and iPhoneDeveloper Change the provisioning profile to the correct name  4.   Check if the Bundle Identifier isn't empty

Mobile Test Automation - iOS / Android / Windows + Real Device / Emulators + Instrumentation?

Image
I must admit that even though I was a test automation fanatic, in the past I had been running away from the mobile automation space. Finally the race is over and the obvious has happened, the mobile devices have won! I started playing around with tools that support iOS and android platforms and found that  there are quite a few out there.All with promising abilities but a lot of communication gap. Conclusion:  Mobile automation is where Web automation was say 7-10 years back but with a more definitive approach. The good thing is that slowly but steadily there are communities building around them, but a few tools stand out as always. Note: Before I start off I would like to mention that the information here is based on trying to use these technologies firsthand and might not be 100 percent accurate. It is also based on various blogs, articles and websites that I read while evaluating the mobile testing frameworks and tools. My Verdict:  From my...