Unanswered question

When a user consumes from a shared queue, does the value have to be removed?

I have a unique situation where I need to created one token and share the value among 50 users hitting another API with a rendezvous point. So it will be just one value shared among all the other users for the remainder of the test. I noticed in the documentation that the consumer option will remove the value from the queue. Is there anyway for that one value to be shared among all users throughout a test?

Jeremy S.
Jeremy S.

Jeremy S.

Level
0
36 / 100
points

Answers

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

You're right by default if a value is consumed then it is removed from the shared queue.

However, when you consume a value using a Javascript, there's two methods. One will consume the value like with the variable modifier but the other can also consume it without removing it.

A link from NeoLoad documentation here

So if you use the "peekSharedValue" method i guess it should suit your needs.