|
| 1 | +--- |
| 2 | +id: hyperexecute-gattling-testing |
| 3 | +title: Gattling Automation on HyperExecute |
| 4 | +hide_title: false |
| 5 | +sidebar_label: Gattling |
| 6 | +description: Learn how to run Selenium automation tests on HyperExecute using the Gattling framework |
| 7 | +keywords: |
| 8 | + - Gattling |
| 9 | + - Gattling selenium |
| 10 | + - Gattling Java Selenium |
| 11 | + - Gattling automation testing |
| 12 | + - selenium webdriver Gattling |
| 13 | + - selenium Gattling testing tutorial |
| 14 | + - Gattling Java Selenium framework |
| 15 | + - lambdatest Gattling |
| 16 | + - frameworks on lambdatest |
| 17 | + - hyperexecute |
| 18 | + - hyperexecute Gattling testing |
| 19 | + - hyperexecute Gattling testing |
| 20 | + - hyperexecute automation testing |
| 21 | + - HyperExecute Selenium automation |
| 22 | +url: https://www.lambdatest.com/support/docs/hyperexecute-gattling-testing/ |
| 23 | +site_name: LambdaTest |
| 24 | +slug: hyperexecute-gattling-testing/ |
| 25 | +--- |
| 26 | + |
| 27 | +import CodeBlock from '@theme/CodeBlock'; |
| 28 | +import {YOUR_LAMBDATEST_USERNAME, YOUR_LAMBDATEST_ACCESS_KEY} from "@site/src/component/keys"; |
| 29 | +import Tabs from '@theme/Tabs'; |
| 30 | +import TabItem from '@theme/TabItem'; |
| 31 | + |
| 32 | +<script type="application/ld+json" |
| 33 | + dangerouslySetInnerHTML={{ __html: JSON.stringify({ |
| 34 | + "@context": "https://schema.org", |
| 35 | + "@type": "BreadcrumbList", |
| 36 | + "itemListElement": [{ |
| 37 | + "@type": "ListItem", |
| 38 | + "position": 1, |
| 39 | + "name": "Home", |
| 40 | + "item": "https://www.lambdatest.com" |
| 41 | + },{ |
| 42 | + "@type": "ListItem", |
| 43 | + "position": 2, |
| 44 | + "name": "Support", |
| 45 | + "item": "https://www.lambdatest.com/support/docs/" |
| 46 | + },{ |
| 47 | + "@type": "ListItem", |
| 48 | + "position": 3, |
| 49 | + "name": "How to run automation tests on HyperExecute using Gattling framework", |
| 50 | + "item": "https://www.lambdatest.com/support/docs/hyperexecute-gattling-testing/" |
| 51 | + }] |
| 52 | + }) |
| 53 | + }} |
| 54 | +></script> |
| 55 | +Gatling is an open-source load and performance testing framework designed for testing web applications. It uses a powerful Scala-based DSL to define test scenarios and is capable of simulating thousands of concurrent users, making it ideal for stress and performance testing. |
| 56 | + |
| 57 | +This guide provides a structured approach to integrating the Gatling performance testing framework with the LambdaTest HyperExecute platform |
| 58 | + |
| 59 | +## Prerequisites |
| 60 | +To run the Tests on HyperExecute from your Local System, you are required: |
| 61 | + |
| 62 | +- Your LambdaTest [Username and Access key](https://www.lambdatest.com/support/docs/hyperexecute-how-to-get-my-username-and-access-key/) |
| 63 | +- [HyperExecute YAML](https://www.lambdatest.com/support/docs/hyperexecute-yaml-version0.2/) file which contains all the necessary instructions. |
| 64 | +- [HyperExecute CLI](https://www.lambdatest.com/support/docs/hyperexecute-cli-run-tests-on-hyperexecute-grid/) in order to initiate a test execution Job . |
| 65 | +- Setup the [Environmental Variable](https://www.lambdatest.com/support/docs/hyperexecute-environment-variable-setup/) |
| 66 | + |
| 67 | +## Run a Sample Project |
| 68 | +### Step 1: Download Project |
| 69 | +You can use your own project to configure and test it. For demo purposes, we are using the sample repository. |
| 70 | + |
| 71 | +:::tip Sample repo |
| 72 | +Download or Clone the code sample for the Gattling Performance Testing from the LambdaTest GitHub repository to run the tests on the HyperExecute. |
| 73 | + |
| 74 | +<a href="https://github.com/prateekLambda/Gatling-performance-hyperexecute" className="github__anchor"><img loading="lazy" src={require('../assets/images/icons/github.png').default} alt="Image" className="doc_img"/> View on GitHub</a> |
| 75 | +::: |
| 76 | + |
| 77 | +### Step 2: Download the CLI in your Project |
| 78 | +Download the HyperExecute CLI and copy it into the root folder of the downloaded sample repository. |
| 79 | + |
| 80 | +| Platform | HyperExecute CLI | |
| 81 | +| ---------| ---------------- | |
| 82 | +| Linux | https://downloads.lambdatest.com/hyperexecute/linux/hyperexecute | |
| 83 | +| Windows | https://downloads.lambdatest.com/hyperexecute/windows/hyperexecute.exe | |
| 84 | +| macOS | https://downloads.lambdatest.com/hyperexecute/darwin/hyperexecute | |
| 85 | + |
| 86 | +### Step 3: Configure your hyperexecute.yml file |
| 87 | +Here is a complete working YAML configuration that runs Gatling performance tests on linux runners via HyperExecute: |
| 88 | + |
| 89 | +```yaml reference title="hyperexecute.yaml" |
| 90 | +https://github.com/prateekLambda/Gatling-performance-hyperexecute/blob/main/HYE.yaml |
| 91 | +``` |
| 92 | + |
| 93 | +> 📘 For a deeper understanding and project-specific configurations, check out the [YAML documentation](https://www.lambdatest.com/support/docs/hyperexecute-yaml-parameters/). |
| 94 | +
|
| 95 | +### Step 4: Execute your Test Suite |
| 96 | +From the project root directory, execute the below CLI command in your terminal: |
| 97 | + |
| 98 | +<div className="lambdatest__codeblock"> |
| 99 | + <CodeBlock className="language-bash"> |
| 100 | + {`./hyperexecute --user ${ YOUR_LAMBDATEST_USERNAME()} --key ${ YOUR_LAMBDATEST_ACCESS_KEY()} --config hyperexecute.yaml`} |
| 101 | + </CodeBlock> |
| 102 | +</div> |
| 103 | + |
| 104 | +> **NOTE :** 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 & Privacy** → **General tab**. |
| 105 | +
|
| 106 | +<img loading="lazy" src={require('../assets/images/hyperexecute/frameworks/performance_testing/gattling.png').default} alt="automation-dashboard" width="1920" height="868" className="doc_img"/> |
0 commit comments