{"id":15138575,"url":"https://github.com/lambdatest/hyperexecute-selenium-gradle-testng-sample","last_synced_at":"2026-01-03T22:32:38.824Z","repository":{"id":256939053,"uuid":"856874852","full_name":"LambdaTest/hyperexecute-selenium-gradle-testng-sample","owner":"LambdaTest","description":"Demonstration of Selenium Gradle TestNG testing on HyperExecute","archived":false,"fork":false,"pushed_at":"2024-09-13T12:56:29.000Z","size":49,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-19T18:25:02.659Z","etag":null,"topics":["automation","gradle","hyperexecute","java-testng","selenium","testng-framework"],"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/LambdaTest.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":"2024-09-13T11:24:23.000Z","updated_at":"2024-09-13T12:56:32.000Z","dependencies_parsed_at":"2024-09-14T01:37:41.058Z","dependency_job_id":"59f5965e-c4c8-47ac-a3ef-d0e33d2129cd","html_url":"https://github.com/LambdaTest/hyperexecute-selenium-gradle-testng-sample","commit_stats":null,"previous_names":["lambdatest/hyperexecute-selenium-gradle-testng-sample"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LambdaTest%2Fhyperexecute-selenium-gradle-testng-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LambdaTest%2Fhyperexecute-selenium-gradle-testng-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LambdaTest%2Fhyperexecute-selenium-gradle-testng-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LambdaTest%2Fhyperexecute-selenium-gradle-testng-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LambdaTest","download_url":"https://codeload.github.com/LambdaTest/hyperexecute-selenium-gradle-testng-sample/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238489492,"owners_count":19480976,"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","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","gradle","hyperexecute","java-testng","selenium","testng-framework"],"created_at":"2024-09-26T07:41:44.442Z","updated_at":"2025-10-27T12:30:56.220Z","avatar_url":"https://github.com/LambdaTest.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg height=\"100\" alt=\"hyperexecute_logo\" src=\"https://user-images.githubusercontent.com/1688653/159473714-384e60ba-d830-435e-a33f-730df3c3ebc6.png\"\u003e\n\nHyperExecute is a smart test orchestration platform to run end-to-end Selenium Gradle TestNG tests at the fastest speed possible. HyperExecute lets you achieve an accelerated time to market by providing a test infrastructure that offers optimal speed, test orchestration, and detailed execution logs.\n\nThe overall experience helps teams test code and fix issues at a much faster pace. HyperExecute is configured using a YAML file. Instead of moving the Hub close to you, HyperExecute brings the test scripts close to the Hub!\n\n* \u003cb\u003eHyperExecute HomePage\u003c/b\u003e: https://www.lambdatest.com/hyperexecute\n* \u003cb\u003eLambdatest HomePage\u003c/b\u003e: https://www.lambdatest.com\n* \u003cb\u003eLambdaTest Support\u003c/b\u003e: [support@lambdatest.com](mailto:support@lambdatest.com)\n\nTo know more about how HyperExecute does intelligent Test Orchestration, do check out [HyperExecute Getting Started Guide](https://www.lambdatest.com/support/docs/getting-started-with-hyperexecute/)\n\n# How to run Selenium Gradle TestNG tests on HyperExecute\n\n* [Pre-requisites](#pre-requisites)\n   - [Download HyperExecute CLI](#download-hyperexecute-cli)\n   - [Configure Environment Variables](#configure-environment-variables)\n* [Configure YAML File](#configure-yaml-in-your-test-suite)\n* [Execute your Test Suite](#execute-your-test-suite)\n* [Navigation in Automation Dashboard](#navigation-in-automation-dashboard)\n* [Trigger test on Standard Grid](#steps-to-run-on-standard-grid)\n\n## Pre-requisites\n\nBefore using HyperExecute, you have to download HyperExecute CLI corresponding to the host OS. Along with it, you also need to export the environment variables *LT_USERNAME* and *LT_ACCESS_KEY* that are available in the [LambdaTest Profile](https://accounts.lambdatest.com/detail/profile) page.\n\n### Download HyperExecute CLI\n\nHyperExecute CLI is the CLI for interacting and running the tests on the HyperExecute Grid. The CLI provides a host of other useful features that accelerate test execution. In order to trigger tests using the CLI, you need to download the HyperExecute CLI binary corresponding to the platform (or OS) from where the tests are triggered:\n\nAlso, it is recommended to download the binary in the project's parent directory. Shown below is the location from where you can download the HyperExecute CLI binary:\n\n|Operating System | CLI Download Link |\n|-----------------|-------------------|\n|Linux| https://downloads.lambdatest.com/hyperexecute/linux/hyperexecute |\n|Windows| https://downloads.lambdatest.com/hyperexecute/windows/hyperexecute.exe |\n|macOS| https://downloads.lambdatest.com/hyperexecute/darwin/hyperexecute |\n\n### Configure Environment Variables\n\nBefore the tests are run, please set the environment variables LT_USERNAME \u0026 LT_ACCESS_KEY from the terminal. The account details are available on your [LambdaTest Profile](https://accounts.lambdatest.com/detail/profile) page.\n\nFor Linux:\n\n```bash\nexport LT_USERNAME=LT_USERNAME\nexport LT_ACCESS_KEY=LT_ACCESS_KEY\n```\n\nFor Windows:\n\n```bash\nset LT_USERNAME=LT_USERNAME\nset LT_ACCESS_KEY=LT_ACCESS_KEY\n```\n\nFor macOS:\n\n```bash\nexport LT_USERNAME=LT_USERNAME\nexport LT_ACCESS_KEY=LT_ACCESS_KEY\n```\n\n## Configure YAML in your Test Suite\n\nThis YAML file is present in the root directory of this sample repository.\n\n```yaml\n---\nversion: 0.1\nrunson: win\n\nautosplit: true\nconcurrency: 2\n\npre:\n  - gradle clean build -x test\n\ntestDiscovery:\n  type: raw\n  mode: dynamic\n  command: grep 'class name' src/test/resources/testng.xml | awk '{print$2}' | sed 's/name=//g' | sed 's/\\/\\x3e//g'\n\ntestRunnerCommand: gradle test --tests $test\n\nretryOnFailure: true\nmaxRetries: 1\n\njobLabel: [gradle-testng, win, autosplit]\n```\n\n## Execute your Test Suite\n\nNOTE: In case of macOS, if you get a permission denied warning while executing CLI, simply run **`chmod u+x ./hyperexecute`** to allow permission. In case you get a security popup, allow it from your **System Preferences** → **Security \u0026 Privacy** → **General tab**.\n\nRun the below command in your terminal at the root folder of the project:\n\n```bash\n./hyperexecute --config \u003cpath_of_yaml_file\u003e\n```\n\nOR use this command if you have not exported your username and access key in the step 2.\n\n```bash\n./hyperexecute --user \u003cyour_username\u003e --key \u003cyour_access_key\u003e --config \u003cpath_of_yaml_file\u003e\n```\n\ne.g.\n\n```bash\n./hyperexecute --user user1 --key 12345 --config hyperexecute.yaml\n```\n\n## Navigation in Automation Dashboard\n\nHyperExecute lets you navigate from/to *Test Logs* in Automation Dashboard from/to *HyperExecute Logs*. You also get relevant get relevant test details like video, network log, commands, Exceptions \u0026 more in the Dashboard. Effortlessly navigate from the automation dashboard to HyperExecute logs (and vice-versa) to get more details of the test execution.\n\nVisit the [HyperExecute Dashboard](https://hyperexecute.lambdatest.com/hyperexecute) and check your Job status. \n\n## Steps to Run on Standard Grid\n - Confgure the environment variables as mentioned above\n - Running one single test\n ```bash\n gradle test --tests com.test.app.Sample\n ```\n - Running full suite\n ```bash\n gradle clean test\n ```\n - Running specific group of test to run smoke testcases\n ```bash\n gradle clean smokeTests\n ```\n\n## LambdaTest Community :busts_in_silhouette:\n\nThe [LambdaTest Community](https://community.lambdatest.com/) allows people to interact with tech enthusiasts. Connect, ask questions, and learn from tech-savvy people. Discuss best practises in web development, testing, and DevOps with professionals from across the globe.\n\n## Documentation \u0026 Resources :books:\n      \nIf you want to learn more about the LambdaTest's features, setup, and usage, visit the [LambdaTest documentation](https://www.lambdatest.com/support/docs/). You can also find in-depth tutorials around test automation, mobile app testing, responsive testing, manual testing on [LambdaTest Blog](https://www.lambdatest.com/blog/) and [LambdaTest Learning Hub](https://www.lambdatest.com/learning-hub/).     \n      \n ## About LambdaTest\n\n[LambdaTest](https://www.lambdatest.com) is a leading test execution and orchestration platform that is fast, reliable, scalable, and secure. It allows users to run both manual and automated testing of web and mobile apps across 3000+ different browsers, operating systems, and real device combinations. Using LambdaTest, businesses can ensure quicker developer feedback and hence achieve faster go to market. Over 500 enterprises and 1 Million + users across 130+ countries rely on LambdaTest for their testing needs.\n\n[\u003cimg height=\"70\" src=\"https://user-images.githubusercontent.com/70570645/169649126-ed61f6de-49b5-4593-80cf-3391ca40d665.PNG\"\u003e](https://accounts.lambdatest.com/register)\n      \n## We are here to help you :headphones:\n\n* Got a query? we are available 24x7 to help. [Contact Us](mailto:support@lambdatest.com)\n* For more info, visit - https://www.lambdatest.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdatest%2Fhyperexecute-selenium-gradle-testng-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flambdatest%2Fhyperexecute-selenium-gradle-testng-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdatest%2Fhyperexecute-selenium-gradle-testng-sample/lists"}