Mobile Automation using Appium and Robot Framework in Python

Raghwendra Sonu
2 min readMay 26, 2020

--

In this article we are going to develop an Automation framework for Mobile devices automation.

What is Robot Framework?

Read here:

https://medium.com/@Raghwendra.sonu/robot-test-automation-framework-in-python-for-socket-programming-ea1edef507cc

Installation:

Install above libraries using “pip install <libraryName>” command. e.g.

pip install robotframework

Connect device to your laptop and verify that it gets connected successfully.

Next is to create a Robot Project, i am using Eclipse with Red plugin for this article.

Here is the folder structure for the project:

TestSuite will be same for both Android and iOS platforms, whereas Object Repository is separated for easing future maintenance.

Application Under test:

http://saucelabs.com/example_files/ContactManager.apk

Execution

Command to trigger execution:

1. Navigate to project library
2. Use below command at the terminal:
robot --variable OS:Android C:\ContactManager\TestSuites\Login\*.robot

Here is the execution video on real device- Samsung Tablet.

https://vimeo.com/user108335652/review/422702684/a52a710226

Report:

Hope this was useful! If you ever need my help, you can write in comments sections. Also, you can contact me through my LinkedIn Profile.

Git repository for the project used in this article is here:

You can download and explore it.

https://github.com/raghwendra-sonu/AppiumRobotFramework

--

--

Raghwendra Sonu
Raghwendra Sonu

Written by Raghwendra Sonu

Software Automation Testing expert with 9 years of work experience in diverse tools and technologies.

No responses yet