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

Template with multiple tagged tasks in separate functions #9

Open
arthurzenika opened this issue Feb 8, 2024 · 1 comment
Open

Comments

@arthurzenika
Copy link

A use case I'm looking into would be to split the generated locust file into multiple tasks according to the path detected in the url.

For example I'm browsing on a web application that has multiple modules, for example /todo, /calendar, /news, and I would love to have har2locust generate separate tasks for each "prefix" so that I can launch locust to load tests only one module at a time...

# snip 
    @tag('news')
    @task
    def news(self):
        with self.client.request(
            "GET",
            "/news/latest",
# snip
@cyberw
Copy link
Collaborator

cyberw commented Feb 8, 2024

Sounds like a cool idea, but would require some work. PRs welcome!

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

No branches or pull requests

2 participants