An open API service indexing awesome lists of open source software.

https://github.com/sadabnepal/appiumjavatestngframework

Mobile Test framework using Appium and Java with TestNG framework
https://github.com/sadabnepal/appiumjavatestngframework

appium appium-framework java maven mobile-testing testng-framework

Last synced: about 2 months ago
JSON representation

Mobile Test framework using Appium and Java with TestNG framework

Awesome Lists containing this project

README

        

Mobile Test Automation Framework | Appium | Java

### Requirements:
[![Java](https://img.shields.io/badge/-JDK-%23007396?logo=java&logoColor=black&)](https://www.oracle.com/java/technologies/downloads/)
[![Maven](https://img.shields.io/badge/-Apache%20Maven-black?logo=Apache%20Maven&logoColor=C71A36)](https://maven.apache.org/download.cgi)
[![NodeJs](https://img.shields.io/badge/-NodeJS-%23339933?logo=npm)](https://nodejs.org/en/download/)
[![Appium-Inspector](https://img.shields.io/badge/-Appium%20Inspector-662d91?logo=appium&logoColor=black)](https://github.com/appium/appium-inspector/releases)
[![AppiumDriver](https://img.shields.io/badge/-Appium%20Driver-662d91?logo=Appium&logoColor=white)](https://appiumpro.com/editions/122-installing-appium-20-and-the-driver-and-plugins-cli)
[![AndroidStudio](https://img.shields.io/badge/-Android%20Studio-3DDC84?logo=android-studio&logoColor=white)](https://developer.android.com/studio)

### Getting Started:

#### Clone repository:
```bash
git clone https://github.com/sadabnepal/AppiumJavaTestNGFramework.git
Navigate to `AppiumJavaTestNGFramework`
```
#### Setup/Create virtual device on Android studio:
```
Android : Pixel 3 [version 11]
```
#### Install
```
npm i -g appium
npm i -g appium-doctor
```
#### Verify appium drivers:
```
appium driver list
```
Note: uiautomator2 should be installed for android and xcuitest for ios. [Click here to check sample terminal log](sample/appium_driver_list.png)

If drivers are not installed then run below command as required:
```
appium driver install uiautomator2 [for android]
appium driver install xcuitest [for ios]
```

#### Verify all pre-requisite for android:
```
npm run android-doctor
```
Note: all options should be green checked as shown in below image to start. [Click here to check sample terminal log](sample/android_config.png)

#### Update properties file [ only for cloud ]
File path: src/test/resources/configs/config.properties
```
bs_user=
bs_key=
bs_deviceName=
bs_platformVersion=
bs_app=
```

### Run Tests
```
Run 'start-appium.bat' file to start appium on port 4723
Right click on testng.xml file --> click on 'Run testng.xml'
```

### Sample Report
![sample_report.png](sample/sample_report.png)