测试框架中遇到的问题

286 阅读1分钟

python读取xml文件报错

1.报错:python读取xml文件报错xml.parsers.expat.ExpatError: XML or text declaration not at start of entity

原因: xml文件,最开始的一行没有定格写

参考

allure的使用

1.打包机中报错

参考

转码报错

1.报错:UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 0: ordinal not in range(128)

原因:中文导致转码错误