使用httprunner报错一
INFO HttpRunner version: 2.4.9
INFO Loading environment variables from D:\simpleTest\.env
!!!!!!!!!! exception stage: load tests !!!!!!!!!!
while parsing a block mapping
in "D:\simpleTest\testsuites\testsuite_htlx_cq.yml", line 7, column 3
expected <block end>, but found '<block mapping start>'
in "D:\simpleTest\testsuites\testsuite_htlx_cq.yml", line 14, column 4
原因:yaml文件中节点没对齐,比如 one和Two没对齐。
config:
name: "demo testsuite"
base_url: "http://10.7.2.202:5328/"
testcases:
one:
name: call demo_testcase with data 1
testcase: testcases/HTLX/htlx-cq.yml
parameters:
typeid-CoverType-modeflag:
- ["02569","100106","1"]
Two:
name: call demo_testcase with data 2
testcase: testcases/dbsh5328.yml
parameters:
- logname: ["00012","0035"]
- orderid: ${P(data/orderid.csv)}
- CoverType: [100104]
使用httprunner报错二
Traceback (most recent call last):
PermissionError: [Errno 13] Permission denied: 'D:/simpleTest/data/orderid.csv'
程序在写文件时,文件被其他人使用,关掉打开的文件。