burakkaygusuz / appium-parallel-test-execution

Mobile automation testing parallel using Appium 2.0 and Selenium Grid 4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Appium Parallel Test Execution

Appium TestNG

Demo project that demonstrates how to test mobile devices in parallel using Appium 2.0 and TestNG.

Prerequisites

Make sure you have installed all the following prerequisites on your development machine:

OS JDK Maven Node.js Android Studio
Windows scoop install java/openjdk21 scoop install maven winget install --id OpenJS.NodeJS.LTS winget install -e --id Google.AndroidStudio
macOS brew install openjdk brew install maven brew install node@20 brew install --cask android-studio
  • Install the appium server with a driver via npm:
npm install --global appium --drivers=uiautomator2

Executing Tests

Capability Sets

  • Emulator 1
{
  "platformName": "android",
  "appium:platformVersion": "14",
  "appium:automationName": "UIAutomator2",
  "appium:udid": "emulator-5554",
  "appium:systemPort": "8101"
}
  • Emulator 2
{
  "platformName": "android",
  "appium:platformVersion": "13",
  "appium:automationName": "UIAutomator2",
  "appium:udid": "emulator-5556",
  "appium:systemPort": "8102"
}
  • Clone the repository.
git clone git@github.com:burakkaygusuz/appium-parallel-test-execution.git
  • Start the appium servers using the related config files, respectively.
appium server --config .\src\test\resources\servers\appium_1.yml

appium server --config .\src\test\resources\servers\appium_2.yml
  • Execute the yml file to install the Grid.
docker-compose -f docker-compose.yml up
  • Run the test.
mvn clean test

About

Mobile automation testing parallel using Appium 2.0 and Selenium Grid 4

License:Apache License 2.0


Languages

Language:Java 100.0%