You don't have to recompile your app or modify it in any way, due to use of standard automation APIs on all platforms.
Again learn Selenium and watch appium Java tutorials to get an idea of how to use the UI Automator Viewer.Appium is an open source, cross-platform test automation tool for native, hybrid and mobile web apps, tested on simulators (iOS, FirefoxOS), emulators (Android), and real devices (iOS, Android, FirefoxOS). One day I'll rewrite all this cleaner as I'm at work and typing this in a hurry. Well I hope this all helps everyone interested. If you don't know what I'm talking about then see an appium course on Java which will show you how to do all this but you'll have to script it in Python.
The left one click.then you'll see the current state of the page your android device is at, the you'll be able to locate xpaths and such. So when you are ready to start finding xpaths and such to write your scripts first: open up your android device from AVD Manager, Second: open up the SDK location -> tools -> bin -> uiautomatorviewer.bat, Third: From the uiautomatorview.bat screen gui you'll see at the top left corner a black phone with android icon and a red one to the right. The most challenging thing is the setup, not the actual syntax and frameworks
I suggest copying the code from first to make sure your setup is proper, then type everything by scratch from that point on. You must also create an Android device that you'll be doing some testing on from Android Studio -> AVD Manager and actually have the device on first before running a script If you don't know how to use Selenium Webdriver, I recommend this Udemy course You could base everything on unittest or pytest frameworks and use page object module to set-up a nice clean framework. If you already know how to use selenium webdriver then this'll be easy as it's all based on selenium webdriver's framework, but with just Appium's keywords.
Pip install iPython, Appium-Client-Server, npm, node, unittest, pytest, selenium.Make sure to set the build path in system variables.Here's what I did to get Appium going on my side. If you are using Robotframework, you can refer here Selenium library is inbulit with appium library, so you need to install your appium library in pythonīelow link will help you installing appium and running your test cases in python You need to define test cases for your test scenarios by using unit test module in python, more information about this module is here Third point is your scripting language i.e. You need to install android SDK as it provides many set of tools to help in automation, one such tool is adb, it detect your mobile devices, assign device id to them, which will be referenced by your scripting language for further communication with appium. So to start with appium you dont need an extensive study of it.
Here is an excellent link which can help you to understand the basic concept of appium in more details Target application sends back the response to node js server which in turn send it back to client. it allows the client (test cases written in any language, Python in our case ) to fire the tests and the target application ( Apps) acts like a web page. Topic is debatable but i would try to guide you to make your decision more easier.Īppium works like a server, written in Nodejs and implements selenium webdriver.