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
- Host: GitHub
- URL: https://github.com/sadabnepal/appiumjavatestngframework
- Owner: sadabnepal
- Created: 2022-01-28T16:41:57.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-06T05:36:17.000Z (about 3 years ago)
- Last Synced: 2025-01-21T10:50:53.912Z (3 months ago)
- Topics: appium, appium-framework, java, maven, mobile-testing, testng-framework
- Language: Java
- Homepage:
- Size: 26.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Mobile Test Automation Framework | Appium | Java
### Requirements:
[](https://www.oracle.com/java/technologies/downloads/)
[](https://maven.apache.org/download.cgi)
[](https://nodejs.org/en/download/)
[](https://github.com/appium/appium-inspector/releases)
[](https://appiumpro.com/editions/122-installing-appium-20-and-the-driver-and-plugins-cli)
[](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
