Skip to content

Mobile automation testing parallel using Appium 2.0 and Selenium Grid 4

License

Notifications You must be signed in to change notification settings

burakkaygusuz/appium-parallel-test-execution

Repository files navigation

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 [email protected]: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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages