TestCenter Reference
|
Package to handle all field related support functions. More...
Functions | |
touch (fieldName, verbose=True) | |
Touch the given field. | |
setValues (fieldValueDict, verbose=True) | |
Set field values to the given values. | |
varyValues (function, funcParams, fieldDict, parentChangeSet=None, verbose=True) | |
Set field values and for each combination call the given function with the given parameters. | |
getValue (fieldName) | |
Get value of the given field. | |
setValue (fieldName, fieldValue, verbose=True) | |
Set value of the given field. | |
runFieldValueTestCase (fieldValueTestCaseSet, testCaseName, verbose=True) | |
Run a field-value test case. | |
Package to handle all field related support functions.
TestSupport.Fields.getValue | ( | fieldName | ) |
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. |
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. |
TestSupport.Fields.setValues | ( | fieldValueDict, | |
verbose = True ) |
TestSupport.Fields.touch | ( | fieldName, | |
verbose = True ) |
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. |
Definition at line 58 of file Fields.py.
References TestSupport.Fields.varyValues().
Referenced by TestSupport.Fields.varyValues().