Reputation: 1
I have a Test plan which when I run in the Gui Mode execute the sampler one time, but when I start the Test Plan from the command line I get the sampler to be running twice.
I have deleted the result.jtl file to insure that the results are not accumulated. Non gui command:
jmeter -n -t C:\Users\cthakor\Downloads\apache-jmeter-5.4.3\apache-jmeter-5.4.3\bin\examples\Script.jmx -l C:\Users\cthakor\Downloads\apache-jmeter-5.4.3\apache-jmeter-5.4.3\bin\examples\result.jtl
jmeter -g C:\Users\cthakor\Downloads\apache-jmeter-5.4.3\apache-jmeter-5.4.3\bin\examples\result.jtl -o C:\Users\cthakor\Downloads\apache-jmeter-5.4.3\apache-jmeter-5.4.3\bin\examples\HTMLReport
Upvotes: 0
Views: 504
Reputation: 168122
It's hard to say what's wrong without seeing the .jtl results file contents
It might be the case you're getting an extra result due to redirection or to retrieval of the embedded resource
So most probably the dashboard contains correct number of requests, and in GUI the sub-result is being merged into the main sample result.
If this is not something you want to see in the dashboard you can add the next line to user.properties file:
jmeter.save.saveservice.subresults=false
More information:
Upvotes: 0