-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Description
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.