Mobile Test Automation Using Appium Python | Devstringx

Back to Blog
Mobile Test Automation

Mobile Test Automation Using Appium Python | Devstringx

Appium Setup In Pycharm

With the following steps, you can easily step-by-step setup Appium in Pycharm

Step 1: Install Python

  1. Go to the link https://www.python.org/downloads/
  2. Download the latest version for windows
  3. Add Python path in a user variable

Step 2: Install Pycharm Community Edition

  1. Go to the link “https://www.jetbrains.com/pycharm/download/#section=windows
  2. Download the community edition for windows

Step 3: Install Node JS

  1. Go to the link “https://nodejs.org/en/
  2. Download the most recommended user version for windows

Step 4: Install Appium Desktop App

  1. Go to the link “https://github.com/appium/appium-desktop/releases/tag/v1.21.0
  2. Download the latest version for windows

Step 5: Install Appium through Command Line

  1. Open Command Line and Type npm install -g appium
  2. Check version npm -v

Step 6: Install Android Studio

  1. Go to the link “https://developer.android.com/studio
  2. Download the latest version for windows
  3. Configure System variables

Step 7: Create a Virtual Device

  1. Select Pixel device from the phone
  2. Download Android version 11
  3. Launch the emulator

Read Also:- WinAppDriver – Free Test Automation Tool

Appium Test Creation

  1. Create Project ‘AppiumProject’ in Pycharm
  2. Download the Appium package by pip install Appium-Python-Client
  3. Create Python File as FlipkartTest
  4. Write the sample code to launch the Flipkart app from Appium import web driver
desired_caps = {

“deviceName”: “Pixel 3a XL API 29”,

“platform name”: “Android”,

“version”: “10”,

“udid”: “emulator-5554”,

“app”: “D:\\AppiumProject\\app\\demo.apk”

}

driver = web driver.Remote(“http://localhost:4723/wd/hub", desired_caps)

Appium Test Execution

  1. Launch the emulator
  2. Start Appium Server
  3. Run your FlipkartTest.py file

Share this post

Back to Blog

Hire A Resource