-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jmeter report doesnt created #6329
Comments
add jmeter arg |
this is th code i use kubectl cp -c jmmaster "/tmp/scenario.properties" -n "${namespace}" "${master_pod}:/tmp/scenario.properties" shellcheck disable=SC2145echo "slave_array=(${slave_array[@]}); index=${slave_num} && while [ ${index} -gt 0 ]; do for slave in ${slave_array[@]}; do if echo 'test open port' 2>/dev/null > /dev/tcp/${slave}/1099; then echo ${slave}' ready' && slave_array=(${slave_array[@]/${slave}/}); index=$((index-1)); else echo ${slave}' not ready'; fi; done; echo 'Waiting for slave readiness'; sleep 2; done" >"/tmp/load_test.sh" |
The error message wants to tell you, that the sample log file already exists and is not empty. To fix this, discard the file (save it somewhere?) before starting the test run. Maybe workflow.creationTimestamp is constant relative to all your test runs? PS. Why do you use so much "echo 'some shell code'" that seems quite unreadable to me. And instead of disabling a shell-check rule, try to fix the code. |
@mohamed-atef2022 Why you show some shell code? you could add jmeter arg jmeter -n -t script.jmx -l result.jtl -e -o ./report -f |
i tried to solve it by fixing the echo commands |
@linvaux while i am using -f in jmeter command |
|
i tried to add the flag itself |
It looks like your report directory is not empty when jemter generating report, could you check the report dir is empty? |
i jus checked it |
@mohamed-atef2022 emm,you want to use jmeter cluster to run test and generate report? |
i am trying to run jmeter through argowork flow , the flow is working fine here is the logs and the reports is created empty without any data , i am tried many options but cant solve it
``
024-08-06 13:44:09,121 ERROR o.a.j.JMeter: Error in NonGUIDriver
java.lang.IllegalArgumentException: Results file:/report/zuhauseplus_debug_test.jmx_2024-08-06_134252.jtl is not empty
at org.apache.jmeter.report.dashboard.ReportGenerator.(ReportGenerator.java:140) ~[ApacheJMeter_core.jar:5.6.3]
at org.apache.jmeter.JMeter.runNonGui(JMeter.java:1007) [ApacheJMeter_core.jar:5.6.3]
at org.apache.jmeter.JMeter.startNonGui(JMeter.java:940) [ApacheJMeter_core.jar:5.6.3]
at org.apache.jmeter.JMeter.start(JMeter.java:508) [ApacheJMeter_core.jar:5.6.3]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at org.apache.jmeter.NewDriver.main(NewDriver.java:259)
The text was updated successfully, but these errors were encountered: