You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
直接运行的时候报错:
testcases/autopilot_test.py:None (testcases/autopilot_test.py)
ImportError while importing test module '/Users/sunenmin/Desktop/httprunner/demo1/testcases/autopilot_test.py'.
Hint: make sure your test modules/packages have valid Python names.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
生成pytest脚本的命令
hrp convert --from-har demo1/har/autopilot.har --to-pytest
直接运行的时候报错:
testcases/autopilot_test.py:None (testcases/autopilot_test.py)
ImportError while importing test module '/Users/sunenmin/Desktop/httprunner/demo1/testcases/autopilot_test.py'.
Hint: make sure your test modules/packages have valid Python names.
但是直接使用 hrp pytest demo1/testcases/autopilot_test.py 是可以正常运行的
Beta Was this translation helpful? Give feedback.
All reactions