'Error When Importing Robot Framework Result to XRAY
Hi i want to import my report robot framework to Xray using python requests, but i get some error like this.
response status : 400
response body : b'{"error":"Result is not format Robot Framework"}'
this is my script.
params = (('projectKey', 'TQAT'), ('fixVersion', '1.0'), ('testEnvironments', 'staging'))
ROOT_DIR = os.path.abspath(os.curdir)
abs_file = os.path.join(ROOT_DIR, '../../AutomationReport', 'output.xml')
report_content = open(abs_file, "rb")
headers = {'Authorization': 'Bearer ' + auth_token, 'Content-Type': 'application/xml'}
response = requests.post(xray_cloud_base_url, params=params, data=report_content,
headers=headers)
and anw for running my RBF Test, i'm using Pabot. any suggestion?
Thank you in advance.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
