e2e: fix for reruning tests
This commit is contained in:
parent
e6f8df9a52
commit
34930a7136
|
@ -2,6 +2,7 @@ import hmac
|
|||
import json
|
||||
import os
|
||||
import re
|
||||
import urllib
|
||||
from hashlib import md5
|
||||
|
||||
from support.test_data import SingleTestData
|
||||
|
@ -107,8 +108,9 @@ class BaseTestReport:
|
|||
|
||||
@staticmethod
|
||||
def get_jenkins_link_to_rerun_e2e(branch_name="develop", pr_id="", tr_case_ids=""):
|
||||
branch_name = urllib.parse.quote(branch_name)
|
||||
return 'https://ci.status.im/job/status-mobile/job/e2e/job/status-app-prs-rerun/parambuild/' \
|
||||
'?BRANCH_NAME=%s&PR_ID=%s&APK_URL=%s.apk&TR_CASE_IDS=%s' % (branch_name, pr_id, pr_id, tr_case_ids)
|
||||
'?BRANCH_NAME=%s&PR_ID=%s&APK_NAME=%s.apk&TR_CASE_IDS=%s' % (branch_name, pr_id, pr_id, tr_case_ids)
|
||||
|
||||
def get_sauce_final_screenshot_url(self, job_id):
|
||||
return 'https://media.giphy.com/media/9M5jK4GXmD5o1irGrF/giphy.gif'
|
||||
|
|
|
@ -89,7 +89,10 @@ class TestrailReport(BaseTestReport):
|
|||
'case_ids': self.get_regression_cases(),
|
||||
'include_all': False}
|
||||
run = self.post('add_run/%s' % self.project_id, request_body)
|
||||
self.run_id = run['id']
|
||||
try:
|
||||
self.run_id = run['id']
|
||||
except KeyError:
|
||||
print("TestRail error when creating a run: %s" % run)
|
||||
print("Testrun: %sruns/view/%s" % (self.url, self.run_id))
|
||||
|
||||
def get_cases(self, section_ids):
|
||||
|
|
Loading…
Reference in New Issue