upload_test_cases

This python module is a script that helps to generate test images and upload them to the midas data store. It is dependent on a the specific structure of the unit tests. It can be improved in the future by using the testtools module and providing a custom exception handler.

upload_test_cases.exceptionHandler(func)

Decorator function to catch ImageDifferenceExceptions and prompt the user to upload test images to the midas data store. Catch all other exceptions and warn the user.

upload_test_cases.findTests(path)

Find all the tests in the selenium tests path and return an interable.

upload_test_cases.iterate_tests(test_suite_or_case)

Iterate through all of the test cases in ‘test_suite_or_case’.