GetVariableNames method
Relevant for: API testing only
Description
Retrieves the names of all variable values in the current test.
Class
TestProfile
Syntax
this.<activity>.Context.TestProfile.GetVariableNames();
this.<activity>.Context.EnvironmentProfile.GetVariableNames();
Parameters
None
Return Type
A list of all environment/test variables in the current test or test profile.
Example
this.ConcatenateStringsActivity4.Context.EnvironmentProfile.GetVariablesNames().ToString();
var Variablenames = this.ConcatenateStringsActivity4.Context.EnvironmentProfile.GetVariablesNames();
Context.UserLogger.Info(Variablenames);