Quantcast
Channel: Active questions tagged feed - Stack Overflow
Viewing all articles
Browse latest Browse all 547

Gatling use session.set and feed simultaneously

$
0
0

If I use .get("/***/quotes-${endPoint}/quotes?source=rtbp&userid=test&symbol=${pTypeSymbol}${authM}${pEqSymbol}") then ${pEqSymbol} work but${pTypeSymbol} will be ${pEqSymbol} it's incorrect example of get it should be in code below

val getApiKeyScenario = scenario("getApiKey")    .feed(getApiKeyData)    .feed(pEqSymbolFeed)    .feed(pOptionSymbol)    .feed(pOtherSymbol)    .exec(session => session      .set("endPoint", "v1")      .set("pTypeSymbol", "${pEqSymbol}")      .set("authM", "&apikey=***********"))    .exec(http("getApiKeyRequest")      .get("/******/quotes-${endPoint}/quotes?source=rtbp&userid=test&symbol=${pTypeSymbol}${authM}")      .check(status.is(200))      .check(checkIf(doLogResponse) {        bodyString.saveAs("pResponse")      })    )    .doIf(doLogResponse) {      logResponse()    }

If I try .set("pTypeSymbol", pEqSymbolFeed.readRecords.head("pEqSymbol")) will be loopIf I try .set("pTypeSymbol", s"${pEqSymbol.isDefined}") not found: value pEqSymbolIf I try s"${pEqSymbol}" not found: value pEqSymbol

I logs now is GET *******/quotes-v1/quotes?source=rtbp&userid=test&symbol=${pEqSymbol}&apikey=******But should be GET *******/quotes-v1/quotes?source=rtbp&userid=test&symbol="Here my value from feed"&apikey=******


Viewing all articles
Browse latest Browse all 547

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>