Class TestTableItem
public record TestTableItem : IEquatable<TestTableItem>
- Inheritance
-
TestTableItem
- Implements
- Inherited Members
Properties
ExceptionIfMldev
Expects an exception for MLDev matching the string.
[JsonPropertyName("exceptionIfMldev")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? ExceptionIfMldev { get; set; }
Property Value
ExceptionIfVertex
Expects an exception for Vertex matching the string.
[JsonPropertyName("exceptionIfVertex")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? ExceptionIfVertex { get; set; }
Property Value
HasUnion
True if the parameters contain an unsupported union type. This test will be skipped for languages that do not support the union type.
[JsonPropertyName("hasUnion")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? HasUnion { get; set; }
Property Value
- bool?
IgnoreKeys
Keys to ignore when comparing the request and response. This is useful for tests that are not deterministic.
[JsonPropertyName("ignoreKeys")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<string>? IgnoreKeys { get; set; }
Property Value
Name
The name of the test. This is used to derive the replay id.
[JsonPropertyName("name")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Name { get; set; }
Property Value
OverrideReplayId
Use if you don't want to use the default replay id which is derived from the test name.
[JsonPropertyName("overrideReplayId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? OverrideReplayId { get; set; }
Property Value
Parameters
The parameters to the test. Use pydantic models.
[JsonPropertyName("parameters")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public Dictionary<string, object>? Parameters { get; set; }
Property Value
SkipInApiMode
When set to a reason string, this test will be skipped in the API mode. Use this flag for tests that can not be reproduced with the real API. E.g. a test that deletes a resource.
[JsonPropertyName("skipInApiMode")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? SkipInApiMode { get; set; }
Property Value
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a TestTableItem object.
public static TestTableItem? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- TestTableItem
The deserialized TestTableItem object, or null if deserialization fails.