How to create random string or Number in artillery load testing script?
问题 For bombarding the server with multiple request with random data in parameters, how can I do it? the message block in artillery script is as below, "message": { "order1": "jngfj2434", "size": "4433", } I need to send order1 with randomstring and size in the range of 1 to 10,000 randomly. 回答1: Below code is working for me. "message": { "order1": "{{ $randomString() }}", "size": "{{$randomNumber(1,10000)}}", } 来源: https://stackoverflow.com/questions/48096569/how-to-create-random-string-or