Skip to content
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

--html doesnt work in web mode #1944

Closed
charlielinz opened this issue Nov 25, 2021 · 4 comments · Fixed by #1992
Closed

--html doesnt work in web mode #1944

charlielinz opened this issue Nov 25, 2021 · 4 comments · Fixed by #1992
Labels

Comments

@charlielinz
Copy link

Describe the bug

There is no any setting description about the html option in doc. Only said it "Store HTML report file". No any value example.
I tried "true", "html_prefix_like_csv" and it doesn't work. Can any one tell me what value should I set and where would be the report saved, and is there any way to customized the report html format?

Expected behavior

Actual behavior

Steps to reproduce

Environment

  • OS: MacOS
  • Python version: 3.9.0
  • Locust version: 2.5.0
  • Locust command line that you ran: locust
  • Locust file contents (anonymized if necessary): i set html = report.html in locust.config
@Aiu-Spring
Copy link

Also face the same problem at version=2.5.0, just configuration the html = xxxx.html in the locust.conf file can not working, there is no xxx.html output ,but if wen running on the command line add the args '--headless --html=xxxx.html -t 10s ' will see the html been output.

@cyberw
Copy link
Collaborator

cyberw commented Dec 8, 2021

Probably my fault, probably somewhere in main.py. Dont have time to fix it though, maybe you have time yourselves?

@RafalPatro
Copy link

Automatic html report seems to work only in headless mode. I suppose it isn't a bug.
You need add 'headless' to your locust.conf or as a command line argument.

@cyberw
Copy link
Collaborator

cyberw commented Jan 25, 2022

I think this is a bug, it should work in ”headful” as well.

@cyberw cyberw changed the title config option of html didn't work --html doesnt work in web mode Jan 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants