Skip to content

Commit

Permalink
Merge pull request #1335 from sixdouglas/feat/bumpUpGatlingVersion
Browse files Browse the repository at this point in the history
feat : Bump up Gatling version
  • Loading branch information
ptrthomas authored Oct 17, 2020
2 parents bc979e1 + e47012c commit c3135cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions karate-gatling/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<dependency>
<groupId>io.gatling.highcharts</groupId>
<artifactId>gatling-charts-highcharts</artifactId>
<version>3.0.2</version>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>org.scala-lang</groupId>
Expand Down Expand Up @@ -79,7 +79,7 @@
<plugin>
<groupId>io.gatling</groupId>
<artifactId>gatling-maven-plugin</artifactId>
<version>3.0.1</version>
<version>3.1.0</version>
<configuration>
<disableCompiler>true</disableCompiler>
<skip>${skipTests}</skip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class KarateAction(val name: String, val tags: Seq[String], val protocol: Karate
override def reportPerfEvent(event: PerfEvent): Unit = {
val okOrNot = if (event.isFailed) KO else OK
val message = if (event.getMessage == null) None else Option(event.getMessage)
statsEngine.logResponse(session, event.getName, event.getStartTime, event.getEndTime, okOrNot, Option(event.getStatusCode + ""), message)
statsEngine.logResponse(session.scenario, List.empty, event.getName, event.getStartTime, event.getEndTime, okOrNot, Option(event.getStatusCode + ""), message)
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ object KarateProtocol {
}

case class KarateComponents(val protocol: KarateProtocol, val system: ActorSystem) extends ProtocolComponents {
override def onStart: Session => Session = ProtocolComponents.NoopOnStart
override def onStart: Session => Session = Session.Identity
override def onExit: Session => Unit = ProtocolComponents.NoopOnExit
}

0 comments on commit c3135cd

Please sign in to comment.