# kill

The kill operation results in annihilation of a component. It operates similarly to the stop operation but even the alive components are unable to execute functions any more after they were killed.

- When used in a test case, altstep or function that are executed on a test component, the keyword terminates the relevant test component;
- When prefixed with a component reference, than the addressed remote component will be killed;
- When prefixed with the all component keyword pair, all components except the main test component will be killed.

Related keywords:

- all
- component
- create

### [ component_reference.] kill;

- The optional component_reference (used when other than the own component should be killed) is one of the following:

  - a reference returned by the create operation to refer to a given component,
  - the keyword pair all component when referring to all parallel test components (the command must be issued in the main test component),
  - the keyword self when referring to the own component,
  - the keyword mtc when referring to the main test component.

- The kill keyword denotes that (a) component(s) should be killed.

Examples:

Example 1a:

`self.kill;`

The own test component is terminated.

Example 1b:

`vc_Hivatkozaas.kill;`

The component with the reference vc_Hivatkozaas is killed.

Example 1c:

`all component.kill;`

All parallel test components are killed.

Example 1d:

`self.kill;`

The own test component is killed.

BNF definition of component kill