Skip to content

eliasnogueira/appium-cross-platform-example

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
src
 
 
 
 
 
 
 
 

Read this before project execution

About the apps

The Fastip app can be downloaded by this repository https://github.com/ptraeg/mobile-apps-4-ways

I have built the apps for Android and iOS platform, and these are located in app folder.

Android

Configurations

To execute the examples over the Android platform you'll need:

  • Android SDK
  • Updated Build Tools, Platform Tools and, at least, one System Image (Android Version)
  • Configure Android Path on your environment variables
    • ANDROID_HOME: root android sdk directory
    • PATH: ANDROID_HOME + the following paths = platform-tools, tools, tools/bin
  • And Android Virtual Device
    • AVD or Genymotion

Inspect elements on Android

You can use the uiautomatorviewer to inspect elements on Android devices. or you can use Appium Desktop

iOS

Configurations

To execute the examples over the iOS platform you'l need:

Inspect elementos on iOS

You also can use Appium Desktop or you can use the Macaca App Inspector

Execution

On a MacOs machine give write access to node_modules: sudo chmod -R 777 /usr/local/lib/node_modules

Appium

Try to always have Appium and libraries updated.

Project execution

First you'll need to install Appium via npm and start the server at Terminal running the following command: appium --session-override

And before the execution set the proper values to config.properties file. This file will get all information about platform, platform versions, app, and other information.

What you need to do on this file:

  • alter run.platform to set the platform execution (ios or android)
  • set the proper device name for ios and android
    • in my example I'm using simulators
  • set the proper platform version (mainly for ios)

About the tests

On the package com.eliasnogueira.basic you'll find two tests: one for Android and another for iOS, both using Page Objects.

On the package com.eliasnogueira.unique_script you'l find the unique script that's use the information on config.properties to execute the tests in Android or iOS

Any question, error or feedback?

Please fill an issue ;-)

About

Appium Cross Platform example using Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages