Titan



stop

0. Terminating execution

1. Stopping components

2. Stopping ports

3. Stopping timers

4. Stopping the profiler


0. Terminating execution

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;


Examples:


1. Stopping components

Related keywords:


[ component_reference.] stop;  


See Examples


2. Stopping a port


The keyword may be used to stop a port.

Related keywords:


port_reference.stop;


3. Stopping  timers


The keyword may be used to indicate that a timer should stop running.

Related keywords:


( timer_identifier | all timer ).stop ;


It is possible to stop a member of an timer array.


  timer_identifier[array_index].stop;

Examples


Example 1a:

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).


Example 1b:

stop;

The test case execution is interrupted.


Example 1c:

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.


Example 2a:

Kapu_PCO.stop;

The port Kapu_PCO will be stopped.


Example 2b:

all port.stop;

All ports will be stopped.


Example 3a:

T_soek.stop;

The global timer T_soek is stopped provided that it was running, otherwise the command has no effect.


Example 3b:

all timer.stop; 

The local timer Tl_foerlorad is declared (1st line) and stoped with a duration of 20 ms (2nd line).


Example 3c:

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