随笔分类 -  文档翻译

翻译各类的技术文档
摘要:使用配置选项 通过命令行参数来设置通过环境变量设置。例子: LOCUST_LOCUSTFILE=custom_locustfile.py locust 可以由配置文件格式的配置文件设置。默认情况下,Locust 将查找~/.locust.conf 和./locust.conf,您可以使用 --con 阅读全文
posted @ 2022-03-21 23:29 波小艺 阅读(903) 评论(0) 推荐(0)
摘要:现在,让我们看一个更完整/更真实的测试示例: import timefrom locust import HttpUser, task, betweenclass QuickstartUser(HttpUser): wait_time = between(1, 5) @task def hello_ 阅读全文
posted @ 2022-03-21 23:19 波小艺 阅读(278) 评论(0) 推荐(0)