|
|
@ -146,7 +146,15 @@ if __name__ == "__main__": |
|
|
|
test_cases = [{ |
|
|
|
test_cases = [{ |
|
|
|
'testCase': { |
|
|
|
'testCase': { |
|
|
|
'caseName': str(action['id']['actionId']), |
|
|
|
'caseName': str(action['id']['actionId']), |
|
|
|
'result': str(action['statusAttributes']['status']) |
|
|
|
} |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
# Test timeouts have a different dictionary structure compared to pass and |
|
|
|
|
|
|
|
# fail results. |
|
|
|
|
|
|
|
elif action['statusAttributes']['status'] == 'TIMED_OUT': |
|
|
|
|
|
|
|
test_cases = [{ |
|
|
|
|
|
|
|
'testCase': { |
|
|
|
|
|
|
|
'caseName': str(action['id']['actionId']), |
|
|
|
|
|
|
|
'timedOut': True |
|
|
|
} |
|
|
|
} |
|
|
|
}] |
|
|
|
}] |
|
|
|
else: |
|
|
|
else: |
|
|
@ -155,6 +163,8 @@ if __name__ == "__main__": |
|
|
|
for test_case in test_cases: |
|
|
|
for test_case in test_cases: |
|
|
|
if 'errors' in test_case['testCase']: |
|
|
|
if 'errors' in test_case['testCase']: |
|
|
|
result = 'FAILED' |
|
|
|
result = 'FAILED' |
|
|
|
|
|
|
|
elif 'timedOut' in test_case['testCase']: |
|
|
|
|
|
|
|
result = 'TIMEOUT' |
|
|
|
else: |
|
|
|
else: |
|
|
|
result = 'PASSED' |
|
|
|
result = 'PASSED' |
|
|
|
bq_rows.append({ |
|
|
|
bq_rows.append({ |
|
|
|