markhs
15 years agoContributor
Static properties
Hi,
I have a test scenario where i need to make several requests, and be able to correlate them with a UUID.
I can generate the UUID either by assigning a property the value '${=(UUID.randomUUID())}', or using '${=(UUID.randomUUID())}' inline in a request body.
My problem is - each time i reference the property (or the field in a request that has been assigned the generated UUID) - ${=(UUID.randomUUID())} is re-evaluated and a new UUID is generated.
What i need is a single UUID per test run that can be used in each request of the test case.
Any ideas?
Thanks,
Mark
I have a test scenario where i need to make several requests, and be able to correlate them with a UUID.
I can generate the UUID either by assigning a property the value '${=(UUID.randomUUID())}', or using '${=(UUID.randomUUID())}' inline in a request body.
My problem is - each time i reference the property (or the field in a request that has been assigned the generated UUID) - ${=(UUID.randomUUID())} is re-evaluated and a new UUID is generated.
What i need is a single UUID per test run that can be used in each request of the test case.
Any ideas?
Thanks,
Mark