minor scala and gatling upgrades

This commit is contained in:
Eugen Paraschiv 2018-05-14 00:20:56 +03:00
parent bd6cc15ce7
commit d205ffbc46
2 changed files with 12 additions and 12 deletions

View File

@ -13,10 +13,11 @@
<properties> <properties>
<maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target> <maven.compiler.target>1.8</maven.compiler.target>
<scala.version>2.11.7</scala.version>
<encoding>UTF-8</encoding> <encoding>UTF-8</encoding>
<gatling.version>2.2.0</gatling.version> <scala.version>2.11.12</scala.version> <!--2.11.12--> <!--2.12.6-->
<scala-maven-plugin.version>3.2.2</scala-maven-plugin.version> <gatling.version>2.2.5</gatling.version> <!--2.2.5--> <!--2.3.1-->
<scala-maven-plugin.version>3.2.2</scala-maven-plugin.version> <!--3.2.2--> <!--3.3.2-->
<gatling-maven-plugin.version>2.2.1</gatling-maven-plugin.version> <!--2.2.1--> <!--2.2.4-->
</properties> </properties>
<dependencyManagement> <dependencyManagement>
@ -85,7 +86,7 @@
</goals> </goals>
<configuration> <configuration>
<args> <args>
<arg>-Ybackend:GenBCode</arg> <!--<arg>-Ybackend:GenBCode</arg>-->
<arg>-Ydelambdafy:method</arg> <arg>-Ydelambdafy:method</arg>
<arg>-target:jvm-1.8</arg> <arg>-target:jvm-1.8</arg>
<arg>-deprecation</arg> <arg>-deprecation</arg>
@ -101,7 +102,7 @@
<plugin> <plugin>
<groupId>io.gatling</groupId> <groupId>io.gatling</groupId>
<artifactId>gatling-maven-plugin</artifactId> <artifactId>gatling-maven-plugin</artifactId>
<version>${gatling.version}</version> <version>${gatling-maven-plugin.version}</version>
<executions> <executions>
<execution> <execution>
<phase>test</phase> <phase>test</phase>

View File

@ -9,17 +9,16 @@ import io.gatling.jdbc.Predef._
class RecordedSimulation extends Simulation { class RecordedSimulation extends Simulation {
val httpProtocol = http val httpProtocol = http
.baseURL("http://computer-database.gatling.io") .baseURL("http://computer-database.gatling.io")
.inferHtmlResources(BlackList(""".*\.css""", """.*\.js""", """.*\.ico"""), WhiteList()) .inferHtmlResources(BlackList(""".*\.css""", """.*\.js""", """.*\.ico"""), WhiteList())
.acceptHeader("text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8") .acceptHeader("text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8")
.acceptEncodingHeader("gzip, deflate") .acceptEncodingHeader("gzip, deflate")
.acceptLanguageHeader("it-IT,it;q=0.8,en-US;q=0.5,en;q=0.3") .acceptLanguageHeader("it-IT,it;q=0.8,en-US;q=0.5,en;q=0.3")
.userAgentHeader("Mozilla/5.0 (Windows NT 10.0; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0") .userAgentHeader("Mozilla/5.0 (Windows NT 10.0; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0")
val scn = scenario("RecordedSimulation") val scn = scenario("RecordedSimulation")
.exec(http("request_0") .exec(http("request_0")
.get("/")) .get("/"))
@ -43,4 +42,4 @@ class RecordedSimulation extends Simulation {
.get("/computers?p=3")) .get("/computers?p=3"))
setUp(scn.inject(atOnceUsers(1))).protocols(httpProtocol) setUp(scn.inject(atOnceUsers(1))).protocols(httpProtocol)
} }