You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why though? Are you specifying different hosts in different tasks for something like load balancing? Trying to load test multiple hosts with one locust instance?
I don't know if it's possible to re-open this issue.
My use case is that the URL changes during the load test. I initially hit a login host which gives me the authentication token I need to access the application under test.
POST("http://login.server.com", data="...."), grab auth_token from response
GET("http://app.server.com", header=(auth_token:"blahblah")
This is a very common scenario with most companies (at least the last 3 that I have worked with)
LoadRunner and jMeter handle this just fine, I'm trying to use locust as a proof of concept for the first time and I'm running into this issue.
Description of issue / feature request
I am trying to run locust without having to specify the host parameter nor the host variable
Expected behavior
I should be able to run locust and to specify the full url when using client.get or client.post
Actual behavior
I get an exception when trying to run locust without the host. It says that the host is required to run locust.
Environment settings (for bug reports)
Steps to reproduce (for bug reports)
Just run locust without specifying the host at all. In your script, add the full URL when calling client.get or client.post.
The text was updated successfully, but these errors were encountered: