ikostan / AppiumTesting

Intro to Mobile automation testing for IOS and Android with Appium and Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Intro to Mobile Automation Testing for IOS and Android with Appium

Dev config:

Nice to have tools:

Documentation:

How To:

JAVA_HOME PATH
A. In order to configure JAVA_HOME path do the following:
1. Go to "Advanced System Settings" > Advanced Tab > Environment Variables
2. Go to System Variables section > click on New... button
3. Type Variable name: JAVA_HOME
4. Enter Variable Value: C:\Program Files\Java\jdk1.8.0_221
5. Press OK button

B. Edit environment variable:

  1. From System variables list select path > Press Edit... button
  2. Press on New button > type: %JAVA_HOME%\bin
  3. Press OK button
Environment variables for Android ADB
A. In order to configure ANDROID_HOME path do the following:
1. Go to "Advanced System Settings" > Advanced Tab > Environment Variables
2. Go to System Variables section > click on New... button
3. Type Variable name: ANDROID_HOME
4. Enter Variable Value: C:\Users\username\AppData\Local\Android\Sdk
5. Press OK button

B. Edit environment variable:

  1. From System variables list select path > Press Edit... button
  2. Press on New button > type: %ANDROID_HOME%\tools
  3. Press OK button
  4. Press on New button > type: %ANDROID_HOME%\platform-tools
  5. Press OK button

C. Test:

  1. Open CMD > run "adb devices"
  2. If everifyng is configured properly you will something like this:
Maven PATH
A. In order to configure MVN_HOME path do the following:
1. Go to "Advanced System Settings" > Advanced Tab > Environment Variables
2. Go to System Variables section > click on New... button
3. Type Variable name: MVN_HOME
4. Enter Variable Value: C:\Users\username\AppData\Local\Android\Sdk
5. Press OK button

B. Edit environment variable:

  1. From System variables list select path > Press Edit... button
  2. Press on New button > type: %MVN_HOME%\bin
  3. Press OK button

C. Test:

  1. Open CMD > run "mvn --version"
  2. If everifyng is configured properly you will something like this:
Adding Dependencies: Java Client

Source: https://mvnrepository.com/artifact/io.appium/java-client

Inspect with Chrome Developer
1. Open Chrome web browser > new tab
2. Paste following address: chrome:..inspect/#devices


If evryfing connected properly you will see something like this:

Source:

API Java Documentation Integration
1. Open context menu > Go to Build Path > Configure Build Path...
2. Open Libraries tab > Expand Maven dependencies > Go to java-client > Javadoc > Press on Edit button
3. Add following path: https://appium.github.io/java-client/
4. Click OK





Current Activity name discovery
1. Open CMD
2. Run: "adb shell" > Enter
3. Run: "dumpsys window windows | grep =E 'mCurrentFocus'" > Enter


You should see something like that:

error: RPC failed; curl 56 Recv failure: Connection was reset
1. Open Git Bash
2. Run: "git config --global http.postBuffer 157286400"


Source: https://stackoverflow.com/questions/36940425/gitlab-push-failed-error

About

Intro to Mobile automation testing for IOS and Android with Appium and Java

License:The Unlicense


Languages

Language:Java 100.0%