update the session variables with values from response
Call the gRPC method until the value of session2 variable becomes 0
group(“test case”) {
exec(
session => {
session.set(“session1”, “*”).set(“session2”, 1)
})
.exec(
grPCAPI(<>)
extract session 1 and session 2 and update initial values of the variables
} <<do it until session2 is 0>>
Can you give an example of your code, that shows the use of session2. I can’t help much without seeing. I misplaced my crystal ball, trust me it’s been difficult to debug my own code lately
grpcMethod is the helped method that passes this session2 variable to the actual gRPC call. It is in passing that session2 variable as a parameter I am facing issues.I think I am not using it the right way as a result instead of replacing with the value of session2, the function passes the exact string
“#{session2}” thereby failing the grpc call
exec(
session => {
session.set("session1", "xyz")
session.set("session2", 1) // only this one is set, last statement in a function is the return statement
})