The WhileTestCase type exposes the following members.

Constructors

  NameDescription
WhileTestCase
Initializes a new instance of the WhileTestCase class

Methods

  NameDescription
Body (Overrides FolderTestCase..::.Body()()().)
CleanupOverloaded.
Clone
Clones the test case using serialization
(Inherited from TestCase.)
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 (Inherited from TestCase.)
HandleResult (Inherited from TestCase.)
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
(Inherited from TestCase.)
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
(Inherited from TestCase.)
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
RestoreVariables (Inherited from TestCase.)
Run
The method that executes the entire test case with all its parts (Setup, Body and Cleanup)
(Inherited from TestCase.)
Setup
The entry point for all the initializations prior to running the test case
(Inherited from TestCase.)
SetVariables (Inherited from TestCase.)
ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

  NameDescription
actualResult (Inherited from TestCase.)
changedProperties (Inherited from TestCase.)
children (Inherited from FolderTestCase.)
description (Inherited from TestCase.)
exitBranchOnError (Inherited from TestCase.)
exitOnError (Inherited from TestCase.)
expectedResult (Inherited from TestCase.)
icon (Inherited from TestCase.)
id (Inherited from TestCase.)
markedForExecution (Inherited from TestCase.)
name (Inherited from TestCase.)
numOfRetries (Inherited from TestCase.)
outputProperties (Inherited from TestCase.)
parent (Inherited from TestCase.)
scenario (Inherited from TestCase.)
screenshotOption (Inherited from TestCase.)
videoOptions (Inherited from TestCase.)

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)
(Inherited from TestCase.)
Children
The children of this test case
(Inherited from FolderTestCase.)
CSharpExpression
A C# expression that should return true or false (you can include variables as well)

Examples

If you have a variable named 'myVar' you can set an expression which tests if myVar equals 'hello world', like this : "$myVar$" == "hello world"

Remarks

To learn more about C# syntax in expressions click <a href="http://msdn.microsoft.com/en-us/library/aa691304(VS.71).aspx">here</a>
Description (Overrides TestCase..::.Description.)
ExitBranchOnError
Tells the QAliber Runner whether to continue the scenario on the next branch, if this test case fails
(Inherited from TestCase.)
ExitOnError
Tells the QAliber Runner whether to quit the scenario, if this test case fails
(Inherited from TestCase.)
ExpectedResult
The expected result for this test case, for support of both positive and negative tests in the same test case
(Inherited from TestCase.)
HasBreakPoint (Inherited from TestCase.)
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
(Inherited from TestCase.)
ID
A unique identifier of the test case, when in a scenario
(Inherited from TestCase.)
MarkedForExecution
Tells the QAliber Runner whether to run this tes case
(Inherited from TestCase.)
Name
The logical name of the test case
(Inherited from TestCase.)
NumOfRetries
Tells the QAliber Runner how many times to retry this test case, if this test case fails
(Inherited from TestCase.)
OutputProperties (Inherited from TestCase.)
Parent
The parent of the test case
(Inherited from TestCase.)
Scenario
The test scenario that this test case belongs to
(Inherited from TestCase.)
ScreenshotOption
Tells the QAliber runner when to take screenshots in the test case life cycle
(Inherited from TestCase.)
Timeout
The longest time to wait for the C# expression to return true, after that an error will be posted and the run will continue, for infinte time enter 0
VideoOptions (Inherited from TestCase.)

See Also