Skip to content

Write performance tests for SMTP Servers using Gatling

License

Notifications You must be signed in to change notification settings

camaral/gatling-smtp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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("[email protected]")
      .to("[email protected]")
      .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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published