FunctionAccess

class FunctionAccess
Add(functionKey, functionFile='', functionPort='')

Adds a function to the function access.

Parameters:
functionKey : str

Name of the function to add

functionFile : str

Name of the function file

functionPort : str

Name of the function port

Returns:

The function which was added

Return type:

Function

Clone()

Call this method if you want to use API-objects in multiple contexts, e.g. if you want to insert a specific test step in multiple blocks.

Returns:

A copy of this object

Return type:

FunctionAccess

Delete(functionKey)

Deletes a function.

Parameters:
functionKey : str

Name of function to delete

Get(functionKey)

Returns a function object.

Parameters:
functionKey : str

Name of the function

Returns:

The function object

Return type:

Function

GetAll()

Returns a list of the names of all the functions.

Returns:

List of names of all functions

Return type:

list[str]