https://github.com/vrun545/cucumber_bdd
The framework seamlessly integrates with Cucumber, a popular BDD tool, allowing stakeholders to write test scenarios in a human-readable format using Gherkin syntax. This fosters collaboration and ensures alignment between business requirements and test automation.
https://github.com/vrun545/cucumber_bdd
bdd-framework cucumber gherkin java selenium stepdefinitions webdriver
Last synced: 2 months ago
JSON representation
The framework seamlessly integrates with Cucumber, a popular BDD tool, allowing stakeholders to write test scenarios in a human-readable format using Gherkin syntax. This fosters collaboration and ensures alignment between business requirements and test automation.
- Host: GitHub
- URL: https://github.com/vrun545/cucumber_bdd
- Owner: vrun545
- Created: 2024-05-01T03:31:15.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-05-24T07:36:11.000Z (about 1 year ago)
- Last Synced: 2025-01-26T06:28:06.013Z (4 months ago)
- Topics: bdd-framework, cucumber, gherkin, java, selenium, stepdefinitions, webdriver
- Language: HTML
- Homepage:
- Size: 8.15 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**Cucumber BDD Project with Selenium (Java)**
**Description:**
This Maven project is a robust automation framework that combines Behavior-Driven Development (BDD) principles with Selenium WebDriver in Java to automate testing on the Amazon website. It follows a Page Object Model (POM) architecture and incorporates various features as per the provided assignment specifications.
**Features:**
1. **Maven Project:**
- This project is structured as a Maven project, enabling easy dependency management and build automation.2. **Page Object Model (POM):**
- The framework implements the Page Object Model to maintain separation between test code and page-specific code, enhancing maintainability and reusability.3. **Pages:**
- Three pages have been created representing different sections or functionalities of the Amazon website, such as the homepage, search results page, and product details page.4. **Feature Files:**
- Two feature files have been created, each containing a minimum of two scenarios, to demonstrate the testing of various functionalities of the Amazon website.5. **Parameterization:**
- Parameterization has been implemented to provide flexibility in testing by allowing the same scenario to be executed with different inputs or test data.6. **Regular Expressions:**
- Regular expressions have been used to reuse the same step definition for multiple scenarios, reducing duplication of code and improving maintainability.7. **Coding Guidelines:**
- The framework adheres to proper coding guidelines as per the shared guidelines, ensuring consistency, readability, and maintainability of the codebase.8. **Hooks and Tags:**
- Hooks and tags have been utilized to manage test setup and teardown activities and to organize and selectively execute tests based on tags.9. **Cucumber Reports:**
- Cucumber reports are generated using plugins to provide comprehensive test execution reports, including pass/fail status, test duration, and scenario details. These reports enhance visibility and facilitate analysis of test results.**How to Run Tests:**
1. Clone the project repository.
2. Open the project in your preferred Java IDE.
3. Ensure that the necessary dependencies are resolved by Maven.
4. Run the `TestRunner.java` class as a JUnit test to execute the feature files.
5. View the test results in the console or in the designated test report file.**Contributing:**
Contributions are welcome! If you find any issues or have suggestions for improvements, please create a pull request or raise an issue in the project repository.
**License:**
This project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.
**Acknowledgments:**
- This project was created as part of an assignment for BDD Cucumber testing with Selenium.