- Install and configure JDK
- Install and configure Maven
- Install SDK and generate an Emulator for the execution with android v12
- Setup your IDE (Preferably Eclipse IDE)
- Import cloned repository as project
- Add TestNg library to the project
- Update the pom.xml file with your system version in maven-compiler-plugin for
- Simply run `mvn clean install` command or testng.xml file to run your test cases
- Check the reports in the target folder > ExtentReports folder for the execution results and logs.
- /src/main/java/base : Contains classes which define the appium start and close related functions with the caps and initializations.
- /src/main/java/logger: contain class to log the execution of android appium.
- /src/main/java/pages: all the pages related to the app are mentioned here with there locators and functions.
- /src/main/java/reporters: having report related classes and methods to generate the extent report after execution.
- /src/main/java/utils: contains files having functions like common functions, data reader, appium service builders, utils.
- /src/main/resources/Apps: it has the .apk file that we need to use for the execution.
- /src/main/resources/Testdata: contains testdata file
TestData.xslx
to read the data from the excel. - /src/test/java/tests : All the tests files are declare here and also we call the pages methods here to complete the execution.
- Incase if you are cloning it on Intellij IDE, you might issues related to testng library like :
- In such case you just need to right click on your project > click ok open module structure > Click libraries from project settings > click on + icon > slect 'from maven' option > search org.testng > select the org.testng version which is already there in your machine> select annotation chekbox as well and click on ok > click apply and click ok.
- Next you need to do is to click on File > Invalidate caches > select clear file system cache and clear VCS logs options > Invalidate and restart.
- Now try again by running the testng.xml file.