OpenTAP 9.27
API Reference
|
Class containing a test plan. More...
Classes | |
class | PlanLoadException |
Exception occuring when a test plan loads. More... | |
Public Member Functions | |
TestPlan () | |
void | FlushXmlCache () |
Flushes the test plan XML cache. | |
byte[] | GetCachedXml () |
Get the cached XML (or null if it is not cached) | |
void | Save (Stream stream, TapSerializer serializer) |
Saves this TestPlan to a stream with a specific serializer. More... | |
void | Save (Stream stream) |
Saves this TestPlan to a stream; More... | |
void | Save (string filePath) |
Saves this TestPlan to a file path. More... | |
TestPlan | Reload (Stream filestream) |
Reload a TestPlan transferring the current execution state of the current plan to the new one. More... | |
TestPlanRun | Execute () |
Blocking Execute TestPlan. Uses ResultListeners from ResultSettings.Current. More... | |
Task< TestPlanRun > | ExecuteAsync () |
Executes the test plan asynchronously More... | |
Task< TestPlanRun > | ExecuteAsync (CancellationToken abortToken) |
Executes the test plan asynchronously. More... | |
Task< TestPlanRun > | ExecuteAsync (IEnumerable< IResultListener > resultListeners, IEnumerable< ResultParameter > metaDataParameters, HashSet< ITestStep > stepsOverride, CancellationToken cancellationToken) |
Execute the TestPlan as specified. More... | |
TestPlanRun | Execute (IEnumerable< IResultListener > resultListeners, IEnumerable< ResultParameter > metaDataParameters=null, HashSet< ITestStep > stepsOverride=null) |
Execute the TestPlan as specified. Blocking. More... | |
TestPlanRun | Execute (IEnumerable< IResultListener > resultListeners, IEnumerable< ResultParameter > metaDataParameters) |
Execute the TestPlan as specified. Blocking. More... | |
void | Open () |
Opens all resources referenced in this TestPlan (Instruments/DUTs/ResultListeners). This can be called before TestPlan.Execute() to manually control the opening/closing of the resources. | |
void | Open (IEnumerable< IResultListener > listeners) |
Opens all resources referenced in this TestPlan (Instruments/DUTs/ResultListeners). This can be called before TestPlan.Execute() to manually control the opening/closing of the resources. More... | |
void | Open (IEnumerable< IResource > additionalResources) |
Opens all resources referenced in this TestPlan (Instruments/DUTs/ResultListeners). This can be called before TestPlan.Execute() to manually control the opening/closing of the resources. It can also be called multiple times to add more resources. More... | |
void | Open (IEnumerable< IResultListener > listeners, IEnumerable< IResource > additionalResources) |
Opens all resources referenced in this TestPlan (Instruments/DUTs/ResultListeners). This can be called before TestPlan.Execute() to manually control the opening/closing of the resources. It can also be called multiple times to add more resources. More... | |
void | Close () |
Closes all resources referenced in this TestPlan (Instruments/DUTs/ResultListeners). This should be called if TestPlan.Open() was called earlier to manually close the resources again. | |
Static Public Member Functions | |
static TestPlan | Load (string filePath) |
Load a TestPlan. More... | |
static TestPlan | Load (string filePath, bool cacheXml) |
Load a TestPlan. More... | |
static TestPlan | Load (Stream stream, string path) |
Load a TestPlan. More... | |
static TestPlan | Load (Stream stream, string path, bool cacheXml, TapSerializer serializer=null) |
Load a TestPlan. More... | |
static List< string > | GetPluginsRequiredToLoad (string filepath) |
Returns the list of plugins that are required to use the test plan. More... | |
Protected Member Functions | |
virtual void | OnPropertyChanged (string name) |
When a property changes this function is called. More... | |
Properties | |
ExternalParameters | ExternalParameters [get] |
Field for external test plan parameters. | |
TestStepList | Steps [getset] |
A collection of TestStepBase steps. | |
TestStepList | ChildTestSteps [get] |
List of test steps that make up this plan. | |
ITestStepParent | Parent [getset] |
Always null for test plan. | |
ReadOnlyCollection< ITestStep > | EnabledSteps [get] |
Gets the subset of steps that are enabled. | |
string | Name [get] |
Gets or sets the name. This is usually the name of the file where the test plan is saved, without the .TapPlan extension. | |
bool | IsInBreak [get] |
True if the test plan is waiting in a break. | |
bool | Locked [getset] |
Locks the TestPlan to signal that it should not be changed. The GUI respects this. | |
bool | IsRunning [get] |
True if this TestPlan is currently running. | |
bool | CacheXml [getset] |
Gets or sets if the test plan XML for this test plan should be cached. | |
string | Path [get] |
Gets where this plan was last saved or loaded from. It might be null. | |
string? | Directory [get] |
The directory where the test plan is stored. | |
bool | PrintTestPlanRunSummary [getset] |
When true, prints the test plan run summary at the end of a run. | |
bool | IsOpen [get] |
true if the plan is in its open state. | |
Properties inherited from OpenTap.ITestStepParent | |
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) | |
Events | |
EventHandler< BreakOfferedEventArgs > | BreakOffered |
A synchronous event that allows breaking the execution of the TestPlan by blocking the TestPlan execution thread. It is raised prior to executing the TestStep.Run method of each TestStep in the TestPlan. TestSteps may also raise this event from inside the TestStep.Run method. | |
PropertyChangedEventHandler | PropertyChanged |
Event handler to on property changed. | |
Class containing a test plan.
|
inline |
Blocking Execute TestPlan. Uses ResultListeners from ResultSettings.Current.
|
inline |
Execute the TestPlan as specified. Blocking.
resultListeners | ResultListeners for result outputs. |
metaDataParameters | Metadata parameters. |
|
inline |
Execute the TestPlan as specified. Blocking.
resultListeners | ResultListeners for result outputs. |
metaDataParameters | Optional metadata parameters. |
stepsOverride | Sub-section of test plan to be executed. Note this might include child steps of disabled parent steps. |
|
inline |
Executes the test plan asynchronously
|
inline |
Executes the test plan asynchronously.
abortToken | This abort token can be used to abort the operation. |
|
inline |
Execute the TestPlan as specified.
resultListeners | ResultListeners for result outputs. |
metaDataParameters | Optional metadata parameters. |
stepsOverride | Sub-section of test plan to be executed. Note this might include child steps of disabled parent steps. |
cancellationToken | Cancellation token to abort the testplan |
|
inlinestatic |
Returns the list of plugins that are required to use the test plan.
filepath |
|
static |
Load a TestPlan.
stream | The stream from which the file is actually loaded. |
path | The path to the file. This will be tha value of TestPlan.Path on the new TestPlan. |
|
inlinestatic |
Load a TestPlan.
stream | The stream from which the file is actually loaded. |
path | The path to the file. This will be tha value of TestPlan.Path on the new TestPlan. |
cacheXml | Gets or sets if the XML should be cached. |
serializer | Optionally the serializer used for deserializing the test plan. |
|
static |
|
inlinestatic |
|
inlineprotectedvirtual |
When a property changes this function is called.
name | Inputs the string for the property changed. |
|
inline |
Opens all resources referenced in this TestPlan (Instruments/DUTs/ResultListeners). This can be called before TestPlan.Execute() to manually control the opening/closing of the resources. It can also be called multiple times to add more resources.
additionalResources | Additional resources added as 'static' resources. |
|
inline |
Opens all resources referenced in this TestPlan (Instruments/DUTs/ResultListeners). This can be called before TestPlan.Execute() to manually control the opening/closing of the resources.
listeners | Result listeners used in connection with the test plan. |
|
inline |
Opens all resources referenced in this TestPlan (Instruments/DUTs/ResultListeners). This can be called before TestPlan.Execute() to manually control the opening/closing of the resources. It can also be called multiple times to add more resources.
listeners | Result listeners used in connection with the test plan. |
additionalResources | Additional resources added as 'static' resources. |
|
inline |
Reload a TestPlan transferring the current execution state of the current plan to the new one.
filestream | The filestream from which the plan loaded |
void OpenTap.TestPlan.Save | ( | Stream | stream | ) |
|
inline |
OpenTAP 9.27 API built Wed Nov 27 2024 13:14:46