{"id":22363056,"url":"https://github.com/lambdatest/hyperexecute-klassijs-sample","last_synced_at":"2026-05-20T07:36:09.680Z","repository":{"id":97545153,"uuid":"531070511","full_name":"LambdaTest/hyperexecute-klassijs-sample","owner":"LambdaTest","description":"Run Tests with HyperExecute on TestMu AI (Formerly LambdaTest).","archived":false,"fork":false,"pushed_at":"2026-05-17T11:30:54.000Z","size":15078,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-05-17T12:31:24.245Z","etag":null,"topics":["automation","end-to-end-test-automation","end-to-end-testing","hyperexecute","klassi-js","selenium","testmuai"],"latest_commit_sha":null,"homepage":"https://www.testmuai.com","language":"JavaScript","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,"zenodo":null}},"created_at":"2022-08-31T12:17:56.000Z","updated_at":"2026-05-17T11:30:58.000Z","dependencies_parsed_at":"2023-03-13T16:11:16.749Z","dependency_job_id":null,"html_url":"https://github.com/LambdaTest/hyperexecute-klassijs-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LambdaTest/hyperexecute-klassijs-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LambdaTest%2Fhyperexecute-klassijs-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LambdaTest%2Fhyperexecute-klassijs-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LambdaTest%2Fhyperexecute-klassijs-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LambdaTest%2Fhyperexecute-klassijs-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LambdaTest","download_url":"https://codeload.github.com/LambdaTest/hyperexecute-klassijs-sample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LambdaTest%2Fhyperexecute-klassijs-sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33250372,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-20T04:48:54.280Z","status":"ssl_error","status_checked_at":"2026-05-20T04:48:10.851Z","response_time":356,"last_error":"SSL_read: 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","end-to-end-test-automation","end-to-end-testing","hyperexecute","klassi-js","selenium","testmuai"],"created_at":"2024-12-04T17:13:27.292Z","updated_at":"2026-05-20T07:36:09.675Z","avatar_url":"https://github.com/LambdaTest.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Run Selenium Tests on HyperExecute Using TestMu AI (Formerly LambdaTest)\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.testmuai.com/\"\u003e\u003cimg src=\"https://img.shields.io/badge/MADE%20BY%20TestMu%20AI-000000.svg?style=for-the-badge\u0026labelColor=000\" alt=\"Made by TestMu AI\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://community.testmuai.com/\"\u003e\u003cimg src=\"https://img.shields.io/badge/Join%20the%20community-blueviolet.svg?style=for-the-badge\u0026labelColor=000000\" alt=\"Community\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Getting Started\n\n[TestMu AI](https://www.testmuai.com/) (Formerly LambdaTest) is the world's first full-stack AI Agentic Quality Engineering platform that empowers teams to test intelligently, smarter, and ship faster. Built for scale, it offers a full-stack testing cloud with 10K+ real devices and 3,000+ browsers. With AI-native test management, MCP servers, and agent-based automation, TestMu AI supports Selenium, Appium, Playwright, and all major frameworks.\n\nWith TestMu AI (Formerly LambdaTest), you can run Selenium Tests on HyperExecute Using TestMu AI (Formerly LambdaTest) across real browsers and operating systems.\n\n- [Sign up on TestMu AI](https://www.testmuai.com/register/) (Formerly LambdaTest).\n- Follow the [TestMu AI Documentation](https://www.testmuai.com/support/docs/) for the full setup walkthrough.\n\n### Prerequisites\n\n- Node.js and npm (latest stable)\n- A TestMu AI (Formerly LambdaTest) account with your username and access key\n\n### Prerequisites\n\nBefore using HyperExecute, download the HyperExecute CLI for your OS and export the environment variables *LT_USERNAME* and *LT_ACCESS_KEY* from your TestMu AI (Formerly LambdaTest) Profile page.\n\n* [Pre-requisites](#pre-requisites)\n   - [Download HyperExecute CLI](#download-hyperexecute-cli)\n   - [Configure Environment Variables](#configure-environment-variables)\n\n* [Auto-Split Execution with Klassi-js](#auto-split-execution-with-Klassi-js)\n   - [Core](#core)\n   - [Pre Steps and Dependency Caching](#pre-steps-and-dependency-caching)\n   - [Artifacts Management](#artifacts-management)\n   - [Test Execution](#test-execution)\n\n* [Run Klassi-js tests on Windows and Linux platforms](#run-Klassi-js-tests-on-windows-and-linux-platforms)\n* [Secrets Management](#secrets-management)\n* [Navigation in Automation Dashboard](#navigation-in-automation-dashboard)\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* Mac: https://downloads.lambdatest.com/hyperexecute/darwin/hyperexecute\n* Linux: https://downloads.lambdatest.com/hyperexecute/linux/hyperexecute\n* Windows: https://downloads.lambdatest.com/hyperexecute/windows/hyperexecute.exe\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 TestMu AI (Formerly LambdaTest) Profile page.\n\nFor macOS:\n\n```bash\nexport LT_USERNAME=LT_USERNAME\nexport LT_ACCESS_KEY=LT_ACCESS_KEY\n```\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\n## Auto-Split Execution with Klassi-js\n\nAuto-split execution mechanism lets you run tests at predefined concurrency and distribute the tests over the available infrastructure. Concurrency can be achieved at different levels - file, module, test suite, test, scenario, etc.\n\nFor more information about auto-split execution, check out the Auto-Split Getting Started Guide\n\n### Core\n\nAuto-split YAML file (*HyperExecute-Yaml\\.hyperexecuteStatic.yaml*) in the repo contains the following configuration:\n\n```yaml\nglobalTimeout: 90\ntestSuiteTimeout: 90\ntestSuiteStep: 90\n```\n\nGlobal timeout, testSuite timeout, and testSuite timeout are set to 90 minutes.\n \nThe *runson* key determines the platform (or operating system) on which the tests are executed. Here we have set the target OS as Windows.\n\n```yaml\nrunson: win\n```\n\nAuto-split is set to true in the YAML file.\n\n```yaml\n autosplit: true\n```\n\n*retryOnFailure* is set to true, instructing HyperExecute to retry failed command(s). The retry operation is carried out till the number of retries mentioned in *maxRetries* are exhausted or the command execution results in a *Pass*. In addition, the concurrency (i.e. number of parallel sessions) is set to 2.\n\n```yaml\nretryOnFailure: true\nrunson: win\nmaxRetries: 2\n```\n\n## Pre Steps and Dependency Caching\n\nTo leverage the advantage offered by *Dependency Caching* in HyperExecute, the integrity of *package-lock.json* is checked using the checksum functionality.\n\n```yaml\ncacheKey: '{{ checksum \"package-lock.json\" }}'\n```\n\nThe caching advantage offered by *NPM* can be leveraged in HyperExecute, whereby the downloaded packages can be stored (or cached) in a secure server for future executions. The packages available in the cache will only be used if the checksum stage results in a Pass.\n\n\n\n```yaml\ncacheDirectories:\n  - node_modules\n```\n\nThe *testDiscovery* directive contains the command that gives details of the mode of execution, along with detailing the command that is used for test execution. Here, we are fetching the list of Feature file scenario that would be further executed using the *value* passed in the *testRunnerCommand*\n\n```yaml\ntestDiscovery:\n  type: raw\n  mode: static\n  command: grep  -nri '@uattest' features -ir --include=\\*.feature | awk '{print$1}'  | sed 's/:.*//'\n\n  testRunnerCommand: yarn run ltlocal $test\n```\n\nRunning the above command on the terminal will give a list of Feature Scenario lines that are located in the Project folder:\n\nTest Discovery Result: 2\n    features/duckDuckGo-search.feature\n    features/getMethod.feature  \n\nThe *testRunnerCommand* contains the command that is used for triggering the test. The output fetched from the *testDiscoverer* command acts as an input to the *testRunner* command.\n\n```yaml\ntestRunnerCommand:  yarn run ltlocal $test\n```\n\n\n### Artifacts Management\n\nThe *mergeArtifacts* directive (which is by default *false*) is set to *true* for merging the artifacts and combing artifacts generated under each task.\n\nThe *uploadArtefacts* directive informs HyperExecute to upload artifacts [files, reports, etc.] generated after task completion.  In the example, *path* consists of a regex for parsing the directory (i.e. *reports* that contains the test reports).\n\n```yaml\nmergeArtifacts: true\nuploadArtefacts:\n    - name: Reports\n      path:\n         - reports\\\n\n```\nHyperExecute also facilitates the provision to download the artifacts on your local machine. To download the artifacts, click on *Artifacts* button corresponding to the associated TestID.\n\n### Test Execution\n\nThe CLI option *--config* is used for providing the custom HyperExecute YAML file (i.e. *HyperExecute-Yaml/.hyperexecuteStatic.yaml*). Run the following command on the terminal to trigger the tests in JS files on the HyperExecute grid. The *--download-artifacts* option is used to inform HyperExecute to download the artifacts for the job.\n\n```bash\n./hyperexecute --config hyperexecute.yaml\n```\n\nVisit HyperExecute Automation Dashboard to check the status of execution\n\n\n### Pre Steps and Dependency Caching\n\nDependency caching is enabled in the YAML file to ensure that the package dependencies are not downloaded in subsequent runs. The first step is to set the Key used to cache directories.\n\n```yaml\ncacheKey: '{{ checksum \"yarn.lock\" }}'\n```\n\nSet the array of files \u0026 directories to be cached. In the example, all the packages will be cached in the *CacheDir* directory.\n\n```yaml\ncacheDirectories:\n  - node_modules\n```\n\nSteps (or commands) that must run before the test execution are listed in the *pre* run step. In the example, the packages listed in *requirements.txt* are installed using the *npm install* command.\n\n```yaml\npre:\n  - npm install\n```\n\n### Artifacts Management\n\nThe *mergeArtifacts* directive (which is by default *false*) is set to *true* for merging the artifacts and combing artifacts generated under each task.\n\nThe *uploadArtefacts* directive informs HyperExecute to upload artifacts [files, reports, etc.] generated after task completion. In the example, *path* consists of a regex for parsing the directory (i.e. *reports* that contains the test reports).\n\n```yaml\nmergeArtifacts: true\n\nuploadArtefacts:\n    - name: Reports\n      path:\n         - reports\\\n```\n\nHyperExecute also facilitates the provision to download the artifacts on your local machine. To download the artifacts, click on Artifacts button corresponding to the associated TestID.\n\n\n\n\n### Secrets management\n\nIn case you want to use any secret keys in the YAML file, the same can be set by clicking on the *Secrets* button the dashboard.\n\n\nAll you need to do is create an environment variable that uses the secret key:\n\n```yaml\nenv:\n  AccessKey: ${{.secrets.AccessKey}}\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 Selenium 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\n## TestMu AI (Formerly LambdaTest) Community\n\nConnect with testers and developers in the [TestMu AI Community](https://community.testmuai.com/). Ask questions, share what you are building, and discuss best practices in test automation and DevOps.\n\n## TestMu AI (Formerly LambdaTest) Certifications\n\nEarn free [TestMu AI Certifications](https://www.testmuai.com/certifications/) for testers, developers, and QA engineers. Validate your skills in Selenium, Cypress, Playwright, Appium, Espresso and more. Industry-recognized, shareable on LinkedIn, and built by practitioners, not marketers.\n\n## Learning Resources by TestMu AI (Formerly LambdaTest)\n\nLearn modern testing through tutorials, guides, videos, and weekly updates:\n\n* [TestMu AI Blog](https://www.testmuai.com/blog/)\n* [TestMu AI Learning Hub](https://www.testmuai.com/learning-hub/)\n* [TestMu AI on YouTube](https://www.youtube.com/@TestMuAI)\n* [TestMu AI Newsletter](https://www.testmuai.com/newsletter/)\n\n## LambdaTest is Now TestMu AI\n\nOn **January 12, 2026**, [LambdaTest evolved to TestMu AI](https://www.testmuai.com/lambdatest-is-now-testmuai/), the world's first fully autonomous **Agentic AI Quality Engineering Platform**.\n\nSame team. Same infrastructure. Same customer accounts. All existing LambdaTest logins, scripts, capabilities, and integrations continue to work without change.\n\n🔗 Find the new home for [LambdaTest](https://www.testmuai.com).\n\n### How LambdaTest Evolved into TestMu AI\n\nIn 2017, we launched LambdaTest with a simple mission: make testing fast, reliable, and accessible. As LambdaTest grew, we expanded into Test Intelligence, Visual Regression Testing, Accessibility Testing, API Testing, and Performance Testing, covering the full depth of the testing lifecycle.\n\nAs software development entered the AI era, testing had to evolve, too. We rebuilt the architecture to be AI-native from the ground up, with autonomous agents that **plan, author, execute, analyze, and optimize tests** while keeping humans in the loop. The platform integrates with your repos, CI, IDEs, and terminals, continuously learning from every code change and development signal.\n\nThat evolution earned a new name: **TestMu AI**, built for an AI-first future of quality engineering. TestMu is not a new name for us. It is the name of our annual community conference, which has brought together 100,000+ quality engineers to discuss how AI would reshape testing, long before that became an industry norm.\n\nWhat started as a high-performance cloud testing platform has transformed into an AI-native, multi-agent system powering a connected, end-to-end quality layer. That evolution defined a new identity: LambdaTest evolved into TestMu AI, built for an AI-first future of quality engineering.\n\n## Support\n\nGot a question? Email [support@testmuai.com](mailto:support@testmuai.com) or chat with us 24x7 from our chat portal.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdatest%2Fhyperexecute-klassijs-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flambdatest%2Fhyperexecute-klassijs-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdatest%2Fhyperexecute-klassijs-sample/lists"}