![]() |
![]() |
![]() |
![]() |
![]() |
The stop statement is used to terminate test execution. Whenever a stop statement is reached, the execution of the underlying testcase is immediately terminatef. The result of execution will be error.
stop; |
Related keywords:
[ component_reference.] stop; |
The optional component_reference (used when other than the own component should be stopped) is one of the following:
The stop keyword denotes that (a) component(s) should be stopped.
See Examples
The keyword may be used to stop a port.
Related keywords:
port_reference.stop; |
port_reference points out the port to be stopped.
the keywords all port may be used to indicate that all defined ports must be stopped (see the example 2b).
The stop keyword introduces port stopping.
The keyword may be used to indicate that a timer should stop running.
Related keywords:
( timer_identifier | all timer ).stop ; |
timer_identifier is the name used to refer to the timer. It must begin with a letter, may contain letters, numbers and underscore characters.
It is possible to stop a member of an timer array.
timer_identifier[array_index].stop; |
timer_identifier is the name used to refer to the timer. It must begin with a letter, may contain letters, numbers and underscore characters.
array_index points out the timer to be stopped.
self.stop;
The own test component is terminated. (The command was issued in a test case, altstep or function that are executed on a test component).
stop;
The test case execution is interrupted.
vc_Hivatkozaas.stop;
The component with the reference vc_Hivatkozaas is stopped.
Example 1d:
all component.stop;
All test components except the main test controller are stopped.
Example 1e:
self.stop;
The own test component is stopped. It has the same effect as in example 1a
Example 1f:
mtc.stop;
The main test component is stopped.
Kapu_PCO.stop;
The port Kapu_PCO will be stopped.
all port.stop;
All ports will be stopped.
T_soek.stop;
The global timer T_soek is stopped provided that it was running, otherwise the command has no effect.
all timer.stop;
The local timer Tl_foerlorad is declared (1st line) and stoped with a duration of 20 ms (2nd line).
timer Tl_Denfert[2] := {-, 1E-1, -};
Tl_Denfert[1].stop(20E-3);
The array of local timers declared is called Tl_denfert and consists of three timers . The second timer has the default value of 100 ms, the others have no default value(1st line). The second timer in the array is stoped for 20 ms, overwriting the default value of 100 ms (2nd line).
BNF definition of component stop
BNF definition of timer stop