12-15-2010 09:21 AM
Hello,
I'm using the rendezvous synchronization to execute more then 1 test in parallel but I can't get the status of the threads I ran. I did a force failure in one of them but I can't see the result.
Once a get to the rendezvous point at the end of the thread, it only says "Done" for the result but I know there is a failure since I insert a step with "force fail" option.
Thanks
Solved! Go to Solution.
12-15-2010 09:30 AM
You need to add a wait step and have it wait on that thread.
12-15-2010 09:36 AM
Main sequence :
step rendezvous (operation create)
step sequenceCall (new thread #1)
step sequenceCall (new Thread #2)
step rendezvous (operation rendezvous)
Inside new Thread #1
step wait
step action with force fail
rendezvous
Inside new Thread # 2
step wait
step rendezvous
Back to main sequence at the end, no failure seen by the main sequence.
Why????
How do I get the failure from thread #2??
12-15-2010 09:39 AM
You need to have a Wait step for each thread you wish to get the result of in your MainSequence. Choose "Thread" for the option, and select the sequence call you are calling a new thread. For #2, do the same thing. I would put these at the end of your MainSequence's Main group (or anywhere else you want them to wait).
12-15-2010 10:01 AM
Thanks!
It works.