I have creating simulation by using recording feature. I am getting compile time error in the generated simulation class. Please refer the sample below.
ScenarioBuilder scn = scenario(“DemoSimulation”) // ‘.’ operator is missing
exec(
http(“request_0”)
.get(“/path”)
);
If I manually insert the ‘.’ operator, its working fine but it should be generated automatically. I am also attaching the screenshot.
I am using gatling-charts-highcharts-bundle-3.8.2 for recording.
GeMi
August 3, 2022, 3:39pm
2
It’s a Issue for that:
opened 07:28AM - 19 Jul 22 UTC
closed 07:00PM - 19 Jul 22 UTC
Module - Recorder
Type - Bug
Step to reproduce :
1- launch the recorder ./recorder.sh
2- select HAR
3- … upload sandboxFinanceHAR.har
4- select Java17 (or Java8, Java11, Scala, Kotlin)
4- check output simulation
The simulation output miss the dot "." on the first exec, which triggers a compilation error when running the simulation.
Testing on gatling sample **3.8.2**
Java SDK : **openjdk version "17.0.3" 2022-04-19**
Exemple of HAR file :
[sandboxFinanceHAR.har.txt](https://github.com/gatling/gatling/files/9138489/sandboxFinanceHAR.har.txt)
Exemple of Simulation output (Java 17) :
[Java17RecordedSimulation.java.txt](https://github.com/gatling/gatling/files/9138501/Java17RecordedSimulation.java.txt)
Gatling recorder conf :
[recorder.conf.txt](https://github.com/gatling/gatling/files/9138567/recorder.conf.txt)
```
private ScenarioBuilder scn = scenario("Java17RecordedSimulation")
exec(
http("request_0")
.get("/api/crypto/symbols/")
.headers(headers_0)
)
.pause(12)
.exec(
http("request_1")
.get("/api/crypto/marketcap/min/BTC")
.headers(headers_0)
)
```
Try version 3.8.3 - It’s available from yesterday and should have fix for that
1 Like
Thank you GeMi, I will try using the latest version and will let you know if it is working or not.