Skip to content

How to stop once a user finishes it's set of Tasks. #567

@thekgt44

Description

@thekgt44

Hi, I am using locust for load testing of my app. I am using it with Selenium. The Flow of test is :

  1. User opens the web app, which takes him to login page.

  2. Web-driver finds elements for username, password, and Sign in button. Enters respective values, and when clicks sign in buttons.

  3. then navigates to a page, lets call it page X. (Page X is protected by login).

  4. When page X load, it triggers 5 queries in the back-end. I want to get the number-of-queries/Sec.

    Everything goes fine till step 3, but after opening, page X, it gives me 'NoSuchElmentException'. Reason: after finishing the task, Locust fires the task again for that particular user. Now browser is on page X, the test started again, so it searches username and password field on page X, which triggers, aforementioned exception. I thought to get around this problem by closing driver, but then I get no such window exception.
    So, I want to stop the test for that particular user, after he gets into page X.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions