TestPreferences Class

  • java.lang.Object
    • com.azure.developer.loadtesting.models.TestPreferences

Implements

public final class TestPreferences
implements JsonSerializable<TestPreferences>

Preferences for the test.

Constructor Summary

Constructor Description
TestPreferences()

Creates an instance of TestPreferences class.

Method Summary

Modifier and Type Method and Description
static TestPreferences fromJson(JsonReader jsonReader)

Reads an instance of TestPreferences from the JsonReader.

Boolean isEnableAIErrorInsights()

Get the enableAIErrorInsights property: Enable or disable AI based insights on Test Run Errors.

TestPreferences setEnableAIErrorInsights(Boolean enableAIErrorInsights)

Set the enableAIErrorInsights property: Enable or disable AI based insights on Test Run Errors.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

TestPreferences

public TestPreferences()

Creates an instance of TestPreferences class.

Method Details

fromJson

public static TestPreferences fromJson(JsonReader jsonReader)

Reads an instance of TestPreferences from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TestPreferences if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the TestPreferences.

isEnableAIErrorInsights

public Boolean isEnableAIErrorInsights()

Get the enableAIErrorInsights property: Enable or disable AI based insights on Test Run Errors.

Returns:

the enableAIErrorInsights value.

setEnableAIErrorInsights

public TestPreferences setEnableAIErrorInsights(Boolean enableAIErrorInsights)

Set the enableAIErrorInsights property: Enable or disable AI based insights on Test Run Errors.

Parameters:

enableAIErrorInsights - the enableAIErrorInsights value to set.

Returns:

the TestPreferences object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to