TestCenter Reference
|
Package to handle all field related support functions. More...
Functions | |
def | touch (fieldName, verbose=True) |
Touch the given field. More... | |
def | setValues (fieldValueDict, verbose=True) |
Set field values to the given values. More... | |
def | varyValues (function, funcParams, fieldDict, parentChangeSet=None, verbose=True) |
Set field values and for each combination call the given function with the given parameters. More... | |
def | getValue (fieldName) |
Get value of the given field. More... | |
def | setValue (fieldName, fieldValue, verbose=True) |
Set value of the given field. More... | |
def | runFieldValueTestCase (fieldValueTestCaseSet, testCaseName, verbose=True) |
Run a field-value test case. More... | |
Package to handle all field related support functions.
def TestSupport.Fields.getValue | ( | fieldName | ) |
def TestSupport.Fields.runFieldValueTestCase | ( | fieldValueTestCaseSet, | |
testCaseName, | |||
verbose = True |
|||
) |
Run a field-value test case.
The given test case from the given field-value test case set is run, i.e. the parameterization is applied and the expected results are verified. TODO Results are not saved yet.
fieldValueTestCaseSet | The field-value test case set the test case is from. |
testCaseName | The name of the test case to run. |
verbose | Run the field-value test case verbose. |
def TestSupport.Fields.setValue | ( | fieldName, | |
fieldValue, | |||
verbose = True |
|||
) |
Set value of the given field.
The global changeset is used to track the field-value change. An info message will be sent to the log if verbose is selected.
fieldName | The identifier of the field to change. |
fieldValue | The new value of the field. |
verbose | Determine whether a message should be sent to the logfile. |
Definition at line 130 of file Fields.py.
References TestSupport.ChangeSet.setFieldValue().
def TestSupport.Fields.setValues | ( | fieldValueDict, | |
verbose = True |
|||
) |
def TestSupport.Fields.touch | ( | fieldName, | |
verbose = True |
|||
) |
Touch the given field.
Definition at line 33 of file Fields.py.
References TestSupport.ChangeSet.setFieldValue().
Referenced by TestSupport.FieldValueTests.FieldValueTestCase.applyParameterization(), TestSupport.Image.calculateHashFromImage(), TestSupport.ScreenShot.createOffscreenScreenShot(), TestSupport.Image.getTrueMinMaxValues(), TestSupport.Image.getVoxelValue(), and TestSupport.FieldValueTests.FieldValueTestCase.saveResults().
def TestSupport.Fields.varyValues | ( | function, | |
funcParams, | |||
fieldDict, | |||
parentChangeSet = None , |
|||
verbose = True |
|||
) |
Set field values and for each combination call the given function with the given parameters.
Use an empty list ([]) if no parameters are required for the function.
function | Function to call for each field-value combination. |
funcParams | List of parameters to call the function with. |
fieldDict | Dictionary with field-names and their respective value lists. |
parentChangeSet | Changeset to use for setting the values. |