KeyError
This commit is contained in:
parent
b2695e0b24
commit
7991bbe958
|
@ -61,6 +61,8 @@ pipeline {
|
|||
def extraPytestOpts = ''
|
||||
if (params.TR_CASE_IDS != '') {
|
||||
extraPytestOpts = "--run_testrail_ids='${params.TR_CASE_IDS}'"
|
||||
} else {
|
||||
extraPytestOpts = "-m \"${params.TEST_MARKERS}\""
|
||||
}
|
||||
|
||||
withCredentials([
|
||||
|
@ -100,7 +102,6 @@ pipeline {
|
|||
--numprocesses 9 \
|
||||
--rerun_count=2 \
|
||||
--testrail_report=True \
|
||||
-m \"${params.TEST_MARKERS}\" \
|
||||
-k \"${params.KEYWORD_EXPRESSION}\" \
|
||||
--apk=${params.APK_NAME} \
|
||||
--build=PR-${params.PR_ID}-${utils.timestamp()} \
|
||||
|
|
|
@ -185,7 +185,7 @@ class TestrailReport(BaseTestReport):
|
|||
results = self.post('add_results_for_cases/%s' % self.run_id, data={"results": data})
|
||||
try:
|
||||
results[0]
|
||||
except IndexError:
|
||||
except (IndexError, KeyError):
|
||||
print("Got TestRail error when adding results: \n%s" % results)
|
||||
|
||||
for test in all_tests:
|
||||
|
|
Loading…
Reference in New Issue