Open matidmarino opened 2 years ago
I get the same behaviour. I even tried with a custom JS function which overwrites that field with a value converted to string, but somehow Artillery still sends it as an INT.
I tried custom js function as well and that didn't work either. But found in the documentation that passing cast: false
will not change the type from string to int.
https://www.artillery.io/docs/guides/guides/test-script-reference#payload-file-options
I want to send a numeric string in the json body but artillery converts it to an int. For example:
I want user_id be sent as a string and not as a number ("100" instead of 100). I tried a beforeRequest hook to make the conversion and it didn't work.