Introduction
In certain scenarios, you might want all the steps to be executed in the same session. However, in other scenarios, you might want to clear the session and the cookies before certain steps.How Sessions Work in Endtest
When you execute a Web Test, a real browser is started, and the instructions from your test are executed in that browser. All the test cases from that Web Test will be executed in the same browser session, one after another. This means that if the test performs a login in your web application at some point, it will stay logged in until the end of the entire test execution. After the test execution is completed, the browser and the session are cleared, and the data is deleted from the machine on which the test was executed.How to Clear the Session
In some scenarios, you might need to clear the session and the cookies. There are different methods in theMiscellaneous
action that you can use:
- Delete Cookies
- Clear Local Storage
- Clear Session Storage