简体   繁体   中英

Gatling script gives error and report isn't generated

I directly call the method in Java SDK with a gatling script. That reports an error, but the report cannot be generated.

How can I resolve this?

The script is as follows:

def putObject  =

        exec(
          session => {
          oxsProxyService.putObject(key, buffer)
          session
        })



  val PutObject: ScenarioBuilder = scenario("PutObjectSimulation")

      .exec(putObject)


  //3注入用户
  //同时请求
  setUp(PutObject.inject(atOnceUsers(1))).protocols(RequestUtil.getHttpProtocol)

在此处输入图像描述 The error message

Gatling is telling you that it couldn't record any stats, which is entirely true as you didn't use any of its modules such as its HTTP support, but actually used it to trigger some custom arbitrary code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM