test-model.go 555 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
package model

type Response struct {
	Code  int
	Cases []TestCase
}

type TestCase struct {
	Id    int
	Title string
	Steps []TestStep
}

type TestStep struct {
	TestCase

	Expect       string
	IsGroup      bool
	IsCheckPoint bool
}
aaronchen2k2k's avatar
aaronchen2k2k 已提交
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44

type TestReport struct {
	Pass      int
	Fail      int
	Total     int
	StartTime int64
	EndTime   int64
	Duration  int64

	Cases []CaseLog
}
type CaseLog struct {
	Numb   int
	Path   string
	Status bool

	CheckPoints []CheckPointLog
}
type CheckPointLog struct {
	Numb   int
	Expect string
	Actual string
	Status bool
}