Migrating - krishnenc/gatling GitHub Wiki
From 1.0.X to 1.1.0
Txt scenario format has been dropped!
No sweat: you can easily convert them into Scala format:
- change extension to .scala
- surround your simulation with the following code to make it a scala class :
import com.excilys.ebi.gatling.core.Predef._
import com.excilys.ebi.gatling.http.Predef._
import com.excilys.ebi.gatling.jdbc.Predef._
class YourSimulationName extends Simulation {
def apply = {
YOUR SIMULATION COMES HERE
}
}
- replace "runSimulations" by "List"
Simulation class is no longer an App
Same thing above, you have to wrap your existing code with an apply method and return a List.
Check API changes
eqbecomesisneqbecomesnot
Launching the recorder
The recorder is no longer an ubber jar, so it is now located in the lib directory. As it depends on other libraries, it is now to be launched from the recorder.sh/bat located in the bin directory.