Skip to content

Commit

Permalink
Fix Test Build for Gatling 3.11.x
Browse files Browse the repository at this point in the history
  • Loading branch information
fherbreteau committed May 2, 2024
1 parent 62fac2a commit 6b92cec
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
![Build](https://github.com/fherbreteau/gatling-sftp/actions/workflows/maven.yml/badge.svg)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=fherbreteau_gatling-sftp&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=fherbreteau_gatling-sftp)

Plugin for support performance testing with SFTP in Gatling (3.10.x)
Plugin for support performance testing with SFTP in Gatling (3.11.x)

# Usage

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package io.github.fherbreteau.gatling.sftp.examples;

import io.gatling.app.Gatling;
import io.gatling.core.config.GatlingPropertiesBuilder;
import io.gatling.javaapi.core.ScenarioBuilder;
import io.gatling.javaapi.core.Simulation;
import io.github.fherbreteau.gatling.sftp.javaapi.protocol.SftpProtocolBuilder;
Expand Down Expand Up @@ -36,9 +34,4 @@ public class SftpSimulation2 extends Simulation {
{
setUp(scn.injectOpen(atOnceUsers(1)).protocols(sftpProtocol));
}

public static void main(String[] args) {
int exitCode = Gatling.fromMap(new GatlingPropertiesBuilder().simulationClass(SftpSimulation2.class.getName()).build());
System.exit(exitCode);
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package io.github.fherbreteau.gatling.sftp.examples

import io.gatling.app.Gatling
import io.gatling.core.Predef._
import io.gatling.core.config.GatlingPropertiesBuilder
import io.gatling.core.structure.ScenarioBuilder
import io.github.fherbreteau.gatling.sftp.Predef.sftp
import io.github.fherbreteau.gatling.sftp.protocol.SftpProtocolBuilder
Expand Down Expand Up @@ -36,11 +34,3 @@ class SftpSimulation extends Simulation {
.delete("file_to_upload"))
setUp(scn.inject(atOnceUsers(1)).protocols(sftpProtocol))
}

object SftpSimulation {
def main(args: Array[String]): Unit = {
val exitCode = Gatling.fromMap((new GatlingPropertiesBuilder)
.simulationClass(classOf[io.github.fherbreteau.gatling.sftp.examples.SftpSimulation].getName).build)
sys.exit(exitCode);
}
}

0 comments on commit 6b92cec

Please sign in to comment.