The TestCase type exposes the following members.

Constructors

  NameDescription
TestCase
Initializes a new instance of the TestCase class

Methods

  NameDescription
Body
The entry point for the 'heart' of the test case.
CleanupOverloaded.
Clone
Clones the test case using serialization
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
GetVariables
HandleResult
LogFailedByExpectedResult
Posts info/error message to the log according to the expected result. If expected result is fail it will log info, otherwise it will log error
LogPassedByExpectedResult
Posts info/error message to the log according to the expected result. If expected result is fail it will log error, otherwise it will log info
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
RestoreVariables
Run
The method that executes the entire test case with all its parts (Setup, Body and Cleanup)
Setup
The entry point for all the initializations prior to running the test case
SetVariables
ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

Properties

  NameDescription
ActualResult
The actual result of the test case.

Remarks

It is recommended to set the actual result on any code path inside the Body method (much like return)
BranchesToBreak
Current
The current test case being run by the QAliber runner
Description
The description of the test csae, the description will be logged as a remark by the QAliber runner. A good practice is to set it according to the parameters the user chosen for the test case
ExitBranchOnError
Tells the QAliber Runner whether to continue the scenario on the next branch, if this test case fails
ExitOnError
Tells the QAliber Runner whether to quit the scenario, if this test case fails
ExitTotally
A static property which indicates the QAliber runner to stop all subsequent test cases execution, setting this to true, should lead to an end of the test scenario
ExpectedResult
The expected result for this test case, for support of both positive and negative tests in the same test case
HasBreakPoint
Icon
A bitmap by the size of 16x16 to be shown next to the test case in the QAliber Test Builder, this should be set in the constructor of your test case
ID
A unique identifier of the test case, when in a scenario
MarkedForExecution
Tells the QAliber Runner whether to run this tes case
Name
The logical name of the test case
NumOfRetries
Tells the QAliber Runner how many times to retry this test case, if this test case fails
OutputProperties
Parent
The parent of the test case
Scenario
The test scenario that this test case belongs to
ScreenshotOption
Tells the QAliber runner when to take screenshots in the test case life cycle
VideoOptions

See Also