artillery

How to create random string or Number in artillery load testing script?

这一生的挚爱 提交于 2021-01-22 06:00:08
问题 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

How to create random string or Number in artillery load testing script?

偶尔善良 提交于 2021-01-22 05:59:06
问题 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

Artillery: How to publish artillery html report charts into Azure DevOps CI/CD pipeline?

南笙酒味 提交于 2020-02-24 11:02:29
问题 I am working on a requirement where I have to generate the load test report using artillery tool and publish the report stats into our Azure DevOps pipeline. Artillery generates the report into html format and same I want to show into Azure DevOps pipeline. How can i do it? I know Azure pipeline supports only Junit reports but still is there a way I can publish the artillery HTML report? 回答1: If without any plugin or extension support, until now, the HTML report would not be compiled