ClassBaseWebAiiTest
Base execution class for a WebAii testcase code behind class.
Definition
Namespace:ArtOfTest.WebAii.Design
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
public abstract class BaseWebAiiTest
Inheritance: objectBaseWebAiiTest
Constructors
Properties
Actions
Gets the Action object of the current test.
ActiveApplication
Gets the ActiveWpfApplication.
Declaration
public WpfApplication ActiveApplication { get; }
Property Value
ActiveBrowser
Gets the ActiveBrowser of current test.
Data
Gets the test data this test is executing against.
Declaration
public BaseWebAiiTest.TestData Data { get; }
Property Value
ExecutionContext
Gets the execution context of this testcase which contains information about current test being executed, the step and data (if test is data driven).
Declaration
public ExecutionContext ExecutionContext { get; }
Property Value
Find
Gets the Find object of the current test.
Manager
Gets the runtime Manager object.
Methods
CleanUp()
Perform any test clean-up. You can override this method to perform your own clean up.
Declaration
public virtual void CleanUp()
ExecuteApiTest(string, IList<KeyValuePair<string, string>>)
Execute a specific API test case
Declaration
public void ExecuteApiTest(string relativeTestPath, IList<KeyValuePair<string, string>> variables = null)
Parameters
relativeTestPath
The relative path to the API test to execute.
variables
IList<KeyValuePair<string, string>>
Optional: varibles to be passed as arguments to the test execution.
ExecuteTest(string)
Execute a specific test case within the current execution context
Declaration
public void ExecuteTest(string relativeTestPath)
Parameters
relativeTestPath
The relative path to the test to execute.
GetExtractedValue(string)
Return the extracted value of a variable. All extract steps persist their values in a local store that is accessible by this method.
OnAfterTestCompleted(TestResult)
Override this method to get notification right after the test is done execution
Declaration
public virtual void OnAfterTestCompleted(TestResult result)
Parameters
result
The result of this test's execution
OnBeforeTestStarted(BeforeTestStartedArgs)
Override this method to get notification right before the test is about to get executed.
Declaration
public virtual void OnBeforeTestStarted(BeforeTestStartedArgs args)
Parameters
args
The args.
SetExtractedValue(string, object)
Sets an extracted variable directly with a value.
Declaration
public void SetExtractedValue(string dataBindVariableName, object value)
Parameters
dataBindVariableName
The variable name to set.
value
The value to set it to.
Remarks
If the variable already exists, it will override its value, else will add the variable and set its value.