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

Cannot run locust without specifying the Host parameter #851

Closed
colutti opened this issue Jul 25, 2018 · 3 comments
Closed

Cannot run locust without specifying the Host parameter #851

colutti opened this issue Jul 25, 2018 · 3 comments
Labels

Comments

@colutti
Copy link

colutti commented Jul 25, 2018

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)

  • OS: Mac OS High Sierra
  • Python version: 3.7
  • Locust version: 0.8.1

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.

@colutti colutti changed the title Cannot fun locust without specifying the Host parameter Cannot run locust without specifying the Host parameter Jul 25, 2018
@spayeur207
Copy link

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'm confused by the possible use case here.

@ecc256
Copy link

ecc256 commented Jul 30, 2018

I'm confused by the possible use case here.

Here is one: #581

@cyberw cyberw added the wontfix label Oct 31, 2019
@cyberw cyberw closed this as completed Oct 31, 2019
@ezeller
Copy link

ezeller commented Feb 9, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants