Our application performs search which could vary based on which user is logged in. When a user logs in, we either execute the last search they executed at the time they last logged in, or execute a default search if they don't have any (say the just logged into the system for the first time).
The logic that determines what search to run happens behind the scene, i.e. (should i run a default search or execute the last search for a given user), and only returns the end results of the search to the user. Since that part is done on the server, the user actually never gets a response of which search was run. They only see the end results of the search.
When recording our scenarios, we need to know which search to run based on the current logged in user.
A request like this is formed, based on which search needs to be executed...
exec(http("request_1")
.post(...)
.headers(..)
.param("search_id", "123")
.param(..)
...)
Since we never returned search_id to a user in any of their response data, we don't know which id to pass in for this request. Also, this are dynamic in nature for a user, so they same search id is not always guaranteed to be tied to a user.
I hope that makes some sense.