question

Maggie avatar image
Maggie asked ericnute edited

iTest parallel session step failure handling

I searched a little bit but didn't find similar questions or answers. Here is my problem: The script login to 20+ DUTs simultaneously doing same download task which would take 10-15 minutes. If every session come back successfully, then test case end successfully with correct result. However, if one session failed while others still downloading (say one DUT session timed out or download was interrupted, then that session end with a "failed steps"). Then the whole test case just stopped and quit and killed all other still running sessions, looks like one failed session end everyone. I think there must have a way to tell the test case to only fail one session, but continue with other good sessions. I still want error report of one session failed or test case failed, but keep running sessions finished. When I started the parallel step, I specified thread name as DUT IP I have a "waitthread ip1 ip2 ip3 ..." before I actually decide test fail or pass and end the test case. Attached is a demo script of my problem(I put a sleep there to let the thread running). If I give all 3 dut_IP correctly, then test case end correctly without error. If I give one wrong dut IP address, then once the login timeout, then all 3 parallel session end together. [link text][1] Thanks, Maggie [1]: /storage/temp/3875-practise_parallel.fftc
iTestthreadserror handling
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Yaseen avatar image
Yaseen answered
When a session fail to connect to the Device, iTest triggers the "OnTerminalOpenConnectionFail" event and performs the action specified under it, in which the abort execution is included. As a result, the execution get ended without completing the remaining commands, So to overcome this, Go to Global Events section of the test case, filter for above event and click on it, uncheck the inherit option, and select the "abort execution" and delete it. ![alt text][1] We could also, perform the same at the individual step level under step properties > Events for the open steps. Hope this information helps! [1]: /storage/temp/3880-abortexecution.jpg
1 comment
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Maggie avatar image Maggie commented ·
Thank you Yaseen! This is exactly what I was looking for. I tried a few other error handlings, didn't find the correct one. Now, it's working well.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.