Dealing with website with persistent session cookies

How to apply eValid to functional testing of web applications.

Dealing with website with persistent session cookies

Postby RandiO » Mon May 02, 2022 7:15 am

Good morning.

How does eValid handle websites with persistent session cookies?

Thanks in advance.
RandiO
 
Posts: 1
Joined: Mon May 02, 2022 7:11 am

Re: Dealing with website with persistent session cookies

Postby eValid » Tue May 03, 2022 10:56 am

RandiO wrote:Good morning.

How does eValid handle websites with persistent session cookies?

Thanks in advance.


Thanks for asking about persistent session cookies RandiO.

A persistent session cookie, unlike a normal cookie, which is being saved in the cache, cannot be eliminated by simply deleting the cache/cookies during an eValid playback.

To dismiss such cookies, the browser must be closed and opened up again for a new session cookie to be sent to the browser.

This can cause playback problems during LoadTest since the cookie tricks the server into seeing that the LoadTest being run is only a single user trying to access the application since it is using the same cookie.

eValid has a LoadTest command which allows each browser instance in the LoadTest being run to respawn a replacement browser a specified number of times during playback.

The value is given in the eValid preferences.

To set the number of respawn times during a LoadTest, follow these simple steps:

(1) Access the eValid LoadTest Preferences menu by clicking on "Settings > Record/Play Preferences" and selecting the "Load Testing" option.

(2) Enter the number of times you wish eValid to respawn a new copy of the browser during a LoadTest.

(3) Click on "Save"

As soon as the LoadTest is executed, each eValid browser instance will automatically close at the end of the number of runs specified in the preferences and will automatically respawn to continue playback.

This effectively removes the persistent session cookie that is present during playback.


-- eValid Support
eValid
 
Posts: 2235
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to Desktop and Mobile Device Functional Testing

Design Downloaded from free phpBB templates | free website templates | Free Web Buttons