We welcome contributions to enhance the Automation Testing Framework. If you have additional test cases to add or any valuable suggestions, feel free to contribute.
Any suggestion/ tips/ tricks are welcome, I will be very grateful to learn from you. 😊🎓
This repository contains an automation testing framework built from scratch for learning purposes. The framework is designed to automate tests for a dummy website, Practice Automation Testing, which is freely available for automation practice.
- Test Automation Framework: A custom-built automation testing framework.
- Test Cases for Dummy Website: Automated test cases for the Practice Automation Testing website.
- Support for Multiple Browsers: The framework supports running tests on multiple browsers, enhancing cross-browser compatibility testing.
- Programming Language: Java.
- Testing Framework: Selenium.
- Build Tool: Maven.
- Reporting Tool: Allure.
- allure cli.
-
Clone the repository:
git clone https://github.com/Vivekkr0311/SeleniumAutomationJava.git
-
Create a New Branch:
-
Fork the repository.
-
Create a new branch for your changes:
git checkout -b your-branch-name
-
-
Add New Test Cases:
- Feel free to add more test cases to enhance the coverage.
- Implement your automation logic and ensure the new tests pass successfully.
-
Create a Pull Request (PR):
- Push your changes to your forked repository.
- Create a Pull Request from your branch to the main repository.
-
Review and Merge:
- We will review your PR and provide feedback if needed.
- Once approved, your changes will be merged into the main branch.
- Navigate to the regression.xml file:
Open a terminal or command prompt.
Change the directory to where your project is located.
Locate the regression.xml file in your project. - Run the Regression Tests:
Execute the regression tests by running the regression.xml file.
You can use your preferred test runner or the command-line interface to run the XML file.
- Navigate to the Allure Reports Directory:
Open a terminal or command prompt.
Change the directory to your project. - Run the Allure Serve Command:
Execute the following command:
$ allure serve /allure-reports
This command starts a server on your local IP, serving the Allure report. or just go tosrc/main/java/com/Vivek/Utils/AllureReportGenerator.java
and execute it. Make sure you have allure cli installed in your system.
- Open a web browser and go to the provided local IP address.
- You should see the generated Allure report with detailed information about your test runs
https://hub.docker.com/layers/vivekkr0311/myjenkins_server_repo/latest/images/sha256-28b9409e2323f4cadc5da6c047a4edd46055bfc06277a0ff29c688049d3765ae?context=repo
Use this command to get image in your machine docker pull vivekkr0311/myjenkins_server_repo