Documentation
¶
Index ¶
- Constants
- type Attachment
- type Label
- type Step
- type Suite
- type TestCase
- func (t *TestCase) AddAttachment(attach *Attachment)
- func (t *TestCase) AddLabel(name, value string)
- func (t *TestCase) AddStep(step *Step)
- func (t *TestCase) End(status string, err error, end time.Time)
- func (t *TestCase) SetDescription(desc string)
- func (t *TestCase) SetDescriptionOrDefaultValue(desc string, defVal string)
Constants ¶
View Source
const NsModel = `urn:model.allure.qatools.yandex.ru`
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Attachment struct {
Title string `xml:"title,attr"`
Type string `xml:"type,attr"`
Size int `xml:"size,attr"`
Source string `xml:"source,attr"`
}
func NewAttachment ¶
func NewAttachment(title, mime, source string, size int) *Attachment
type Step ¶
type Suite ¶
type TestCase ¶
type TestCase struct {
Status string `xml:"status,attr"`
Start int64 `xml:"start,attr"`
Stop int64 `xml:"stop,attr"`
Name string `xml:"name"`
Steps struct {
Steps []*Step `xml:"step"`
} `xml:"steps"`
Labels struct {
Label []*Label `xml:"label"`
} `xml:"labels"`
Attachments struct {
Attachment []*Attachment `xml:"attachment"`
} `xml:"attachments"`
Desc string `xml:"description"`
Failure struct {
Msg string `xml:"message"`
Trace string `xml:"stack-trace"`
} `xml:"failure,omitempty"`
}
func (*TestCase) AddAttachment ¶
func (t *TestCase) AddAttachment(attach *Attachment)
func (*TestCase) SetDescription ¶
func (*TestCase) SetDescriptionOrDefaultValue ¶
Click to show internal directories.
Click to hide internal directories.