Language : Java (jdk version : 1.8)
Automation Tool : Appium
Build Repository: Maven
Testing Framewotk: TestNG
Framework Model: POM
Reporting: Extent Reports
This is an Appium TestNG Hybrid Framework based on Page Object Pattern. I am using Selendroid (http://selendroid.io/) test apk as my Test App.
java jdk 8
eclipse IDE
Git Bash
Microsoft .Net Framework 4.5.1 or above
Node
1- Install Appium through node command prompt
>npm install -g appium
2- To start appium from Command Prompt
>appium
3- To stop appium from running from Command prompt
>CTRL+C
>Y
4- To uninstall Appium from system
>npm uninstall -g appium
If Android studio is already installed, Android SDK Manager comes bundled with it
Open Android Studio, Go to tools and select SDK Manager, Change Android SDK location to C:\android_sdk folder
- Android SDK Build Tools
- Android SDK Command line Tools
- Android Emulator
- Android SDK Platform tools
- Intel x86 Emulator Accelator (HAXM installer)
- Build Tools
So in this case we have to download previous version of SDK Manager with SDK Tools
- Download SDK Manager
google this -> installer_r24.4.1-windows.exe or open following URL https://dl.google.com/android/installer_r24.4.1-windows.exe?utm_source=androiddevtools.cn&utm_medium=website
- Install the file ( in a separate folder not in C:\android_sdk folder)
- Now SDK Manager window will open, Check Only Build Tools and download the file, uncheck everything else except Build Tools
- Copy the Tools folder and paste it inside C:\android_sdk folder
- Now Build Tools will show in SDK Manager of Android Studio (Update it)
- Now uninstall Sdk Build tools from control panel
Create ANDROID_HOME -> C:\android_sdk
Inside Path add following location
- C:\android_sdk\tools
- C:\android_sdk\tools\bin
- C:\android_sdk\build-tools
- C:\android_sdk\platform-tools
- C:\android_sdk\cmdline-tools\latest\bin
- C:\android_sdk\cmdline-tools\latest\lib
- C:\android_sdk\emulator
- C:\android_sdk
-
Connect a device through USB or open an emulator device
Open Terminal and type
This should show the connected device ID
- Open Terminal and type
This is used To open UiAutomatorViewer to spy/ locate android UI elements
If this does not work, go to this path and run the batch file
C:\androidSdk(local android sdk folder)\tools\bin\uiautomatorviewer.bat
1- create a folder with any name and right click inside it and select Git bash here
>git init
>git clone <repo_url>
- Import the folder into Eclipse
- Install TestNg for version 6.14.3 https://dl.bintray.com/testng-team/testng-eclipse-release/updatesites/6.14.3.201902250526/
- Right click on the project and Select Convert to TestNG ###4) Go to eclipse-> windows -preference - and turn off automatically find new update
C:\Users\userName(your local system name)\AppData\Roaming\npm\node_modules\appium\build\lib
C:\Program Files (x86)\nodejs
1- eclipse-> window -> showview -> other -> git -> git repositories -> open
2- Select -> add an existing local git repository to the view
3- Click on the browse button and navigate to the directory that contains the project source code
4- Click the Search button, Click OK
5- Right-click on the project in the Package Explorer
6- Go to Team
Open the Test App in your Test Device, open Terminal and check the device is connected
[ Here List of devices attached will show, now check app activity and app package name
Example : in.android.test/in.android.test.HomeActivity
appPackage/appActivity
1.Need to add Tess4J dependency to maven project.
2.Need to add libtesseract304.dll to the System Variables.
3.Need to add liblept172.dll to the System Variables.
4.create one folder tessdata within your maven project.
This tessdata will contain “eng.traineddata” for reading english text.
https://www.genuinecoder.com/how-to-fix-permission-denied-publickey-issue-in-gitlab/