Git Product home page Git Product logo

android-demo-app's Introduction

Android-Demo-App

Initial Setup:

- 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 java-version and 18

- 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.

Framework Explanation :

  1. /src/main/java/base : Contains classes which define the appium start and close related functions with the caps and initializations.
  2. /src/main/java/logger: contain class to log the execution of android appium.
  3. /src/main/java/pages: all the pages related to the app are mentioned here with there locators and functions.
  4. /src/main/java/reporters: having report related classes and methods to generate the extent report after execution.
  5. /src/main/java/utils: contains files having functions like common functions, data reader, appium service builders, utils.
  6. /src/main/resources/Apps: it has the .apk file that we need to use for the execution.
  7. /src/main/resources/Testdata: contains testdata file TestData.xslx to read the data from the excel.
  8. /src/test/java/tests : All the tests files are declare here and also we call the pages methods here to complete the execution.

Issue while import project into Intellij IDE

  • Incase if you are cloning it on Intellij IDE, you might issues related to testng library like :

Screenshot 39

  • 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.

Screenshot 40

  • 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.

Screenshot 41

  • Now try again by running the testng.xml file.

android-demo-app's People

Contributors

yadsandy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.