Skip to content
Snippets Groups Projects
Commit b5759604 authored by Surya Bahadur Kathayat's avatar Surya Bahadur Kathayat
Browse files

Merge branch 'testing2' into 'master'

Fixed gatling

See merge request !14
parents e50e8c99 6c59013a
No related branches found
No related tags found
1 merge request!14Fixed gatling
Pipeline #200368 passed
...@@ -8,24 +8,22 @@ import io.gatling.jdbc.Predef._ ...@@ -8,24 +8,22 @@ import io.gatling.jdbc.Predef._
class ChatSimulation extends Simulation { class ChatSimulation extends Simulation {
val httpProtocol = http val httpProtocol = http // 4
.baseURL("http://localhost") .baseUrl("http://localhost") // 5
.inferHtmlResources(BlackList(""".*\.css""", """.*\.js""", """.*\.ico"""), WhiteList()) .acceptHeader("*/*") // 6
.acceptHeader("*/*") .doNotTrackHeader("1")
.acceptEncodingHeader("gzip, deflate") .acceptEncodingHeader("gzip, deflate")
.acceptLanguageHeader("no,en;q=0.9,en-US;q=0.8,nb-NO;q=0.7,nb;q=0.6") .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") .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( val headers_0 = Map(
"Content-Type" -> "application/json; charset=utf-8;", "Content-Type" -> "application/json; charset=utf-8;",
"Origin" -> "http://localhost" "Origin" -> "http://localhost")
)
val headers_3 = Map( val headers_3 = Map(
"Accept" -> "application/json", "Accept" -> "application/json",
"Content-Type" -> "application/json", "Content-Type" -> "application/json",
"Origin" -> "http://localhost" "Origin" -> "http://localhost")
)
val uri1 = "http://localhost/api" val uri1 = "http://localhost/api"
......
installGatling 100644 → 100755
#!/bin/bash #!/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 ~ 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-2.3.1-bundle.zip -d ~ unzip ~/gatling-charts-highcharts-bundle-3.9.1-bundle.zip -d ~
echo Gatling Stress Tool installed echo Gatling Stress Tool installed
runGatling 100644 → 100755
#!/bin/bash #!/bin/bash
cp -r gatling/chat ~/gatling-charts-highcharts-bundle-2.3.1/user-files/simulations cp -r gatling/chat ~/gatling-charts-highcharts-bundle-3.9.1/user-files/simulations
cp gatling/usernames.csv ~/gatling-charts-highcharts-bundle-2.3.1/user-files/data cp gatling/usernames.csv ~/gatling-charts-highcharts-bundle-3.9.1/user-files/resources
~/gatling-charts-highcharts-bundle-2.3.1/bin/gatling.sh ~/gatling-charts-highcharts-bundle-3.9.1/bin/gatling.sh
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment