Open topic with navigation

# Global Functions

Use the functions in the LFT namespace to build the framework of your test:

## afterTest

afterTest() → {void}

Call this function after each test method.

Return type

Void

## beforeTest

beforeTest() → {void}

Call this function before each test method.

Return type

Void

## cleanup

cleanup() → {void}

Performs an SDK cleanup when connection ends.

Return type

Void

## init

init(config) → {Promise.<void>}

Initializes the SDK with the specified configuration.

Parameters

Name | Type | Description
--- | --- | ---
`config` | string | The SDK configuration

Return type

Promise.<void>