mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
26 lines
564 B
Go
26 lines
564 B
Go
package examples
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/httprunner/httprunner/hrp"
|
|
)
|
|
|
|
// generated by examples/data/har/demo.har using HttpRunner v3.1.6
|
|
var (
|
|
demoHttpRunnerJSONPath hrp.TestCasePath = "demo_httprunner.json"
|
|
demoHttpRunnerYAMLPath hrp.TestCasePath = "demo_httprunner.yaml"
|
|
)
|
|
|
|
func TestCompatTestCase(t *testing.T) {
|
|
err := hrp.NewRunner(t).Run(&demoHttpRunnerJSONPath)
|
|
if err != nil {
|
|
t.Fatalf("run testcase error: %v", err)
|
|
}
|
|
|
|
err = hrp.NewRunner(t).Run(&demoHttpRunnerYAMLPath)
|
|
if err != nil {
|
|
t.Fatalf("run testcase error: %v", err)
|
|
}
|
|
}
|