mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-31 05:19:38 +08:00
refactor: NewConfig
This commit is contained in:
@@ -86,7 +86,7 @@ func (h *HAR) makeTestCase() (*hrp.TCase, error) {
|
||||
}
|
||||
|
||||
tCase := &hrp.TCase{
|
||||
Config: *h.prepareConfig(),
|
||||
Config: h.prepareConfig(),
|
||||
TestSteps: teststeps,
|
||||
}
|
||||
return tCase, nil
|
||||
@@ -114,11 +114,8 @@ func (h *HAR) load() (*Har, error) {
|
||||
}
|
||||
|
||||
func (h *HAR) prepareConfig() *hrp.TConfig {
|
||||
return &hrp.TConfig{
|
||||
Name: "testcase description",
|
||||
Variables: make(map[string]interface{}),
|
||||
Verify: false,
|
||||
}
|
||||
return hrp.NewConfig("testcase description").
|
||||
SetVerifySSL(false)
|
||||
}
|
||||
|
||||
func (h *HAR) prepareTestSteps() ([]*hrp.TStep, error) {
|
||||
|
||||
Reference in New Issue
Block a user