简体   繁体   中英

JMeter Issue during generating HTML report

I've wrote tests few days back and they worked without problem.

Now when I try to run them, they exit with code 1 and error message:

An error occurred: null

I'm running it on TeamCity

.jtl file is created with no problem.

Here is fragment of log from run.

[17:03:02][Step 2/2] jmeter args=-g tests/report/dynamic-checkout.jtl -o tests/report/dynamic-checkout
[17:03:03][Step 2/2] Dec 05, 2019 4:03:03 PM java.util.prefs.FileSystemPreferences$1 run
[17:03:03][Step 2/2] INFO: Created user preferences directory.
[17:03:03][Step 2/2] An error occurred: null
[17:03:03][Step 2/2] Process exited with code 1
[17:03:03][Step 2/2] Process exited with code 1 (Step: Performance Tests Execution (Command Line))
[17:03:03][Step 2/2] Step Performance Tests Execution (Command Line) failed

I've tried to find solution, but I've just found few articles that are about java version. Solution provided in other issue on stackoverflow:

alternatives --config java

When I tried to use this, TeamCity shows me, there is only 1 java version and that is selected.

EDIT: I've just found out, that even the test itself run for 0 seconds.

Error message is very generic, be helpful if there was more to go on. If you are open to try this out, I'd recommend you try and use blazemeter taurus and see if it can run your test, taurus automatically install all plugins and dependencies.

So if your issue is caused by a missing plugin then this should fix it.

Looking into command-line arguments you're not running the tests, you're trying to generate a HTML reporting dashboard out of the existing .jtl results file .

Most probably you're getting the error because your tests/report/dynamic-checkout.jtl is empty, double check that it is present, not empty and its content matches Result File Configuration properties

The reasons for previous JMeter test failure or dashboard generation failure normally should be reflected in jmeter.log file .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM