我是 Gatling 工具的新手,试图从另一个文件传递多个标头值,但在编译时遇到错误。
代码:
val header0 = List(Map(
"Ocp-Apim-Subscription-Key" -> TestParameters.Keyvalue,
"UserId" -> TestParameters.UserID
))
错误:
ingInformation.scala:22:13: type mismatch;
found : scala.collection.immutable.Map[String,java.io.Serializable]
required: Map[String,String]
.headers(header0)
^