Closed shorn closed 5 years ago
Hi @shorn so far, I didn't manage to check/upgrade Gatling JDBC to Gatling version 3. I don't know if there are any breaking changes that affect my extension. Regarding your scenarion and the exception here I wonder if the problem is really about the version. How do you execute your simulation? Those lines
at scala.collection.immutable.List.map(List.scala:282)
at io.gatling.core.scenario.SimulationParams.scenarios(Simulation.scala:194)
Indicate that something happens with the simulation parameters and the exception shows that a list is empty that shouldn't be. Cheers, Ronny
I've pasted in my launcher class below. But note that if I comment out the sqlSelect scenario and enable the httpGet scenario, the simulation executes correctly.
object OneOffSysProp extends App {
val simClassProp = "simulationToRun"
val simClassName = System.getProperty(simClassProp, "")
if( simClassName.isEmpty ){
println(s"must provide a simulation to run in sysprop $simClassProp")
sys.exit(1)
}
val props = new GatlingPropertiesBuilder().
resourcesDirectory(IDEPathHelper.resourcesDirectory.toString).
resultsDirectory(IDEPathHelper.resultsDirectory.toString).
binariesDirectory(IDEPathHelper.mavenBinariesDirectory.toString)
props.simulationClass(simClassName)
Gatling.fromMap(props.build)
}
Hi @shorn sorry for letting you wait. I'll check this problem asap. Most probably I'll directly migrate the project completely to Gatling 3.0.0. Cheers, Ronny
No worries. Feel free to close the issue whenever you want.
Might be a good idea to put a "supported / tested versions" in your readme.
Hi,
I'm a bit a of a newb to Gatling / Scala - but I do have my scenario working such that it can make
http()
calls, but my gatling-jdbcjdbc()
call fails.As per the example code below, using the
sqlSelect
scenario, I get an UnsupportedOperationException. ThehttpGet
scenario works as expected.Code:
Exception:
I'm using a Gatling 3.0.0-RC4 "maven archetype" project.
Using gatling-jdbc by adding this to the pom.xml:
As per the title, should gatling-jdbc work with the new version of gatling-jdbc? Or am I doing something else wrong?