TestCenter Reference
TestSupport.FieldValueTests.FieldValueTestCaseIterator Class Reference

A class to iterate over the list of field-value test cases of a given set. More...

Inheritance diagram for TestSupport.FieldValueTests.FieldValueTestCaseIterator:

Public Member Functions

def __init__ (self, ctx, filename, testRunName=None, randomOrder=False)
 The default constructor. More...
 
def getCurrentIndex (self)
 Return the index of the current case. More...
 
def getStatusString (self)
 Return a string containing the current case id, current case name and number of cases. More...
 
def getCurrentCaseName (self)
 Return the index of the current case. More...
 
def getNumCases (self)
 Return the number of cases of the loaded test case set. More...
 
def isFinished (self)
 Are there any test cases left to iterate? More...
 
def next (self, verbose=False, saveEachCase=True)
 Change to the next field-value test case. More...
 
def finish (self, verbose=False)
 Finish the current test run. More...
 
def prev (self, verbose=False)
 Go back to the previous test case. More...
 
def goToCaseWithId (self, id, verbose=False)
 Go to test case with specified id. More...
 

Detailed Description

A class to iterate over the list of field-value test cases of a given set.

Definition at line 71 of file FieldValueTests.py.

Constructor & Destructor Documentation

◆ __init__()

Member Function Documentation

◆ finish()

◆ getCurrentCaseName()

def TestSupport.FieldValueTests.FieldValueTestCaseIterator.getCurrentCaseName (   self)

◆ getCurrentIndex()

def TestSupport.FieldValueTests.FieldValueTestCaseIterator.getCurrentIndex (   self)

Return the index of the current case.

Returns
Integer value representing case id.

Definition at line 121 of file FieldValueTests.py.

References TestSupport.FieldValueTests.FieldValueTestCaseIterator.__index.

Referenced by TestSupport.FieldValueTests.FieldValueTestCaseIterator.goToCaseWithId().

◆ getNumCases()

def TestSupport.FieldValueTests.FieldValueTestCaseIterator.getNumCases (   self)

Return the number of cases of the loaded test case set.

Returns
Integer value representing the number of cases.

Definition at line 142 of file FieldValueTests.py.

References TestSupport.FieldValueTests.FieldValueTestCaseIterator.__testCaseList.

Referenced by TestSupport.FieldValueTests.FieldValueTestCaseIterator.goToCaseWithId().

◆ getStatusString()

def TestSupport.FieldValueTests.FieldValueTestCaseIterator.getStatusString (   self)

Return a string containing the current case id, current case name and number of cases.

Returns
String value representing current status.

Definition at line 128 of file FieldValueTests.py.

References TestSupport.FieldValueTests.FieldValueTestCaseIterator.__statusString.

◆ goToCaseWithId()

◆ isFinished()

def TestSupport.FieldValueTests.FieldValueTestCaseIterator.isFinished (   self)

Are there any test cases left to iterate?

Returns
Boolean value that shows whether there are test cases left.

Definition at line 149 of file FieldValueTests.py.

References TestCenterAdvanced.Slave.Slave.__running, and TestSupport.FieldValueTests.FieldValueTestCaseIterator.__running.

◆ next()

◆ prev()

def TestSupport.FieldValueTests.FieldValueTestCaseIterator.prev (   self,
  verbose = False 
)

The documentation for this class was generated from the following file: