2018-04-28 09:02:39 +00:00
|
|
|
RERUN_ERRORS = [
|
2018-05-30 15:41:00 +00:00
|
|
|
"can't receive further commands",
|
2018-04-28 09:02:39 +00:00
|
|
|
'Original error: Error: ESOCKETTIMEDOUT',
|
|
|
|
"The server didn't respond in time.",
|
|
|
|
'An unknown server-side error occurred while processing the command.',
|
2018-05-23 13:02:45 +00:00
|
|
|
'Could not proxy command to remote server. Original error: Error: socket hang up',
|
|
|
|
'The server returned an invalid or incomplete response.',
|
|
|
|
'502 Bad Gateway',
|
|
|
|
'Unexpected server error',
|
2018-05-25 17:29:07 +00:00
|
|
|
'504 Gateway Time-out',
|
|
|
|
'Internal Server Error',
|
2018-05-28 13:39:59 +00:00
|
|
|
'Invalid message: ERROR Internal Server Error',
|
2018-05-31 13:18:49 +00:00
|
|
|
'ERROR The test with session id'
|
2018-05-30 20:42:23 +00:00
|
|
|
"Message: 'CreateAccountButton' is not found on screen",
|
|
|
|
"503 Service Unavailable",
|
|
|
|
"AttributeError: 'NoneType' object has no attribute 'find_element'"
|
2018-04-28 09:02:39 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
def should_rerun_test(test_error):
|
|
|
|
for rerun_error in RERUN_ERRORS:
|
|
|
|
if rerun_error in test_error:
|
|
|
|
return True
|
|
|
|
return False
|