Class TeaPieVariablesExtensions
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
TeaPieThe current context instance.
name
stringThe name of the variable to check for existence.
Returns
- bool
true
if a variable with the specifiedname
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
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
TeaPieThe current context instance.
tag
stringThe 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
.