Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View MovileGente's full-sized avatar

Movile MovileGente

View GitHub Profile
apiVersion: batch/v1
kind: Job
metadata:
namespace: loadtest-gatling
name: loadtest-gatling
labels:
jobgroup: loadtest-gatling
spec:
completions: 8
## gatling project build as uberjar
FROM maven:3.6-jdk-11-slim AS java-build
WORKDIR /app
ADD src src
ADD pom.xml pom.xml
RUN mvn clean install
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<configuration>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.SF</exclude>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<configuration>
<args>
<arg>-deprecation</arg>
<arg>-feature</arg>
</args>
</configuration>
<executions>
<dependencies>
<dependency>
<groupId>io.gatling.highcharts</groupId>
<artifactId>gatling-charts-highcharts</artifactId>
<version>MANUALLY_REPLACE_WITH_LATEST_VERSION</version>
<scope>test</scope>
</dependency>
</dependencies>
<plugin>
setUp(
scenario.inject(
rampConcurrentUsers(0) to (5400) during (75 minutes),
constantConcurrentUsers(5400) during (20 minutes)
).protocols(httpConfig)
)
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import scala.concurrent.duration._
class BasicSimulation extends Simulation {
val httpProtocol = http
.baseUrl("http://computer-database.gatling.io")
.acceptHeader("text/html,application/xhtml+xml,application/xml;)
react-native run-android
react-native run-ios
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools