Table of Contents

Class TeaPieVariablesExtensions

Namespace
TeaPie.Variables
Assembly
TeaPie.dll
public static class TeaPieVariablesExtensions
Inheritance
TeaPieVariablesExtensions
Inherited Members

Methods

ContainsVariable(TeaPie, string)

Determines whether a variable with the specified name exists.

public static bool ContainsVariable(this TeaPie teaPie, string name)

Parameters

teaPie TeaPie

The current context instance.

name string

The name of the variable to check for existence.

Returns

bool

true if a variable with the specified name exists; otherwise, false.

RemoveVariable(TeaPie, string)

Attempts to remove the variable(s) with the specified name from all levels (TestCaseVariables, CollectionVariables, EnvironmentVariables, GlobalVariables).

public static bool RemoveVariable(this TeaPie teaPie, string name)

Parameters

teaPie TeaPie

The current context instance.

name string

The name of the variable(s) to remove.

Returns

bool

true if the variable(s) were successfully removed from all levels; otherwise, false.

RemoveVariablesWithTag(TeaPie, string)

Attempts to remove all variables tagged with the specified tag from all levels (TestCaseVariables, CollectionVariables, EnvironmentVariables, GlobalVariables).

public static bool RemoveVariablesWithTag(this TeaPie teaPie, string tag)

Parameters

teaPie TeaPie

The current context instance.

tag string

The tag used to identify variables for removal.

Returns

bool

true if all variables with the specified tag were successfully removed from all levels; otherwise, false.