|
void | UpgradeVerdict (Verdict verdict) |
| Sets the Verdict if it is not already set to a more serious verdict (for example, a Pass verdict would be upgraded to Fail, which is more serious).
More...
|
|
T | GetParent< T > () |
| Searches up through the Parent steps and returns the first step of the requested type that it finds.
More...
|
|
IEnumerable< TestStepRun > | RunChildSteps (IEnumerable< ResultParameter > attachedParameters=null) |
| Runs all enabled TestStep.ChildTestSteps of this TestStep. Upgrades parent verdict to the resulting verdict of the childrens run. Throws an exception if the child step does not belong or isn't enabled. More...
|
|
IEnumerable< TestStepRun > | RunChildSteps (bool throwOnBreak) |
| Runs all enabled TestStep.ChildTestSteps of this TestStep. Upgrades parent verdict to the resulting verdict of the childrens run. Throws an exception if the child step does not belong or isn't enabled. More...
|
|
IEnumerable< TestStepRun > | RunChildSteps (IEnumerable< ResultParameter > attachedParameters, CancellationToken cancellationToken) |
| Runs all enabled TestStep.ChildTestSteps of this TestStep. Upgrades parent verdict to the resulting verdict of the childrens run. Throws an exception if the child step does not belong or isn't enabled. More...
|
|
IEnumerable< TestStepRun > | RunChildSteps (IEnumerable< ResultParameter > attachedParameters, CancellationToken cancellationToken, bool throwOnBreak) |
| Runs all enabled TestStep.ChildTestSteps of this TestStep. Upgrades parent verdict to the resulting verdict of the childrens run. Throws an exception if the child step does not belong or isn't enabled. More...
|
|
TestStepRun | RunChildStep (ITestStep childStep, IEnumerable< ResultParameter > attachedParameters=null) |
| Runs the specified child step if enabled. Upgrades parent verdict to the resulting verdict of the child run. Throws an exception if childStep does not belong or isn't enabled. More...
|
|
TestStepRun | RunChildStep (ITestStep childStep, bool throwOnBreak, IEnumerable< ResultParameter > attachedParameters=null) |
| Runs the specified child step if enabled. Upgrades parent verdict to the resulting verdict of the child run. Throws an exception if childStep does not belong or isn't enabled. More...
|
|
virtual string | GetError (string propertyName=null) |
| Return the error for a given property
|
|
void | ThrowOnValidationError (bool ignoreDisabledProperties) |
| Checks all validation rules on this object (Rules) and throws an AggregateException on errors. More...
|
|
|
Verdict | Verdict [getset] |
| Gets or sets the verdict. Only available during test step run. The value of this property will be propagated to the TestStepRun when the step run completes.
|
|
bool | Enabled [getset] |
| Gets or sets boolean indicating whether this step is enabled in the TestPlan
|
|
bool | IsReadOnly [getset] |
| Gets or sets boolean indicating whether this step is read-only in the TestPlan. This is mostly a declaration of intent, GUIs should respect it, but few things enforces it.
|
|
string | Name [getset] |
| Gets or sets the name of the TestStep instance. Not allowed to be null. In many cases the name is unique within a test plan, but this should not be assumed, use Idfor an unique identifier. May not be null.
|
|
string | TypeName [get] |
| This TestStep type as a string.
|
|
TestStepList | ChildTestSteps [getset] |
| Gets or sets a List of child TestSteps. Any TestSteps in this list will be executed instead of the Run method of this TestStep.
|
|
virtual ITestStepParent | Parent [getset] |
| The parent of this TestStep. Can be another TestStep or the TestPlan.
|
|
ResultSource | Results [get] |
| Result proxy that stores TestStep run results until they are propagated to the ResultListener.
|
|
IEnumerable< ITestStep > | EnabledChildSteps [get] |
| The enumeration of all enabled Child Steps.
|
|
string | Version [getset] |
| Version of this test step.
|
|
TestPlanRun | PlanRun [getset] |
| Gets or sets the TestPlanRun.
|
|
TestStepRun | StepRun [getset] |
| Gets or sets the TestStepRun.
|
|
Guid | Id = Guid.NewGuid() [getset] |
| Gets or sets the ID used to uniquely identify a test step within a test plan.
|
|
ValidationRuleCollection | Rules [get] |
| All the validation rules. Add new rules to this in order to get runtime value validation.
|
|
string | Error [get] |
| Gets the error messages for each invalid rule and joins them with a newline.
|
|
ValidationRuleCollection | Rules [get] |
| A collection of all the currently defined validation rules. Add new rules here in order to get runtime value validation.
|
|
Verdict | Verdict [getset] |
| Gets or sets the verdict. Only available during TestStep run. This property value is propagated to the TestStepRun when the step run completes.
|
|
string | Name [getset] |
| Name of the step. Should be set by the user if using multiple instances of the same type.
|
|
bool | Enabled [getset] |
| Gets or sets boolean value that indicates whether this step is enabled in the TestPlan.
|
|
TestPlanRun | PlanRun [getset] |
| Gets or sets the current TestPlanRun.
|
|
TestStepRun | StepRun [getset] |
| Gets or sets the currently running and most recently started TestStepRun.
|
|
bool | IsReadOnly [getset] |
| Gets or sets boolean value that indicates whether this step is read only in the TestPlan.
|
|
string | TypeName [get] |
| Name of this TestStep type.
|
|
Guid | Id [getset] |
| Unique ID used for storing references to test steps.
|
|
ITestStepParent | Parent [getset] |
| Parent TestStep for this TestStep. Null if this TestStep is not a child of any other TestSteps. Only guaranteed to be set during TestPlan.Execute().
|
|
TestStepList | ChildTestSteps [get] |
| Gets or sets a list of child TestSteps. (Inherited from ITestStepParent)
|
|
InputOutputRelation[] | Inputs [getset] |
| Relations to the object ('this').
|
|
InputOutputRelation[] | Outputs [getset] |
| Relations from the object('this');
|
|
All TestSteps that are instances of the TestStep abstract class should override the TestStep.Run method. Additionally, the TestStep.PrePlanRun and TestStep.PostPlanRun methods can be overridden.
ITestStep can also be inherited from instead.
virtual void OpenTap.TestStep.PostPlanRun |
( |
| ) |
|
|
inlinevirtual |
Called by TestPlan.Run() after completing all TestStep.Run methods in the TestPlan. ///
Note that TestStep.PostPlanRunrun is run in reverse order. For example, suppose you had three tests: T1, T2, and T3. PrePlanRun would run for T1, T2 and T3 (in that order), and PostPlanRun would run for T3, T2 and T1 (in that order).
Implements OpenTap.ITestStep.