Skip to content

Latest commit

Β 

History

History
90 lines (63 loc) Β· 2.58 KB

File metadata and controls

90 lines (63 loc) Β· 2.58 KB

Mobile Application With TestNG including Extent Report

Java Gradle TestNG Appium License

A robust mobile automation framework for Android applications using Appium, TestNG, and ExtentReports.


πŸš€ Framework Highlights

  • AndroidDriver initialization using Appium and UiAutomator2
  • Reusable utilities for:
    • Scrolling and gestures
    • Capturing screenshots
    • Base64 screenshot encoding
  • TestNG integration for structured test management and parallel execution
  • ExtentReports integration for professional HTML reporting with logs and screenshots
  • Automatic teardown and device unlock after test execution

πŸ›  Technology Stack

  • Java 17
  • Gradle for build and dependency management
  • Appium 2.x
  • TestNG
  • Selenium / Appium Java Client
  • ExtentReports

πŸ“Setup Instructions

  1. Clone the repository: git clone https://github.com/mookto/Mobile-Application-With-TestNG-including-Extent-Report.git

  2. Install dependencies and build the project: gradle clean build

  3. Start Appium Server:

  4. Connect your device: adb devices

  5. Update device and app capabilities in Setup.java:

    • deviceName & udid
    • platformVersion
    • appPackage & appActivity

▢️ Running Tests

  • Run all tests via Gradle: gradle clean test

  • Run a specific TestNG suite: gradle test -DtestngSuiteFile=testng.xml

  • Run individual tests from IDE (IntelliJ/Eclipse)


πŸ“Š Reports & Screenshots =============================

  • ExtentReports generate detailed HTML reports including logs, screenshots, and pass/fail status.
  • Screenshots stored in: src/test/resources/screenshots/
  • Failed tests automatically capture screenshots in Base64 format for embedding in reports.

🀝 Contributing =============================

  • Fork the repository
  • Create a feature/bugfix branch
  • Commit your changes with descriptive messages
  • Submit a Pull Request for review

πŸ“„ License =============================

This project is licensed under the MIT License – see the LICENSE file for details.

Author: Md. Mahedi Hasan Project Status: Active & Maintained