Methods

run

Body of the test to be implemented by child classes. This code is run during test.

is_applicable

Return false if the test should be skipped.

Can eg. check vars{BIGTEST}, vars{LIVETEST}

test_flags

Return a hash of flags that are either there or not

'fatal'          - abort whole test suite if this fails (and set overall state 'failed')
'always_run'      - requests that a test module is always executed regardless if a previous test module is set to 'fatal'
'ignore_failure' - if this module fails, it will not affect the overall result at all
'milestone'      - after this test succeeds, update 'lastgood'
'no_rollback'     - don't roll back to 'lastgood' snapshot if this fails
'always_rollback' - roll back to 'lastgood' snapshot even if this does not fail

total_result_count

Returns the total number of results created via the various record methods.

post_fail_hook

Function is run after test has failed to e.g. recover log files

_framenumber_to_timerange

Create a media fragment time from a given framenumber

serialize a match result from needle::search

record_resultfile

$self->record_resultfile($title, $output [, result => $result] [, resultname => $name]);

Record result file to be parsed when evaluating test results, for example within the openQA web interface.

record_testresult

Makes a new test detail with the specified $result, adds it to the test details and returns it.

_result_add_screenshot

internal function to add a screenshot to an existing result structure

take_screenshot

add screenshot with 'unk' result if an image is available