pub struct TestCaseResult {
Show 49 fields pub afn_strip_id: Option<i32>, pub area: Option<ShallowReference>, pub associated_bugs: Vec<ShallowReference>, pub automated_test_id: Option<String>, pub automated_test_name: Option<String>, pub automated_test_storage: Option<String>, pub automated_test_type: Option<String>, pub automated_test_type_id: Option<String>, pub build: Option<ShallowReference>, pub build_reference: Option<BuildReference>, pub comment: Option<String>, pub completed_date: Option<OffsetDateTime>, pub computer_name: Option<String>, pub configuration: Option<ShallowReference>, pub created_date: Option<OffsetDateTime>, pub custom_fields: Vec<CustomTestField>, pub duration_in_ms: Option<f64>, pub error_message: Option<String>, pub failing_since: Option<FailingSince>, pub failure_type: Option<String>, pub id: Option<i32>, pub iteration_details: Vec<TestIterationDetailsModel>, pub last_updated_by: Option<IdentityRef>, pub last_updated_date: Option<OffsetDateTime>, pub outcome: Option<String>, pub owner: Option<IdentityRef>, pub priority: Option<i32>, pub project: Option<ShallowReference>, pub release: Option<ShallowReference>, pub release_reference: Option<ReleaseReference>, pub reset_count: Option<i32>, pub resolution_state: Option<String>, pub resolution_state_id: Option<i32>, pub result_group_type: Option<ResultGroupType>, pub revision: Option<i32>, pub run_by: Option<IdentityRef>, pub stack_trace: Option<String>, pub started_date: Option<OffsetDateTime>, pub state: Option<String>, pub sub_results: Vec<TestSubResult>, pub test_case: Option<ShallowReference>, pub test_case_reference_id: Option<i32>, pub test_case_revision: Option<i32>, pub test_case_title: Option<String>, pub test_plan: Option<ShallowReference>, pub test_point: Option<ShallowReference>, pub test_run: Option<ShallowReference>, pub test_suite: Option<ShallowReference>, pub url: Option<String>,
}
Expand description

Represents a test result.

Fields§

§afn_strip_id: Option<i32>

Test attachment ID of action recording.

§area: Option<ShallowReference>

An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links.

§associated_bugs: Vec<ShallowReference>

Reference to bugs linked to test result.

§automated_test_id: Option<String>

ID representing test method in a dll.

§automated_test_name: Option<String>

Fully qualified name of test executed.

§automated_test_storage: Option<String>

Container to which test belongs.

§automated_test_type: Option<String>

Type of automated test.

§automated_test_type_id: Option<String>

TypeId of automated test.

§build: Option<ShallowReference>

An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links.

§build_reference: Option<BuildReference>

Reference to a build.

§comment: Option<String>

Comment in a test result with maxSize= 1000 chars.

§completed_date: Option<OffsetDateTime>

Time when test execution completed(UTC). Completed date should be greater than StartedDate.

§computer_name: Option<String>

Machine name where test executed.

§configuration: Option<ShallowReference>

An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links.

§created_date: Option<OffsetDateTime>

Timestamp when test result created(UTC).

§custom_fields: Vec<CustomTestField>

Additional properties of test result.

§duration_in_ms: Option<f64>

Duration of test execution in milliseconds. If not provided value will be set as CompletedDate - StartedDate

§error_message: Option<String>

Error message in test execution.

§failing_since: Option<FailingSince>

Failing since information of a test result.

§failure_type: Option<String>

Failure type of test result. Valid Value= (Known Issue, New Issue, Regression, Unknown, None)

§id: Option<i32>

ID of a test result.

§iteration_details: Vec<TestIterationDetailsModel>

Test result details of test iterations used only for Manual Testing.

§last_updated_by: Option<IdentityRef>
§last_updated_date: Option<OffsetDateTime>

Last updated datetime of test result(UTC).

§outcome: Option<String>

Test outcome of test result. Valid values = (Unspecified, None, Passed, Failed, Inconclusive, Timeout, Aborted, Blocked, NotExecuted, Warning, Error, NotApplicable, Paused, InProgress, NotImpacted)

§owner: Option<IdentityRef>
§priority: Option<i32>

Priority of test executed.

§project: Option<ShallowReference>

An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links.

§release: Option<ShallowReference>

An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links.

§release_reference: Option<ReleaseReference>

Reference to a release.

§reset_count: Option<i32>

ResetCount.

§resolution_state: Option<String>

Resolution state of test result.

§resolution_state_id: Option<i32>

ID of resolution state.

§result_group_type: Option<ResultGroupType>

Hierarchy type of the result, default value of None means its leaf node.

§revision: Option<i32>

Revision number of test result.

§run_by: Option<IdentityRef>
§stack_trace: Option<String>

Stacktrace with maxSize= 1000 chars.

§started_date: Option<OffsetDateTime>

Time when test execution started(UTC).

§state: Option<String>

State of test result. Type TestRunState.

§sub_results: Vec<TestSubResult>

List of sub results inside a test result, if ResultGroupType is not None, it holds corresponding type sub results.

§test_case: Option<ShallowReference>

An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links.

§test_case_reference_id: Option<i32>

Reference ID of test used by test result. Type TestResultMetaData

§test_case_revision: Option<i32>

TestCaseRevision Number.

§test_case_title: Option<String>

Name of test.

§test_plan: Option<ShallowReference>

An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links.

§test_point: Option<ShallowReference>

An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links.

§test_run: Option<ShallowReference>

An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links.

§test_suite: Option<ShallowReference>

An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links.

§url: Option<String>

Url of test result.

Implementations§

source§

impl TestCaseResult

source

pub fn new() -> Self

Trait Implementations§

source§

impl Clone for TestCaseResult

source§

fn clone(&self) -> TestCaseResult

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for TestCaseResult

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for TestCaseResult

source§

fn default() -> TestCaseResult

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for TestCaseResult

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for TestCaseResult

source§

fn eq(&self, other: &TestCaseResult) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for TestCaseResult

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for TestCaseResult

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for T
where T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,