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
teaPieTeaPieThe current context instance.
namestringThe name of the variable to check for existence.
Returns
- bool
trueif a variable with the specifiednameexists; 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
trueif 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
teaPieTeaPieThe current context instance.
tagstringThe tag used to identify variables for removal.
Returns
- bool
trueif all variables with the specified tag were successfully removed from all levels; otherwise,false.