{"id":29979655,"url":"https://github.com/codingnaveen46/selenium-bdd-demo","last_synced_at":"2025-08-04T13:33:21.477Z","repository":{"id":300340014,"uuid":"1005910384","full_name":"Codingnaveen46/selenium-bdd-demo","owner":"Codingnaveen46","description":"this is the java_cucumber_framework_integration","archived":false,"fork":false,"pushed_at":"2025-06-21T05:04:48.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-21T06:19:05.414Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Codingnaveen46.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-21T04:22:58.000Z","updated_at":"2025-06-21T05:13:13.000Z","dependencies_parsed_at":"2025-06-21T06:19:08.314Z","dependency_job_id":"5a292db1-83be-49fb-bc5f-2c2ef71a95d4","html_url":"https://github.com/Codingnaveen46/selenium-bdd-demo","commit_stats":null,"previous_names":["codingnaveen46/selenium-bdd-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Codingnaveen46/selenium-bdd-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codingnaveen46%2Fselenium-bdd-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codingnaveen46%2Fselenium-bdd-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codingnaveen46%2Fselenium-bdd-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codingnaveen46%2Fselenium-bdd-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Codingnaveen46","download_url":"https://codeload.github.com/Codingnaveen46/selenium-bdd-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codingnaveen46%2Fselenium-bdd-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268701774,"owners_count":24292996,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-04T02:00:09.867Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-04T13:32:40.479Z","updated_at":"2025-08-04T13:33:21.449Z","avatar_url":"https://github.com/Codingnaveen46.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Selenium BDD Demo\r\n\r\n## Overview\r\n\r\nThis repository demonstrates how to use Selenium WebDriver with Cucumber for Behavior Driven Development (BDD) testing in Java. The project provides automated browser-based test scenarios using Gherkin syntax, with all test execution and result reporting managed via Maven and a shell script that also integrates with Bugasura for defect tracking.\r\n\r\n## Features\r\n\r\n- Automated browser testing using Selenium WebDriver (Chrome).\r\n- BDD-style scenarios written in Gherkin and executed via Cucumber.\r\n- Step definitions implemented in Java.\r\n- JUnit runner for executing test suites.\r\n- Test result reporting with integration to Bugasura (for defect/result tracking).\r\n- Example feature: Google Search (different search queries, pass/fail demonstration).\r\n\r\n## Project Structure\r\n\r\n```\r\nsrc/\r\n  test/\r\n    java/\r\n      hooks/         # Setup and teardown hooks for Selenium WebDriver\r\n      runner/        # Cucumber JUnit test runner\r\n      scenarios/     # Step definitions for feature steps\r\n    resources/\r\n      features/      # Gherkin feature files (BDD scenarios)\r\nrun.sh               # Shell script to run tests and upload results\r\npom.xml              # Maven project file with dependencies\r\n```\r\n\r\n## Getting Started\r\n\r\n### Prerequisites\r\n\r\n- Java JDK 8 or higher\r\n- Maven\r\n- Google Chrome browser installed\r\n- ChromeDriver available in your system PATH\r\n- (Optional) Bugasura account for result uploads\r\n\r\n### Installation \u0026 Running Tests\r\n\r\n1. Clone the repository:\r\n   ```sh\r\n   git clone https://github.com/Codingnaveen46/selenium-bdd-demo.git\r\n   cd selenium-bdd-demo\r\n   ```\r\n\r\n2. To run tests:\r\n   ```sh\r\n   mvn clean test\r\n   ```\r\n   Or, use the provided shell script to also upload results to Bugasura:\r\n   ```sh\r\n   bash run.sh\r\n   ```\r\n\r\n   \u003e **Note:** Update the `run.sh` script with your own Bugasura API key and project details if you want result uploads.\r\n\r\n### Example Feature\r\n\r\n```gherkin\r\nFeature: Google Search\r\n\r\n  Scenario: Search for Selenium\r\n    Given I open Google\r\n    When I search for \"Selenium\"\r\n    Then the title should contain \"Selenium\"\r\n\r\n  Scenario: Search for Java\r\n    Given I open Google\r\n    When I search for \"Java\"\r\n    Then the title should contain \"Java\"\r\n```\r\n\r\n## Key Files\r\n\r\n- `src/test/resources/features/GoogleSearch.feature`: Example BDD scenarios.\r\n- `src/test/java/scenarios/GoogleSteps.java`: Step definitions using Selenium WebDriver.\r\n- `src/test/java/hooks/Hooks.java`: Setup and teardown of WebDriver for each scenario.\r\n- `src/test/java/runner/TestRunner.java`: JUnit runner with Cucumber integration.\r\n- `run.sh`: Script to run tests and upload results to Bugasura.\r\n\r\n## Continuous Integration\r\n\r\nYou can integrate this project into CI pipelines by invoking Maven or the `run.sh` script.\r\n\r\n## Contribution\r\n\r\nFeel free to fork, experiment, and submit pull requests for enhancements or new scenarios.\r\n\r\n## License\r\n\r\nThis project is licensed under the MIT License.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingnaveen46%2Fselenium-bdd-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodingnaveen46%2Fselenium-bdd-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingnaveen46%2Fselenium-bdd-demo/lists"}