Slaym
May 14, 2024, 1:27pm
1
Gatling version : 3.11.2 (must be up to date)
Gatling flavor : java
Gatling build tool : maven
Hello, I work with gatling to write a java script test load.
I want to lunch the script in java code main function as is mentioned in this discussion :
Hey there!)
I have some experience with the contribution to Gatling and during this I used simple tests to check new functionality, etc. But, currenlty I would like to run a scenario. A long time ago, if I clearly remember, I launched some scenarios, but unfortunately I forgot how.
Can you provide steps or instructions for that?
Thank you!
But the class GatlingPropertiesBuilder does not exist anymore in the Gatling 3.11.2 version
So my questions :
This class is what it was replaced by another class ?
How I can run my simulation script in main java function in Engine Class like is described in the conversion :
public static void main(String[] args) {
GatlingPropertiesBuilder props = new GatlingPropertiesBuilder()
.resourcesDirectory(IDEPathHelper.mavenResourcesDirectory.toString())
.resultsDirectory(IDEPathHelper.resultsDirectory.toString())
.binariesDirectory(IDEPathHelper.mavenBinariesDirectory.toString());
Gatling.fromMap(props.build());
}
thanks in advance
Hello,
These classes were removed.
You now have to launch Gatling from your build tool, which is something you can easily do from your IDE.
Please check Build tool plugins for Gatling
Slaym
May 14, 2024, 1:40pm
3
Hello slandelle,
Thanks for your reply
So, I understand that running a script from source code is no longer possible in version 3.11.2 ?
AND I must use maven (or gradel) commands like : mvn gatling:test
Please do you confirm this to don’t waste time finding a solution
Yes, that’s exactly what I’m saying.
system
Closed
June 13, 2024, 1:44pm
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.