def getTestConfig(self, test):
    if (test not in self.configuration):
        return {}
    config = {'TestCase': self.configuration[test].get('general_info_TestCase', None), 'Settings': ast.literal_eval(self.configuration[test].get('general_info_GeneralSettings', '{}'))}
    if ('general_info_ImageHash' in self.configuration[test]):
        config['ImageHash'] = self.configuration[test]['general_info_ImageHash']
    if ('general_info_MaskHash' in self.configuration[test]):
        config['MaskHash'] = self.configuration[test]['general_info_MaskHash']
    if (config['TestCase'] is None):
        self.logger.error('Missing key "general_info_TestCase". Cannot configure!')
        return None
    return config
def getTestConfig(self, test):
    if (test not in self.configuration):
        return {}
    config = {'TestCase': self.configuration[test].get('general_info_TestCase', None), 'Settings': ast.literal_eval(self.configuration[test].get('general_info_GeneralSettings', '{}'))}
    if ('general_info_ImageHash' in self.configuration[test]):
        config['ImageHash'] = self.configuration[test]['general_info_ImageHash']
    if ('general_info_MaskHash' in self.configuration[test]):
        config['MaskHash'] = self.configuration[test]['general_info_MaskHash']
    if (config['TestCase'] is None):
        self.logger.error('Missing key "general_info_TestCase". Cannot configure!')
        return None
    return config