Go to Label Operation

Applies to TestComplete 15.69, last modified on November 13, 2024

Description

The Go to Label operation changes the execution flow and makes an unconditional jump to the specified label. You can use the Go to Label operation to exit from a loop (For Loop, While Loop or Data-Driven Loop) before the loop execution is over.

Requirements

In order for you to be able to add the Go to Label operations to the test, the test must contain at least one Label operation.

Operation Result

The operation does not return any value.

Scripting Analogue

The operation is analogue to the goto statement in Visual Basic and some other programming languages.

Child Operations

The operation cannot have child operations.

Operation Parameters

The operation has one parameter that specifies the name of the destination Label:

An example of the Go to Label operation

Click the image to enlarge it.

See Also

Statements Category
Label Operation

Highlight search results