All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.fherbreteau.gatling.ftp.protocol.FtpComponents.scala Maven / Gradle / Ivy

The newest version!
package io.github.fherbreteau.gatling.ftp.protocol

import io.gatling.core.protocol.ProtocolComponents
import io.gatling.core.session.Session
import io.github.fherbreteau.gatling.ftp.client.FtpClients

case class FtpComponents(ftpProtocol: FtpProtocol) extends ProtocolComponents {

  override lazy val onStart: Session => Session = FtpClients.setFtpClient(ftpProtocol)

  override def onExit: Session => Unit = session => {
    FtpClients.ftpClient(session).foreach(_.stop())
  }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy