Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如官方 loadimpact/k6 文档中所示,我们能够执行 k6 脚本,如下所示:
k6 run github.com/loadimpact/k6/samples/http_get.js
是否可以将自定义命令行参数传递给 k6 测试?例如,假设我想传入一个 URL,然后从脚本中引用这个 URL。
是否支持开箱即用?如果是这样,我该如何做到这一点?
这个用例实际上在文档中得到了很好的介绍,我只是碰巧错过了它。
https://docs.k6.io/docs/environment-variables