大神看下,生成任务后,这个编码报错,建议换成 python3,再也不用担心编码问题了
Traceback (most recent call last):
File "makeTestCase.py", line 295, in
loop_make_file(case_date, old_run_case_data, task_id, base_host)
2018-07-16 15:48:24 "save data to file :app/static/interface_auto/test_src/5/run_case.py"
File "makeTestCase.py", line 258, in loop_make_file
verif_value_from_file, verif_key, need_save_responseData, task_id, base_host)
File "makeTestCase.py", line 214, in make_py_file
base_host='"' + base_host + '"',
UnicodeEncodeError: 'ascii' codec can't encode characters in position 3-4: ordinal not in range(128)