Skip to content

kgold2018/LunaJavaSeleniumTestNGAllure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LunaJavaSeleniumTestNGAllure

Java CI with Maven

<title>LunaJavaSeleniumTestNGAllure</title>

LunaJavaSeleniumTestNGAllure

Project Description

This project is a comprehensive test automation suite for the LUMA application, utilizing Java with Selenium WebDriver, TestNG for test management, and Allure for reporting. The suite is designed to provide robust and efficient end-to-end testing capabilities, ensuring the quality and reliability of the LUMA application.

Features

  • Java: The core programming language used for writing test scripts.
  • Selenium WebDriver: Used for browser automation, enabling interaction with the LUMA application's web elements.
  • TestNG: Provides advanced test configuration, management, and execution capabilities.
  • Allure: Integrated for generating detailed and visually appealing test reports.
  • Maven: Used for project build and dependency management.

Getting Started

Prerequisites

  • Java Development Kit (JDK): Version 8 or higher.
  • Maven: For managing project dependencies and build lifecycle.
  • Selenium WebDriver: Compatible version for your browser.
  • TestNG: Testing framework.
  • Allure: For generating test reports.

Installation

  1. Clone the Repository
    git clone https://github.com/kgold2018/LunaJavaSeleniumTestNGAllure.git
    cd LunaJavaSeleniumTestNGAllure
            
  2. Install Dependencies
    mvn clean install
            

Configuration

  1. Update the config.properties file with the necessary configuration details, such as browser type, base URL, etc.
  2. Ensure the correct WebDriver is set up in the drivers folder (e.g., chromedriver for Chrome).
  • Run Tests
    1. To run tests, use the following Maven command:
      mvn test
              
    2. Generate Allure Report
      allure serve target/allure-results
              

    Project Structure

    
    LunaJavaSeleniumTestNGAllure/
    ├── src/
    │   └── main/
    │   │   └── java/
    │   │   │   └── com/
    │   │   │       └── lumatest/
    │   │   │           └── pages/
    │   │   │          
    │   │   └── resources/
    │   │       └── config.properties
    │   ├── test/
    │   │   ├── java/
    │   │   │   └── com/
    │   │   │       └── lumatest/
    │   │   │           └── base/
    │   │   │           └── data/
    │   │   │           └── test/
                        └── utils/
    

    │ │ └── resources/ ├── drivers/ │ └── chromedriver │ └── geckodriver ├── target/ │ └── allure-results/ ├── .gitignore ├── pom.xml ├── README.md └── testing.xml

    • src/main/java: Contains the Page Object Model code.
    • src/test/java: Contains the test cases.
    • pom.xml: Maven configuration file.

    Usage

    • Writing Tests: Create your test classes in the src/test/java/com/yourpackage/ directory.
    • Running Tests: Use TestNG annotations to configure and run your tests.
    • Viewing Reports: After running tests, generate and view reports using Allure commands.

    License

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

    Contact

    For any questions or issues, contact [email protected]

  • About

    No description, website, or topics provided.

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published

    Languages