Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
devops-workshop
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anna Marie Bøe Tvedt
devops-workshop
Commits
6c59013a
Commit
6c59013a
authored
2 years ago
by
surkat
Browse files
Options
Downloads
Patches
Plain Diff
Fixed gatling
parent
77483e19
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
gatling/chat/ChatSimulation.scala
+59
-61
59 additions, 61 deletions
gatling/chat/ChatSimulation.scala
installGatling
+2
-2
2 additions, 2 deletions
installGatling
runGatling
+3
-3
3 additions, 3 deletions
runGatling
with
64 additions
and
66 deletions
gatling/chat/ChatSimulation.scala
+
59
−
61
View file @
6c59013a
...
...
@@ -8,24 +8,22 @@ import io.gatling.jdbc.Predef._
class
ChatSimulation
extends
Simulation
{
val
httpProtocol
=
http
.
baseU
RL
(
"http://localhost"
)
.
inferHtmlResources
(
BlackList
(
""".*\.css"""
,
""".*\.js"""
,
""".*\.ico"""
),
WhiteList
())
.
accept
Header
(
"
*/*
"
)
val
httpProtocol
=
http
// 4
.
baseU
rl
(
"http://localhost"
)
// 5
.
acceptHeader
(
"*/*"
)
// 6
.
doNotTrack
Header
(
"
1
"
)
.
acceptEncodingHeader
(
"gzip, deflate"
)
.
acceptLanguageHeader
(
"no,en;q=0.9,en-US;q=0.8,nb-NO;q=0.7,nb;q=0.6"
)
.
userAgentHeader
(
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.80 Safari/537.36"
)
val
headers_0
=
Map
(
"Content-Type"
->
"application/json; charset=utf-8;"
,
"Origin"
->
"http://localhost"
)
"Origin"
->
"http://localhost"
)
val
headers_3
=
Map
(
"Accept"
->
"application/json"
,
"Content-Type"
->
"application/json"
,
"Origin"
->
"http://localhost"
)
"Origin"
->
"http://localhost"
)
val
uri1
=
"http://localhost/api"
...
...
This diff is collapsed.
Click to expand it.
installGatling
100644 → 100755
+
2
−
2
View file @
6c59013a
#!/bin/bash
wget https://repo1.maven.org/maven2/io/gatling/highcharts/gatling-charts-highcharts-bundle/
2.3
.1/gatling-charts-highcharts-bundle-
2.3
.1-bundle.zip
-P
~
unzip ~/gatling-charts-highcharts-bundle-
2.3
.1-bundle.zip
-d
~
wget https://repo1.maven.org/maven2/io/gatling/highcharts/gatling-charts-highcharts-bundle/
3.9
.1/gatling-charts-highcharts-bundle-
3.9
.1-bundle.zip
-P
~
unzip ~/gatling-charts-highcharts-bundle-
3.9
.1-bundle.zip
-d
~
echo
Gatling Stress Tool installed
This diff is collapsed.
Click to expand it.
runGatling
100644 → 100755
+
3
−
3
View file @
6c59013a
#!/bin/bash
cp
-r
gatling/chat ~/gatling-charts-highcharts-bundle-2.3.1/user-files/simulations
cp
gatling/usernames.csv ~/gatling-charts-highcharts-bundle-2.3.1/user-files/data
~/gatling-charts-highcharts-bundle-2.3.1/bin/gatling.sh
\ No newline at end of file
cp
-r
gatling/chat ~/gatling-charts-highcharts-bundle-3.9.1/user-files/simulations
cp
gatling/usernames.csv ~/gatling-charts-highcharts-bundle-3.9.1/user-files/resources
~/gatling-charts-highcharts-bundle-3.9.1/bin/gatling.sh
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment