GitHub - Adazaiya/Android-Testing · GitHub
Skip to content

Repository files navigation

Project Overview

The project explores a demonstration of Android testing tools and frameworks, focusing on Espresso and Appium.

Prerequisites

Android Studio

JDK 11 or higher

Node.js 18+ and npm

Python 3.10+

Project Setup

1. Clone the Repository

git clone https://github.com/yourusername/Android_Testing.git
cd Android_Testing

2. Install Android Studio and SDK

  1. Download and install Android Studio
  2. Open Android Studio and install Android SDK
  3. Set environment variables
    export ANDROID_HOME=$HOME/Library/Android/sdk
    export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk
    export PATH=$PATH:$ANDROID_HOME/platform-tools
    export PATH=$PATH:$ANDROID_HOME/tools
    Add these to ~/.zshsrc
    echo 'export ANDROID_HOME=$HOME/Library/Android/sdk' >> ~/.zshrc
    echo 'export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk' >> ~/.zshrc
    echo 'export PATH=$PATH:$ANDROID_HOME/platform-tools' >> ~/.zshrc
    source ~/.zshrc
    Verify installation
    adb --version
    echo $ANDROID_HOME

3. Running Appium Tests

  1. Start Appim Server
export ANDROID_HOME=$HOME/Library/Android/sdk
export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk

# Start Appium
appium
  1. Run Appium Test
cd appium-tests
python3 login_test.py

3. Running Espresso Tests

  1. Due to espresso being built into android Studio, you only need to access test file found in src/androidTest/java/com.example.android_testing/espressotest.kt or select loginScreentest and run found at the top of the program.
  2. for devices make sure to select a device running android 13.0 due to espresso compilation errors with never versions not yet configuired

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages