This commit is contained in:
yevh-berdnyk 2022-05-17 05:52:15 +03:00
parent b2695e0b24
commit 7991bbe958
No known key found for this signature in database
GPG Key ID: 0642C73C66214825
2 changed files with 3 additions and 2 deletions

View File

@ -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()} \

View File

@ -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: