HttpRunner httprunner V4 greater_than 比较数据大小的情况下,期望值写 0 会报错,写 0.0 不会报错

Kingo-V · 2024年01月15日 · 2277 次阅读
  • greater_than: [ "body.ReValue.Data[0].ConvertPrice", 0 ]

goroutine 1 [running]:
main.main.func1()
E:/GoWorkSpace/httprunner-4.2.0/hrp/cmd/cli/main.go:19 +0x6b
panic({0x13f5360?, 0x1c15320?})
D:/Program Files/Go/src/runtime/panic.go:914 +0x21f
testing.(*common).decorate(0xb90f45?, {0xc00047ec00, 0x2e5}, 0x0?)
D:/Program Files/Go/src/testing/testing.go:772 +0xa0
testing.(*common).logDepth(0xc00028c340, {0xc00047ec00, 0x2e5}, 0x3)
D:/Program Files/Go/src/testing/testing.go:1035 +0x1dd
testing.(*common).log(...)
D:/Program Files/Go/src/testing/testing.go:1004
testing.(*common).Errorf(0xc00028c340, {0x14ffb6b?, 0xb8eaa5?}, {0xc000174a10?, 0x13a4e20?, 0x201?})
D:/Program Files/Go/src/testing/testing.go:1068 +0x54
D:/Program Files/GoWork/pkg/mod/github.com/spf13/cobra@v1.2.1/command.go:902
github.com/httprunner/httprunner/v4/hrp/cmd.Execute()
E:/GoWorkSpace/httprunner-4.2.0/hrp/cmd/root.go:62 +0xe5
main.main()
E:/GoWorkSpace/httprunner-4.2.0/hrp/cmd

暂无回复。
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册