{"id":19244928,"url":"https://github.com/andreasneuber/java-cucumber-selenium-example","last_synced_at":"2026-05-06T04:32:01.087Z","repository":{"id":183059827,"uuid":"541108858","full_name":"andreasneuber/java-cucumber-selenium-example","owner":"andreasneuber","description":"Sample implementation of Java Cucumber acceptance tests with Selenium","archived":false,"fork":false,"pushed_at":"2025-01-03T20:25:30.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T15:15:15.412Z","etag":null,"topics":["cucumber","java","selenium-webdriver"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andreasneuber.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2022-09-25T08:47:32.000Z","updated_at":"2025-01-03T20:25:34.000Z","dependencies_parsed_at":"2024-11-09T17:29:51.146Z","dependency_job_id":"3b1e6ac0-8404-42c7-b533-38e15aa3987e","html_url":"https://github.com/andreasneuber/java-cucumber-selenium-example","commit_stats":null,"previous_names":["andreasneuber/java-cucumber-selenium-framework","andreasneuber/java-cucumber-selenium-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andreasneuber/java-cucumber-selenium-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasneuber%2Fjava-cucumber-selenium-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasneuber%2Fjava-cucumber-selenium-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasneuber%2Fjava-cucumber-selenium-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasneuber%2Fjava-cucumber-selenium-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreasneuber","download_url":"https://codeload.github.com/andreasneuber/java-cucumber-selenium-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasneuber%2Fjava-cucumber-selenium-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32678591,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cucumber","java","selenium-webdriver"],"created_at":"2024-11-09T17:25:50.056Z","updated_at":"2026-05-06T04:32:01.071Z","avatar_url":"https://github.com/andreasneuber.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java Cucumber Selenium Framework\n\n## Purpose\n\nIllustrate how to implement classic BDD features:\n\n- Variables in steps - [link](https://github.com/andreasneuber/java-cucumber-selenium-framework/blob/master/src/test/resources/features/ConvertCelsius.feature)\n- Horizontal data tables - [link](https://github.com/andreasneuber/java-cucumber-selenium-framework/blob/master/src/test/resources/features/Login.feature)\n- Vertical data tables - [link](https://github.com/andreasneuber/java-cucumber-selenium-framework/blob/master/src/test/resources/features/ProvideYourDetails.feature)\n- Scenarios with Examples - [link](https://github.com/andreasneuber/java-cucumber-selenium-framework/blob/master/src/test/resources/features/Creditcard.feature)\n- Backgrounds - [link](https://github.com/andreasneuber/java-cucumber-selenium-framework/blob/master/src/test/resources/features/AdminPrivileges.feature)\n- Setup hook\n- Teardown hook\n- Tags\n- Reports\n- Screenshots\n- Parallel execution\n- Page objects\n\n## IDE used here in this docu\n\nIntelliJ IDEA Community Edition\n\n## Application under test\n\nThe tests here were written to\nfit [https://github.com/andreasneuber/automatic-test-sample-site](https://github.com/andreasneuber/automatic-test-sample-site)\n\nREADME in that project explains how to start the sample site.\n\n## Setup Java\n- Add Java SDK as outlined here: https://www.jetbrains.com/help/idea/sdk.html#supported-sdks\n- Add system variable `JAVA_HOME` with path to SDK\n- Reboot machine\n\n## Setup Maven\n\nSetup Maven, otherwise `mvn` commands below cannot be executed.\nSee [https://maven.apache.org/install.html](https://maven.apache.org/install.html)\n\nSteps for Windows well explained here: https://phoenixnap.com/kb/install-maven-windows (don't forget to reboot).\nVerify with `mvn --version`\n\n## How to execute the tests\n\n**Way 1:**\nRun this command in your terminal (Mac/Linux/UNIX) or CMD (Windows):\n\n```\nmvn test\n```\n\nor\n\n```\nmvn clean verify\n```\n\nor with providing options (which also override what is set in the TestRunner file)\n\n```\nmvn test -D\"cucumber.filter.tags=@Login\"\n```\n\nAfter this you will see 2 new folders - target and test-output.\nDirectory test-output contains Spark test report.\n\n**Way 2:**\nThrough IntelliJ UI. Right-click on project name, then choose \"Run \u003e (NG) All Tests\"\n\n\n## Update Maven packages\n\n`mvn clean install -U`\n\n## Principles for accomplishing good design\n\n1) No driver invocation in step definitions\n2) No instantiation of page objects and generic utils in step definitions (so no code like `xyz = new Class()` )\n3) Follow official Java naming conventions - https://www.thoughtco.com/using-java-naming-conventions-2034199\n\n## FAQ\n\n### `mvn test` fails `java.lang.IllegalStateException: Unable to load cache item` - how to debug?\n[Linux]\n\nUpdate Maven to version 3.9.4\n- https://phoenixnap.com/kb/install-maven-on-ubuntu , do \"Step 2: Download and Install Maven\" (only this step, and use version 3.9.4 instead)\n- Add below to .bashrc or .zshrc file\n```\nexport MAVEN_HOME=\"/opt/maven\"\nexport PATH=$MAVEN_HOME/bin:$PATH\n```\n\n### `I'd like to implement Selenium Grid running in Docker container - where to start?`\n\nGood starting point is to look at file `src\\test\\java\\utils\\TestBase.java` and \nthis [GitHub repo](https://github.com/atulchavan10000/selenium-grid-docker-compose).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreasneuber%2Fjava-cucumber-selenium-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreasneuber%2Fjava-cucumber-selenium-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreasneuber%2Fjava-cucumber-selenium-example/lists"}