Gatling version: 3.11.2 (must be up to date) Gatling flavor: java kotlin scala Gatling build tool: maven gradle sbt bundle
I read the guidelines and how to ask a question topics.
I provided a SSCCE (or at least, all information to help the community understand my topic)
I copied output I observe, and explain what I think should be.
Hello in 3.11.2 the Gradle 8.0.2 cannot build our solution because it cannot find these classes anymore:
GatlingPropertiesBuilder, RecorderPropertiesBuilder. How can we work around this problem?
the problem is that we had some custome logic implemented in Engine.scala. It seems since the GatlingPropertiesBuilder is gone, the Engine is gone as well. At least this is what we infer from comparing 3.11.2 demo and the gatling academy setup using 3.5
our code looks like this to manage execution flow as in run a simulation to prepare data on SUT, then run test. Or run test without data preparation etc.
object Engine extends App {
Configuration.load(args)
private var codePreparation = StatusCode.Success.code;
if (withPreparation) {
if (withIdp) {
val cbLoadTestPropertiesWithIdp = new GatlingPropertiesBuilder()
.simulationClass(classOf[PreparationIdpAuth].getName)
codePreparation = Gatling.fromMap(cbLoadTestPropertiesWithIdp.build)
} else {
val cbLoadTestPropertiesWithBasicAuth = new GatlingPropertiesBuilder()
.simulationClass(classOf[PreparationBasicAuth].getName)
codePreparation = Gatling.fromMap(cbLoadTestPropertiesWithBasicAuth.build)
}
}
if (StatusCode.Success.code != codePreparation) {
System.exit(codePreparation)
}
if (withTest) {
if (withIdp) {
val cbLoadTestPropertiesWithIdp = new GatlingPropertiesBuilder()
.simulationClass(classOf[CbLoadTestIdpAuth].getName)
Gatling.fromMap(cbLoadTestPropertiesWithIdp.build)
} else {
val cbLoadTestPropertiesWithBasicAuth = new GatlingPropertiesBuilder()
.simulationClass(classOf[CbLoadTestBasicAuth].getName)
Gatling.fromMap(cbLoadTestPropertiesWithBasicAuth.build)
}
}
}