Skip to content

Commit 3571fb7

Browse files
Merge pull request LambdaTest#1773 from amanchopra1905/stage
gattling performance testing hyperexecute
2 parents d3b1ac2 + 635be50 commit 3571fb7

File tree

4 files changed

+108
-3
lines changed

4 files changed

+108
-3
lines changed
104 KB
Loading
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
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"/>

docs/hyperexecute-performance-testing.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ Think of it like putting your app through a rigorous training regime. We throw v
6262

6363
HyperExecute offers a comprehensive platform for performance testing, providing users with the following benefits:
6464

65-
- **Seamless Integration with JMeter:** HyperExecute seamlessly integrates with Apache JMeter, a popular open-source tool for performance testing, allowing users to leverage their existing JMeter test plans in the cloud environment effortlessly.
6665
- **Real-Time Monitoring and Reporting:** HyperExecute provides real-time monitoring and reporting capabilities, enabling users to track performance metrics, identify bottlenecks, and analyze results as tests are running. This empowers users to make informed decisions and take immediate action to optimize performance.
6766

6867
- **Customizable Load Distribution:** HyperExecute enables users to configure load distribution, specifying different data center names and percentages of load to be generated from them. This flexibility ensures efficient utilization of resources and accurate simulation of real-world scenarios.

sidebars.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,12 +363,12 @@ module.exports = {
363363
{
364364
type: "category",
365365
collapsed: true,
366-
label: "JMeter-Performance Testing",
366+
label: "Performance Testing",
367367
link: {
368368
type: "doc",
369369
id: "hyperexecute-performance-testing",
370370
},
371-
items: ["hyperexecute-run-jmeter-tests"],
371+
items: ["hyperexecute-run-jmeter-tests", "hyperexecute-gattling-testing"],
372372
},
373373
{
374374
type: "doc",

0 commit comments

Comments
 (0)