Answered question

How to make the parent thread wait until a step in a fork is completed?

Scenario is this:

1. User navigates to home page.
2. A large resource is requested but the user can log in asynchronously.
3. User waits after login for resource to finish loading before proceeding.

I want to use a fork to request the resource, but how can I make the parent thread wait until the child request finishes loading (or times out?)

Michael M.
Michael M.

Michael M.

Level
0
52 / 100
points
christophe M.
christophe M.

christophe M.

Level
4
5000 / 5000
points
Team

Dear Michael, you should use a "Wait for" action that waits that a variable value has changed with the expected value. Use an extractor in the last request of the asynchronous step.

Did you find this useful ?

No (0)

Yes (2)

100%

100% of users found this answer useful

Other answers

Michael M.
Michael M.

Michael M.

Level
0
52 / 100
points

OK, I see. I had already tried this technique but it seems I must use a variable in the fork that does NOT already exist in the parent thread, otherwise the value change is not in the parent scope.

Thanks.