-
Notifications
You must be signed in to change notification settings - Fork 3k
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
How to stop once a user finishes it's set of Tasks. #567
Comments
try setting but usually it's not very useful to just run one iteration |
Won't this work: http://docs.locust.io/en/latest/writing-a-locustfile.html#the-on-start-function ? or am I missing something as to what you are trying to do? |
Okay if anyone can help me with this: |
@thekgt please open a new issue rather than hijacking this one |
Did this every get resolved? |
Hi, I am using locust for load testing of my app. I am using it with Selenium. The Flow of test is :
User opens the web app, which takes him to login page.
Web-driver finds elements for username, password, and Sign in button. Enters respective values, and when clicks sign in buttons.
then navigates to a page, lets call it page X. (Page X is protected by login).
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.
The text was updated successfully, but these errors were encountered: