mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-25 02:10:24 +08:00
change: replace httpbin.org with docker service
This commit is contained in:
@@ -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").
|
||||
|
||||
Reference in New Issue
Block a user