Hello,
I have to load test a web page that has about 10 ajax calls. Some ajax calls return raw input for other ajax calls. I was able to successfully transform data of some ajax calls and use it in the same simulation later.
But for one of them I am somewhat stumped.
Here is the scenario
val AjaxCall = .exec(..) . get(...) . check(jsonPath(...).findAll . saveAs("myName")
myName variable returns a Vector, since jsonPath has multiple rows.
`
def MyProgram (input:Vector) : String ={
do stuff
return myString
}
`
if I do the following, then it does not work
`
val NextAjaxCall = .exec(…) . get(… + MyProgram(“myName”.as[Vector]))
`
I am sure there is an easy way to do it. If someone can point me in the right direction.
Thanks,
Abhinav