REB Functional Tests
1.0
Testing suite for the WREB, GREB, and VST readout boards
|
Periodically records specified values over the course of the testing sequence. More...
Public Member Functions | |
def | __init__ (self, valuesToRead, delay=5, fnTest=None, backup=0) |
Initializes the test. More... | |
def | runTest (self) |
Starts the logging in a separate thread, moves to the next test. More... | |
def | stopTest (self) |
Sets the recording option to false, allowing the test to stop. More... | |
def | recordContinuously (self) |
Continuously records the requested parameters while self.recording is set to true. More... | |
def | passFail (self) |
Determine if the value logging passed - this is done in a separate function, unlike other tests. More... | |
def | report (self, pdf, reportPath) |
generate this test's page in the PDF report. More... | |
Periodically records specified values over the course of the testing sequence.
def WREBTest.ParameterLogging.__init__ | ( | self, | |
valuesToRead, | |||
delay = 5 , |
|||
fnTest = None , |
|||
backup = 0 |
|||
) |
Initializes the test.
valuesToRead | A list of ("subsystem", "value to read") tuples |
delay | Time to sleep between periodic queries |
fnTest | The FunctionalTest() object, allowing this test to track progress/terminate |
backup | Backup data every n cycles. If zero, do not back up. |
def WREBTest.ParameterLogging.passFail | ( | self | ) |
Determine if the value logging passed - this is done in a separate function, unlike other tests.
def WREBTest.ParameterLogging.recordContinuously | ( | self | ) |
Continuously records the requested parameters while self.recording is set to true.
def WREBTest.ParameterLogging.report | ( | self, | |
pdf, | |||
reportPath | |||
) |
generate this test's page in the PDF report.
pyfpdf-compatible PDF object. | |
reportPath | Path of directory containing the pdf report |
def WREBTest.ParameterLogging.runTest | ( | self | ) |
Starts the logging in a separate thread, moves to the next test.
def WREBTest.ParameterLogging.stopTest | ( | self | ) |
Sets the recording option to false, allowing the test to stop.