Hey I'm trying to create a test where each user execution POSTs a form
with a unique email address. I was thinking I could maybe plug into
the session and use the userId for this (assuming this value is unique
across all users in an execution). Is that a valid assumption? I
tried this:
Do you have any suggestions for the best practice for generating a
semi-random value for each user execution? Is the userId a good
choice? Or should I use a random generator? I don't need crypto
level random or anything just something that's very likely to be
random for each user execution.
And as an extension to that is there a good way to inject an arbitrary
value into the session without a check? For instance I want to create
a fake unique email for each user. It would be nice if at the
beginning of each execution I could inject an arbitrary value into the
session something like:
A feeder will inject data in a given session every time the corresponding “user” runs it. So if you want to inject data once per user run, simply set the feeder at the beginning of the scenario.
In 1.0.x, there’s only 1 implementation of FeederSource that reads from a file. There’s another implementation in the master (so for 1.1.0) that reads from a database.
Depending on your level with Scala and what you’re trying to achieve, the easiest solution would be :
either to pre-generate your data, dump it into a file and use a standard file feeder