Skip to content

mookto/Mobile-Application-With-TestNG-including-Extent-Report

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors