gribanoveu / gatling-smtp

Write performance tests for SMTP Servers using Gatling

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gatling-smtp

DSL

import camaral.gatling.smtp.Predef._
import io.gatling.core.Predef._

val smtpProtocol = smtp
    .host("localhost")
    .port(1025)

val scn = scenario("Simple scenario")
    .exec(smtp("My First Request")
      .from("edson.pele@example.com")
      .to("diego.maradona@example.com")
      .subject("Best Player?")
      .body("Pele > Maradona"))

Testing the project

  • Run a SMTP server to print the request:
python -m smtpd -n -c DebuggingServer localhost:1025
  • Enter on sbt shell:
./sbt
  • Run tests:
gatling:test

About

Write performance tests for SMTP Servers using Gatling

License:Apache License 2.0


Languages

Language:Shell 52.2%Language:Scala 47.8%