Skip to content
Robot Framework mobile setup
RobotFramework
Branch: master
Clone or download
Latest commit f5f4f72 Jan 16, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
settings init project Jan 5, 2020
testsuites
README.md Update README.md Jan 16, 2020
settings.robot init project Jan 5, 2020

README.md

Robot Framework - Mobile set up

Set up for Robot Framework to start automated testing for mobile. Support for both iOS and Android.

Explanation about Appium and Robot Framework can be found in my blogpost "Automate regression testing for iOS and Android using Appium and Robot".

Run test cases

Run the test scripts:

robot --variable DEVICE:iPhoneXr --outputdir logs testsuites

Folder structure

The folder structure consists of multiple different folders and files. I describe them from the root.

logs/*

The folder logs contains the output of the testscript. The log is a HTML file.

settings/setup.robot

The setup.robot file is used to import some files that are always needed for a good working flow. Those files are:

settings.robot - Contains all settings of the project general_keywords.robot - Contains all keywords that all flows need ${TESTSUITE}_keywords.robot - Contains all keywords for the testsuite. ${TESTSUITE}_elements.robot - Contains all identifiers for UI elements.

settings.robot

The settings.robot file contains the settings of the project. Some libraries are imported and also the devices which are used to run the tests are defined.

testsuites/*

In this folder the testcases are written, sorted by flow. Each flow (testsuite) has it's own robot file.

testsuites/keywords/*_elements.robot

In this file the keywords are specified. Each flow has it's own keywords file.

testsuites/elements/*_elements.robot

In this file the idenfiers are specified for both iOS and Android. Each flow has it's own elements file.

You can’t perform that action at this time.