Hello,
I’m having some problems passing saved values between requests. Here is an example script:
.get("""/myrequest""")
.resources(http(“MyRequestResources”)
.get(uri1 + “”"/anotherRequest""")
.check(regex(“Param1”).exists)
.check(regex(“Param2”).exists)
.check(regex("""<Param1""").saveAs(“Param1”))
.check(regex("""""").saveAs(“Param2”)),
http(“NextRequest”)
.post(uri1 + “”"/nextrequest""")
// .formParam(""“Param1"”", “${Param1}”)
// .formParam(""“Param2"”", “${Param2}”)
When I execute the script the ‘NextRequest’ step fails staging that ‘Param1’ and ‘Param2’ have not been defined. Is this something to do with the state of the session?
Any help is appreciated.