Hi
@NikosG,
I don't know much about the different scan options in the sec component, but it appears from your post, you just want unique values for your id attribute....otherwise hardcoding the value will just result in your POST updating the existing record rather than creating a new record (if your POST method supports both create and update).
I use several options to support dynamic values in my tests, depending on the field length of my id attribute.
If the id field supports GUID lengths then you can replace your hardcoded value with
'${=java.util.UUID.randomUUID()}'
Which will generate GUID value such as '749ea0d5-ebe8-4f96-85c0-6e1121cbb8a9'
Or you if your id supports say just 13 digits you could use the following:
'${=System.currentTimeMillis()}'
Which generates the current time value into a milliseconds value such as '1566669888473'
I've also used a date generator (when i knew the test would never be executed > once per day with only 10 digits length to use such as
'${=(new Date().format('dd-MM-yyyy'))}'
Which generates a value such as '24-08-2019'
Does that help?
Cheers,
Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta