{"id":26646011,"url":"https://github.com/ndviet/test-testng-framework","last_synced_at":"2026-04-29T11:01:42.381Z","repository":{"id":154503995,"uuid":"589846904","full_name":"NDViet/test-testng-framework","owner":"NDViet","description":"Test repository with test case is created and executed in TestNG Framework","archived":false,"fork":false,"pushed_at":"2026-03-14T16:18:37.000Z","size":38,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-15T02:55:20.279Z","etag":null,"topics":["automation","java","maven","test-automation","testng-framework"],"latest_commit_sha":null,"homepage":"http://www.ndviet.org/test-testng-framework/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","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":"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-01-17T04:26:55.000Z","updated_at":"2026-03-14T16:18:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"f2078a12-adf8-42ba-9e09-4ebb007887e3","html_url":"https://github.com/NDViet/test-testng-framework","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/NDViet/test-testng-framework","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NDViet%2Ftest-testng-framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NDViet%2Ftest-testng-framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NDViet%2Ftest-testng-framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NDViet%2Ftest-testng-framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NDViet","download_url":"https://codeload.github.com/NDViet/test-testng-framework/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NDViet%2Ftest-testng-framework/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32422532,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["automation","java","maven","test-automation","testng-framework"],"created_at":"2025-03-24T22:56:10.325Z","updated_at":"2026-04-29T11:01:42.374Z","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 TestNG 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-testng-framework.git\n```\n\n3. Build source code in each repository following the order\n\n- test-parent-pom\n- test-testng-framework\n\n4. Run test cases in test repository\n\n```shell\ncd test-testng-framework\n```\n\n```shell\nmvn test -DskipTests=false -Dincludes=\"EasyUpload_io.xml\"\nmvn test -DskipTests=false -Dincludes=\"OnlyTestingBlog.xml\"\nmvn test -DskipTests=false -Dincludes=\"DemoQA_Download.xml\"\n```\n\nNoted:\n\n* **[includes]** property is used to provide Test Suite xml file would be executed.\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-testng-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 suite, browser, or image:\n\n```shell\nTESTNG_SUITE=DemoQA_Download.xml BROWSER=chrome TEST_IMAGE=ndviet/test-automation-java-common:latest ./test-testng-framework/run-in-container.sh\n```\n\nKeep Grid containers running after test execution:\n\n```shell\nKEEP_GRID_UP=true ./test-testng-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-testng-framework/run-in-container.sh\n```\n\n## GitHub Actions UI workflow\n\nWorkflow file:\n\n```text\n.github/workflows/testng-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 TestNG 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-testng-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fndviet%2Ftest-testng-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndviet%2Ftest-testng-framework/lists"}