对于的pytest测试框架,Xray并不原生支持集成,借助pytest强大方便的插件开发能力,可以开发Pytest插件,对自动化测试结果报告进行处理,处理成Xray可接受的report格式,通过使用REST API将测试结果导入到Xray中。
安装pytest-xray插件
pip install -i https://test.pypi.org/simple/ pytest-xray
插件项目代码gitlab地址:https://github.com/bee-bee-bee/pytest-xray