GetVariableNames method

Relevant for: API testing only

Description

Retrieves the names of all variable values in the current test.

Back to top

Class

TestProfile

Back to top

Syntax

this.<activity>.Context.TestProfile.GetVariableNames();
this.<activity>.Context.EnvironmentProfile.GetVariableNames();

Back to top

Parameters

None

Back to top

Return Type

A list of all environment/test variables in the current test or test profile.

Back to top

Example

this.ConcatenateStringsActivity4.Context.EnvironmentProfile.GetVariablesNames().ToString();
var Variablenames = this.ConcatenateStringsActivity4.Context.EnvironmentProfile.GetVariablesNames();
Context.UserLogger.Info(Variablenames);

Back to top