{"id":20426911,"url":"https://github.com/ndviet/test-cucumber-framework","last_synced_at":"2026-04-20T07:03:09.495Z","repository":{"id":154504005,"uuid":"606942783","full_name":"NDViet/test-cucumber-framework","owner":"NDViet","description":"A sample MarsAir project with test case is created and executed by using TestNG, Cucumber, Selenium","archived":false,"fork":false,"pushed_at":"2024-06-28T11:28:25.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-05T05:20:08.745Z","etag":null,"topics":["automation","cucumber-java","test-automation","testng-framework"],"latest_commit_sha":null,"homepage":"http://www.ndviet.org/test-cucumber-framework/","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/NDViet.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}},"created_at":"2023-02-27T01:16:12.000Z","updated_at":"2024-07-04T08:11:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"54172991-b2ea-4e14-ac02-f2ad0b47c692","html_url":"https://github.com/NDViet/test-cucumber-framework","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NDViet/test-cucumber-framework","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NDViet%2Ftest-cucumber-framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NDViet%2Ftest-cucumber-framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NDViet%2Ftest-cucumber-framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NDViet%2Ftest-cucumber-framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NDViet","download_url":"https://codeload.github.com/NDViet/test-cucumber-framework/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NDViet%2Ftest-cucumber-framework/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32036803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":["automation","cucumber-java","test-automation","testng-framework"],"created_at":"2024-11-15T07:18:07.801Z","updated_at":"2026-04-20T07:03:09.487Z","avatar_url":"https://github.com/NDViet.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Introduction\n\nTest repository with test case is created and executed in Cucumber Framework.\u003cbr\u003e\n\n## List dependency repositories\n\n1. [test-parent-pom](../../../test-parent-pom)\n2. [test-automation-fwk](../../../test-automation-fwk)\n\n## Source code usage\n\n1. Clone repository \"test-parent-pom\" (**mandatory**)\n\n```shell\ngit clone git@github.com:ndviet/test-parent-pom.git\n```\n\n2. Clone this test repository to the same directory\n\n```shell\ngit clone git@github.com:ndviet/test-cucumber-framework.git\n```\n\n3. Build source code in each repository following the order\n\n- test-parent-pom\n- test-cucumber-framework\n\n4. Run test cases in test repository\n\n```shell\ncd test-cucumber-framework\n```\n\n```shell\nmvn clean verify -DskipTests=false -D\"includes=@SearchFlights\" -D\"selenium.browser.type=chrome\"\n```\n\n## Run UI tests in shared container image + Selenium Grid\n\nUse `ndviet/test-automation-java-common` as test runner container and start Selenium Grid from Docker Compose:\n\n```shell\n./test-cucumber-framework/run-in-container.sh\n```\n\nNo local build of `test-parent-pom` or `test-automation-fwk` is required.\nDependencies are resolved from GitHub Maven repositories.\nIf package access is private, configure GitHub Packages credentials in `~/.m2/settings.xml`.\n\n```xml\n\u003csettings\u003e\n  \u003cservers\u003e\n    \u003cserver\u003e\n      \u003cid\u003egithub\u003c/id\u003e\n      \u003cusername\u003e${env.GITHUB_ACTOR}\u003c/username\u003e\n      \u003cpassword\u003e${env.GITHUB_TOKEN}\u003c/password\u003e\n    \u003c/server\u003e\n  \u003c/servers\u003e\n\u003c/settings\u003e\n```\n\nOverride tags, browser, or image when needed:\n\n```shell\nCUCUMBER_TAGS=@PromotionalCode BROWSER=chrome TEST_IMAGE=ndviet/test-automation-java-common:latest ./test-cucumber-framework/run-in-container.sh\n```\n\nKeep Grid containers running after test execution:\n\n```shell\nKEEP_GRID_UP=true ./test-cucumber-framework/run-in-container.sh\n```\n\nExecution mode defaults:\n\n1. `MAVEN_OFFLINE=true`: run immediately using dependencies pre-seeded in `test-automation-java-common`.\n2. `MAVEN_NO_SNAPSHOT_UPDATES=true`: skip snapshot metadata checks (`-nsu`).\n3. `MAVEN_AUTO_FALLBACK_ONLINE=true`: if offline fails, retry online automatically.\n\nIf you need to force remote Maven resolution:\n\n```shell\nMAVEN_OFFLINE=false MAVEN_NO_SNAPSHOT_UPDATES=false ./test-cucumber-framework/run-in-container.sh\n```\n\n## GitHub Actions UI workflow\n\nWorkflow file:\n\n```text\n.github/workflows/cucumber-ui-container.yml\n```\n\nThe workflow:\n\n1. Pulls shared test image `ndviet/test-automation-java-common` (or `DOCKERHUB_JAVA_COMMON_IMAGE` repo variable).\n2. Starts Selenium Grid containers.\n3. Runs Cucumber UI tests remotely against `http://selenium:4444`.\n4. Uploads `target/reports` and `target/surefire-reports` as artifacts.\n\n## Reference\n\nA sample project with entire repositories together for the test execution.\u003cbr\u003e\n\n* [test-automation-project](../../../test-automation-project)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndviet%2Ftest-cucumber-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fndviet%2Ftest-cucumber-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndviet%2Ftest-cucumber-framework/lists"}