Author - Chirag Rathava
This repository is a comprehensive guide to learning Selenium with Java, covering essential concepts and integrating various tools such as TestNG, Maven, Allure Report, Jenkins, and more. This guide provides practical examples to help you master Selenium automation testing.
Technology | Description |
---|---|
Java | Programming language for Selenium automation |
TestNG | Test framework for organizing and executing test cases |
Maven | Build automation tool to manage dependencies (pom.xml) |
Allure Report | Reporting framework for detailed test execution reports |
Jenkins | CI/CD tool to automate test execution |
GIT | Version control system to manage codebase |
log4j | Logging framework for better debugging (log4j.xml) |
Selenium | Browser automation framework |
Github | Code hosting platform for collaboration |
DDT (Apache POI) | Data-Driven Testing with Excel (Apache POI) |
Test Data | External test data storage (TestData.xlsx) |
- Introduction to Selenium
- Setting up Selenium WebDriver
- Locators (ID, Name, XPath, CSS Selector, etc.)
- Handling Web Elements (Click, SendKeys, GetText)
- Browser Navigation (Back, Forward, Refresh)
- Handling Dropdowns and Alerts
- Handling Frames and Windows
- Mouse and Keyboard Actions (Actions Class)
- Taking Screenshots in Selenium
- Handling AJAX Elements
- Implicit and Explicit Waits
- TestNG Installation and Setup
- Writing Test Cases using TestNG
- TestNG Annotations (@Test, @BeforeClass, @AfterClass, etc.)
- Assertions in TestNG
- Data-Driven Testing with TestNG (DataProvider)
- Parallel Execution with TestNG.xml
- Setting up Maven Project
- Adding Selenium and TestNG Dependencies
- Running Tests with Maven Commands
- Installing and Configuring Allure
- Generating Reports with Allure
- Analyzing Test Results with Allure Reports
- Installing and Setting up Jenkins
- Running Selenium Tests from Jenkins
- Integrating Allure Reports in Jenkins
- Setting up GIT
- Pushing Selenium Project to GitHub
- Version Control Best Practices
- Setting up Log4j Configuration (log4j.xml)
- Logging Framework Implementation
- Reading Data from Excel Files (TestData.xlsx)
- Using Excel Data in Selenium Test Cases
- Creating and Managing Test Data
- Using External Files for Test Data
Before getting started, ensure you have the following installed:
- Java (JDK 8 or higher)
- Eclipse/IntelliJ IDE
- Maven
- Git
- Jenkins
- Clone the repository:
git clone https://github.com/ChiragRathava29/Learning_Selenium.git
- Open the project in Eclipse/IntelliJ
- Install dependencies using Maven:
mvn clean install
- Run the test cases:
mvn test
- Generate Allure Report:
mvn allure:serve
- View test results in Jenkins (if configured)
For queries or discussions, reach out via: