在ddt.py文件中找到
#test_data_docstring = _get_test_data_docstring(func, v)进行注释
test_data_docstring = v["title"]添加在下面
然后在excel中添加title作为测试用例描述
再次执行suite,即可发现测试报告的用例描述已经是excel中设定好的title!
在ddt.py文件中找到
#test_data_docstring = _get_test_data_docstring(func, v)进行注释
test_data_docstring = v["title"]添加在下面
然后在excel中添加title作为测试用例描述
再次执行suite,即可发现测试报告的用例描述已经是excel中设定好的title!