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

ru.tinkoff.gatling.feeders.RandomRangeStringFeeder.scala Maven / Gradle / Ivy

The newest version!
package ru.tinkoff.gatling.feeders

import io.gatling.core.feeder.Feeder
import ru.tinkoff.gatling.utils.RandomDataGenerators

object RandomRangeStringFeeder {

  lazy val alphabet = """abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#%"&*()_-+={}<>?|:[].~"""

  def apply(paramName: String, from: Int = 10, to: Int = 15, alphabet: String = alphabet): Feeder[String] =
    feeder[String](paramName)(RandomDataGenerators.randomString(alphabet)(RandomDataGenerators.randomDigit(from, to)))

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy