I am having lots of 401 errors, trying to do load testing. I looked at some previous q&a and suggested using variable to store dynamic session and token ID can solve this issue. But I am having difficulties getting the value. any suggestions?
At a first glance everything looks correct.
I would recommend the following:
-- Add two Custom Message operations after request/response pair where Variable1 and Variable2 are getting their values and output their values to check that correct values were extracted;
-- Check test log for the failed requests and verify that correct cookie values were sent in requests - I expect that some part of cookie might be corrupted during replacement (Secure, Path, SameSite parts).
-- You may also try to utilize Developers Tools in, say, Chrome, record the same traffic you are trying to simulate in LoadComplete and compare requests recorded in Chrome and issued by LoadComplete.
If nothing from above helps and you are allowed, you may send me a private message via this forum and we may consider some screen-sharing session.
After creating Session variables like sess.email , we can check whether this variable is set or not in other routers and can track the Session easily. Tracking session in global variable won’t work with multiple users. This is just for the demonstration. Project Structure. We are going to put all of Server side code in the server.js file.
you can take the more information then click here Google Contact