
谢谢大佬,加上这个函数就可以生成相应的报告了。
2 台测试机在实际运行中,我看机器只进行了一次点击、回退操作,第二轮并没有看到机器操作,请问这种情况是缺失了哪部分呀?
def get_report_path(self,Rcount):
"""取得测试报告的路径"""
print(Rcount)
allure_path = os.path.join(conftest.REPORT_TEMP,
'%s_%s_allure_results' % (conftest.PROJECT_SN, Rcount))
allure_report_path = os.path.join(conftest.REPORT_DIR,
'%s_%s_report' % (conftest.PROJECT_SN, Rcount))
if not os.path.exists(allure_path):
os.makedirs(allure_path)
if not os.path.exists(allure_report_path):
os.makedirs(allure_report_path)
大佬,我在 allure 路径下定义了以 sn 号 + 每轮做报告与临时数据区分。
现在是 for 循环预期执行二遍,实际只执行一遍。
诸位大佬。救急
加了默金的群,他的哔哩哔哩视频还可以。