Problem with accessing response from callback #1345
-
Hi, I need to create a mock for an asynchronous service with callback. Everything would be fine if not for the problem I encountered namely My response definition: And my callback definition: I have tried many solutions unfortunately I have no idea how from the callback level I can get to the variables in the response. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi, There is currently no helper allowing access to the response properties.
But a series of |
Beta Was this translation helpful? Give feedback.
-
Hello @255kb , sorry for the delay. I can finally return to the topic, and indeed, the solution you provided is almost correct. I say "almost" because: Response: This suggests that referencing the variable correlationId causes it to be regenerated, leading to a mismatch. |
Beta Was this translation helpful? Give feedback.
Okay, it seems that after updating to the latest version (9.0), everything works as expected, so we can consider this solution finalized.