Documentation ¶
Index ¶
Constants ¶
View Source
const IMG_SCALE string = `{"x_scale": %f, "y_scale": %f}`
图片缩放设置
View Source
const SHAPE_OPTION string = `{"type":"%s","color":{"line":"#FF0000","fill":"#FFFFFF"},"width":%.f,"height": %.f}`
形状设置(向下箭头 红线框 白色)
View Source
const SHAPE_TYPE_DOWN_ARROW = "downArrow"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Case ¶
type Case struct { CaseNo string `yaml:"caseNo"` CaseContent string `yaml:"caseContent"` ImagePath []string `yaml:"imagePath"` // 测试Case对应的所有证据图片的全路径 }
测试Case
type EvidenceOption ¶
type EvidenceOption struct { TestCaseFile string `yaml:"testCaseFile"` // 测试证据文件, XLSX文件 TestCase []Case `yaml:"testCase"` // 测试Case EvidenceSheetName string `yaml:"evidenceSheetName"` // 测试证据工作表 EvidenceRootPath string `yaml:"evidenceRootPath"` // 测试证据根路径 EvidenceAddStartCell string `yaml:"evidenceAddStartCell"` // 测试证据图片插入起始单元格 EvidenceScale float64 `yaml:"evidenceScale"` // 测试证据图片缩放率 EvidenceOffsetRow int `yaml:"evidenceOffsetRow"` // 测试证据图片间隔行数 }
测试证据选项
func ReadEvidenceInput ¶
func ReadEvidenceInput(file string) (eviOption EvidenceOption, err error)
获取输入
Click to show internal directories.
Click to hide internal directories.