Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asif-shahriar/appium-automation
Android application (Google Calculator) automation project using Appium and TestNG
https://github.com/asif-shahriar/appium-automation
android-studio appium gradle java sdk testng
Last synced: about 1 month ago
JSON representation
Android application (Google Calculator) automation project using Appium and TestNG
- Host: GitHub
- URL: https://github.com/asif-shahriar/appium-automation
- Owner: asif-shahriar
- Created: 2022-02-10T07:16:40.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-27T06:36:14.000Z (almost 3 years ago)
- Last Synced: 2023-10-23T08:24:12.441Z (about 1 year ago)
- Topics: android-studio, appium, gradle, java, sdk, testng
- Language: Java
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Appium-Automation
## Prerequisites
* Install Android Studio latest version
* Install Appium 1.17.1
* Install jdk 8 or any LTS version
* Configure **ANDROID_HOME**, **JAVA_HOME** and **GRADLE_HOME**
* Stable internet connection## How to run this project
### Appium
* Turn on **Developer Options** on your android phone
* Connect your android phone with USB cable
* Open cmd and give ```adb devices``` command to get uuid
* Open Appium and start server. Then open inspector tool
* In the **JSON Representation** section, paste the following desired capabilities after adding your uuid and version```
{
"deviceName": "My Android",
"platformName": "Android",
"uuid": Enter your uuid here,
"platformVersion": Enter your android version,
"appPackage": "com.google.android.calculator",
"appActivity": "com.android.calculator2.Calculator"
}
```
* Click **Start Server**
### Java Client
* Clone the repo
* Enter your uuid in the [AppLaunch](https://github.com/asif-shahriar/Appium-Automation/blob/main/src/test/java/AppLaunch.java "AppLaunch.java") class
* Open cmd in the root folder
* Give following command
```
gradle clean test
```## Screenshot
![Screenshot_1](https://user-images.githubusercontent.com/71173675/153359911-2458e459-35ca-4496-85af-33f7682d0912.png)