项目作者: Ashishjublsdet

项目描述 :
Appium-PageObject-Java-Mobile-Automation-Framework
高级语言: HTML
项目地址: git://github.com/Ashishjublsdet/Appium-PageObject-Mobile-Automation.git


Appium-PageObject-Mobile-Automation

Appium-PageObject-Java-Mobile-Automation-Framework

1. Clone the application

  1. git clone

2. Import project in any Editor(Eclispe/Intellij)

3. Run appium desktop on default port

4. Run testCase.xml

Project Structure

Package & Classes Details

actionHelper : In this package common Android functions is present
  1. AndroidHelperMethods : All the common Android functions is present in this class like click(),Scroll(),Enter() etc.
DriverManager : In this package We are handling drivers initialization.
  1. DriverManagerType : We have create an enum for Driver types and its definations
  1. DriverManager : In this class we are creating driver object on the Basis of DriverType like DriverManagerType.Android,DriverManagerType.IOS
listners : In this package we are using TestNg ITestlistner for creating report on the basis of Test result
  1. TestListner :In order to listen to test events such as passed, failed, skipped, etc. we have TestListener class which implements ITestListener.
  1. **onFinish:** This method is invoked after all tests methods gets executed.
  2. **onTestStart:** This method is invoked before any test methods are invoked. This can be used to indicate that the particular test method has been started.
  3. **onTestSkipped:** This method is invoked when each test method is skipped. This can be used to indicate that the particular test method has been skipped.
  4. **onTestSuccess:** This method is invoked when any test method succeeds. This can be used to indicate that the particular test method has successfully finished its execution.
  5. **onTestFailure:** This method is invoked when any test method fails. This can be used to indicate that the particular test method has failed. You can create an event for taking a screenshot which will show where the test has been failed.
reportManager : In this package we are using Extent report for reporting testCases
  1. ExtentManager :In this class we are using Extent api and initialization of Extent object
Pages : In this package all the pages of application is present.
  1. BasePageClass :In this class we have initialize all the page classes using PagePafctory conecepts(PageFactory.initElements)
  1. HomePage,Login Page :In this class we have all the locators and associated methods.
TestCases : In this package all the TestCases is present.

```bash
BaseTest :In this class we have initialize drivers and all the pages.