简体   繁体   中英

Issue creation in jira using Xray python module

How to read a HTML file and create test steps in TEST issue on Jira using Xray python ? Also, do I need to convert HTML file to JSON file for creating TEST using Xray python module ??

HTML is not a data format suitable for structuring information in a machine readable way; it's meant to present information in a readable way for humans. Whenever a tool generates an HTML report with some information, such as test cases, it doesn't follow a well-know, machine friendly syntax/schema.

My recommendation would be to get that info from your source tool (eg, TestProject) in a format that can easily be parsed and that doesn't easily break. You can try checking if your source tool can generate a JSON or a XML report; then you need to process it yourself and implement the logic to convert it to the objects you need to make the API requests. To create tests in Xray, you can either use Xray APIs or generate a CSV that Xray supports. If you're using some library to make the requests to create the tests, it can be easier to implement but you'll have to implement the logic referred earlier.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM