Share this page

# 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>

Tips to improve your search results... UFT Developer JavaScript SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: