change: replace httpbin.org with docker service

This commit is contained in:
lilong.129
2023-07-22 00:18:21 +08:00
parent 52fc9c3a17
commit c712aa425e
7 changed files with 22 additions and 8 deletions

View File

@@ -6,10 +6,12 @@ import (
"github.com/httprunner/httprunner/v4/hrp"
)
const HTTP_BIN_URL = "http://127.0.0.1:80"
func TestCaseUploadFile(t *testing.T) {
testcase := &hrp.TestCase{
Config: hrp.NewConfig("test upload file to httpbin").
SetBaseURL("https://httpbin.org").
SetBaseURL(HTTP_BIN_URL).
WithVariables(map[string]interface{}{"upload_file": "test.env"}),
TestSteps: []hrp.IStep{
hrp.NewStep("upload file explicitly").