性能测试工具 如何使用 gatling3.3 公用模块 sign 方法重写 url

ZengTester · November 20, 2019 · 837 hits

我在使用 gatling3.1 时使用同样的方法去重写签名没有问题,但是在 3.3 上不能重写成功了 请问有谁知道怎么解决呢

object testSign {
val testdata = exec(
http("aaa")
.get("http://127.0.0.1:8808/test/asdasd?a=1&b=2")
.sign(new SignatureCalculator {
override def sign(request: Request): Unit = {
request.getUri.withNewQuery("aaa=123&sadasd=dddddd")
}
}))
}

No Reply at the moment.
需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up