Giter Club home page Giter Club logo

tips-for-mobile-automation-daily-pain's Introduction

Tips for mobile automation daily pain

Basic installation for Android / iOS platforms

Terminal commands for tools installation :

Setup Android

  • Download SDK from Android SDK.
  • Run the android tool (included in the SDK/tools folder) and make sure an API Level 17 or greater SDK platform, Google Driver, SDK Tools and SDK platform-tools are installed.
  • Add the ANDROID_HOME to PATH variable.

Android uninstall server from device :

  • adb uninstall io.appium.uiautomator2.server
  • adb uninstall io.appium.uiautomator2.server.test

adb commands

LaunchActivity name and package

To get information about the name of the package and the first activity that has to be launched for the testing

  1. Browse through the SDK folder -> Build-Tools -> Version folder
  2. Open cmd and execute command ./aapt dumb badging "path_to_apk"
  3. Find package (in the beginning of logs) and launchable-activity parameters

Setup iOS

  • Switch to WedDriverAgent folder cd /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/
  • Run ./Scripts/bootstrap.sh for fetching dependencies
  • And run ./Scripts/bootstrap.sh if some issues with "no such file or directory"
  • Run open /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj
  • Add Apple-ID account in Xcode -> Preferences -> Account
  • Download manual profiles
  • Switch to WebDriverAgentRunner target in project settings
  • Select your account in Sighing (Signing Certificate will be created)
  • Run WebDriverAgentRunner on real device

Certificates explanation

https://medium.com/ios-os-x-development/ios-code-signing-provisioning-in-a-nutshell-d5b247760bef

Resolution for 'xcodebuild failed with code 65'

Clear DeriverData : rm -f /Users/hanna_kokhanava/Library/Developer/Xcode/DerivedData

Fix issue 'xcodebuild failed with code 65' - Xcode 9.3 + node 10.1.0 + Appium server 1.8.0

  • Open the WebDriverAgent.xcodeproj
  • Select 'Targets' -> 'WebDriverAgentRunner'
  • Open 'Build Phases' -> 'Copy frameworks'
  • Click '+' -> add 'RoutingHTTPServer' -> add 'YYCache.framework'
  • facebookarchive/WebDriverAgent#902

XCode version switching command

sudo xcode-select --switch /Applications/Xcode9.3.app

~/.bash_profile example :

  • export JAVA_HOME="$(/usr/libexec/java_home)"
  • export ANDROID_HOME=/Users/hanna_kokhanava/Library/Android/sdk
  • export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$JAVA_HOME$
  • export PATH=$PATH:/usr/local/bin/

tips-for-mobile-automation-daily-pain's People

Contributors

hanna-kokhanava avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.