#[non_exhaustive]pub struct TestCaseScenarioBuilder { /* private fields */ }
Expand description
A builder for TestCaseScenario
.
Implementations§
source§impl TestCaseScenarioBuilder
impl TestCaseScenarioBuilder
sourcepub fn test_case_scenario_id(self, input: impl Into<String>) -> Self
pub fn test_case_scenario_id(self, input: impl Into<String>) -> Self
Provides test case scenario ID.
sourcepub fn set_test_case_scenario_id(self, input: Option<String>) -> Self
pub fn set_test_case_scenario_id(self, input: Option<String>) -> Self
Provides test case scenario ID.
sourcepub fn get_test_case_scenario_id(&self) -> &Option<String>
pub fn get_test_case_scenario_id(&self) -> &Option<String>
Provides test case scenario ID.
sourcepub fn test_case_scenario_type(self, input: TestCaseScenarioType) -> Self
pub fn test_case_scenario_type(self, input: TestCaseScenarioType) -> Self
Provides test case scenario type. Type is one of the following:
-
Advanced
-
Basic
sourcepub fn set_test_case_scenario_type(
self,
input: Option<TestCaseScenarioType>
) -> Self
pub fn set_test_case_scenario_type( self, input: Option<TestCaseScenarioType> ) -> Self
Provides test case scenario type. Type is one of the following:
-
Advanced
-
Basic
sourcepub fn get_test_case_scenario_type(&self) -> &Option<TestCaseScenarioType>
pub fn get_test_case_scenario_type(&self) -> &Option<TestCaseScenarioType>
Provides test case scenario type. Type is one of the following:
-
Advanced
-
Basic
sourcepub fn status(self, input: TestCaseScenarioStatus) -> Self
pub fn status(self, input: TestCaseScenarioStatus) -> Self
Provides the test case scenario status. Status is one of the following:
-
PASS
: Test passed. -
FAIL
: Test failed. -
PENDING
: Test has not started running but is scheduled. -
RUNNING
: Test is running. -
STOPPING
: Test is performing cleanup steps. You will see this status only if you stop a suite run. -
STOPPED
Test is stopped. You will see this status only if you stop a suite run. -
PASS_WITH_WARNINGS
: Test passed with warnings. -
ERORR
: Test faced an error when running due to an internal issue.
sourcepub fn set_status(self, input: Option<TestCaseScenarioStatus>) -> Self
pub fn set_status(self, input: Option<TestCaseScenarioStatus>) -> Self
Provides the test case scenario status. Status is one of the following:
-
PASS
: Test passed. -
FAIL
: Test failed. -
PENDING
: Test has not started running but is scheduled. -
RUNNING
: Test is running. -
STOPPING
: Test is performing cleanup steps. You will see this status only if you stop a suite run. -
STOPPED
Test is stopped. You will see this status only if you stop a suite run. -
PASS_WITH_WARNINGS
: Test passed with warnings. -
ERORR
: Test faced an error when running due to an internal issue.
sourcepub fn get_status(&self) -> &Option<TestCaseScenarioStatus>
pub fn get_status(&self) -> &Option<TestCaseScenarioStatus>
Provides the test case scenario status. Status is one of the following:
-
PASS
: Test passed. -
FAIL
: Test failed. -
PENDING
: Test has not started running but is scheduled. -
RUNNING
: Test is running. -
STOPPING
: Test is performing cleanup steps. You will see this status only if you stop a suite run. -
STOPPED
Test is stopped. You will see this status only if you stop a suite run. -
PASS_WITH_WARNINGS
: Test passed with warnings. -
ERORR
: Test faced an error when running due to an internal issue.
sourcepub fn failure(self, input: impl Into<String>) -> Self
pub fn failure(self, input: impl Into<String>) -> Self
Provides test case scenario failure result.
sourcepub fn set_failure(self, input: Option<String>) -> Self
pub fn set_failure(self, input: Option<String>) -> Self
Provides test case scenario failure result.
sourcepub fn get_failure(&self) -> &Option<String>
pub fn get_failure(&self) -> &Option<String>
Provides test case scenario failure result.
sourcepub fn system_message(self, input: impl Into<String>) -> Self
pub fn system_message(self, input: impl Into<String>) -> Self
Provides test case scenario system messages if any.
sourcepub fn set_system_message(self, input: Option<String>) -> Self
pub fn set_system_message(self, input: Option<String>) -> Self
Provides test case scenario system messages if any.
sourcepub fn get_system_message(&self) -> &Option<String>
pub fn get_system_message(&self) -> &Option<String>
Provides test case scenario system messages if any.
sourcepub fn build(self) -> TestCaseScenario
pub fn build(self) -> TestCaseScenario
Consumes the builder and constructs a TestCaseScenario
.
Trait Implementations§
source§impl Clone for TestCaseScenarioBuilder
impl Clone for TestCaseScenarioBuilder
source§fn clone(&self) -> TestCaseScenarioBuilder
fn clone(&self) -> TestCaseScenarioBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TestCaseScenarioBuilder
impl Debug for TestCaseScenarioBuilder
source§impl Default for TestCaseScenarioBuilder
impl Default for TestCaseScenarioBuilder
source§fn default() -> TestCaseScenarioBuilder
fn default() -> TestCaseScenarioBuilder
source§impl PartialEq for TestCaseScenarioBuilder
impl PartialEq for TestCaseScenarioBuilder
source§fn eq(&self, other: &TestCaseScenarioBuilder) -> bool
fn eq(&self, other: &TestCaseScenarioBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TestCaseScenarioBuilder
Auto Trait Implementations§
impl Freeze for TestCaseScenarioBuilder
impl RefUnwindSafe for TestCaseScenarioBuilder
impl Send for TestCaseScenarioBuilder
impl Sync for TestCaseScenarioBuilder
impl Unpin for TestCaseScenarioBuilder
impl UnwindSafe for TestCaseScenarioBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more