 and (dlcb!dlc (1) !state = connected) and (dlcb!dlc(2) !state = connected) ; echo 'Replay cnx2.scn OK' test_resl.wri; 31 else ; define test failed True; echo Error found in cnx2.scn test_resl.wri; return to step 0 source retry . scn -- now check that retry1.scn executed till the end (step 26) and that queue of process dispatch contains signal DLCstopped: if (step=26) and (dlca!dispatch ! queue (1) !name = DLCstopped) i echo 'Replay retry1 scn OK' test_resl.wri; else ; define test failed True; echo 'Error found in retry1.scn test_resl.wri; test_resl.wri 48 if $test failed ; echo TEST FAILED; see test_resl.wri *** test resl.wri 51 else ; echo TEST PASSED' test_resl.wri Here are a few explanations on the script: The character \ means continue on next line. Line 4: define test_failed False: defines the value test _failed and sets it to False. Line 7: echo 'Execution of script1. wri: test_resl.wri: writes 'Execution of script1.wri: in the simulator trace and into the file test_resl.wri. Line 11: source test1. scn: same as loading scenario testl.scn and redoing all. Line 14: if (step=41) : step contains the current step number; we know that the scenario in testl.scn has 41 Steps; if after replay the step number is lower than 41, it means that the scenario did not run completely. Interactive Simulation 95 Line 14: DLCa!dispatch!DLCs = (. . Null.) : DLCs is an array declared in process dispatch; after the scenario replay, we know that all its elements must contain Null. Line 16: if the conditions above are true, we write 'Replay testl.scn OK' into the file test_resl.wri, otherwise we write 'Error found in testl.scn' and we set test t_failed to True. Then we repeat a similar code for scenarios cnx2.scn (line 23) and retryl.scn (line 37), with different conditions. Line 48: finally, if test failed contains True, we write TEST FAILED, otherwise TEST PASSED. Once you have typed the script into the file scriptl.wri45 (do not type the line numbers), execute it: A. Launch the Simulator. B. Click the Simulator button Traces: Of