Test variable
Synopsis
Add variables to a test suite.
Syntax
New-TestVariable -TestSuiteID <Int32> -VariableName <String> -VariableGroupValue <Hashtable[]> [-IncludeStatus] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]New-TestVariable -TestSuiteID <Int32> -VariableName <String> -VariableValue <String> [-IncludeStatus] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]New-TestVariable -TestSuiteID <Int32> -Body <Object> [-IncludeStatus] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]Description
Adds new variables to a test suite.
You can use variables in a test request's URL or request headers and in condition expression, as a substitute of placeholders.
Parameters
‑AccountSwitchKey |
An account credential key that lets you move between accounts when using an API client enabled for multiple accounts. To find account switch keys, use Get-AccountSwitchKey. |
‑BodyConditionally required |
A request body, either as a |
‑EdgeRCFile |
Your EdgeGrid resource file to authenticate your command. Defaults to |
‑IncludeStatus |
When enabled, return response metadata as well as the usual 'successes' object. |
‑Section |
The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to |
‑TestSuiteIDRequired |
Your test suite's ID. |
‑VariableGroupValueConditionally required |
Specifies a variable group referenced in testRequestUrl, headerName, headerValue, requestBody, or conditionExpression of a test case. Variable groups appear with {{variableName.columnHeader}} syntax. |
‑VariableNameConditionally required |
Name for the variable you wish to create. |
‑VariableValueConditionally required |
Value for the variable you wish to create. |
Related Links
Updated 29 days ago
