Definition
Assembly: CloudNimble.Breakdance.DotHttp.dll Namespace: CloudNimble.Breakdance.DotHttp Inheritance: CloudNimble.Breakdance.Assemblies.BreakdanceTestBaseSyntax
Summary
Base class for generated .http file tests. Provides HTTP client management, variable resolution, and response capture for request chaining.Remarks
Inherits from BreakdanceTestBase for integration with the Breakdance testing framework. Generated test classes are partial, allowing customization of setup and assertions.Examples
Methods
LoadEnvironment
Loads environment configuration from an http-client.env.json file.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
filePath | string | The path to the environment file. |
environmentName | string | The environment to use (e.g., “dev”, “staging”). |
Examples
LoadEnvironmentWithOverrides
Loads environment configuration with user overrides.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
baseFilePath | string | The path to the http-client.env.json file. |
userFilePath | string | The path to the http-client.env.json.user file. |
environmentName | string | The environment to use. |
Examples
SetVariable
Sets a variable for use in request resolution.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
name | string | The variable name (without @ prefix or wrapper). |
value | string | The variable value. |
Examples
SwitchEnvironment
Switches to a different environment from the loaded configuration.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
environmentName | string | The environment name to switch to. |
Examples
TestSetupAsync Override
Sets up the test environment.Syntax
Returns
Type:System.Threading.Tasks.Task
TestTearDownAsync Override
Cleans up resources after each test.Syntax
Returns
Type:System.Threading.Tasks.Task