The project explores a demonstration of Android testing tools and frameworks, focusing on Espresso and Appium.
Android Studio
JDK 11 or higher
Node.js 18+ and npm
Python 3.10+
git clone https://github.com/yourusername/Android_Testing.git
cd Android_Testing- Download and install Android Studio
- Open Android Studio and install Android SDK
- Set environment variables
Add these to
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
~/.zshsrcVerify installationecho '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
adb --version echo $ANDROID_HOME
- Start Appim Server
export ANDROID_HOME=$HOME/Library/Android/sdk
export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk
# Start Appium
appium- Run Appium Test
cd appium-tests
python3 login_test.py- 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.
- for devices make sure to select a device running android 13.0 due to espresso compilation errors with never versions not yet configuired
