vari.go 917 字节
Newer Older
aaronchen2k2k's avatar
init  
aaronchen2k2k 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
package vari

import (
	"github.com/awesome-gocui/gocui"
	"github.com/easysoft/zentaoatf/src/model"
	"github.com/easysoft/zentaoatf/src/utils/const"
)

var (
	Config         = model.Config{}
	Cui            *gocui.Gui
	MainViewHeight int

	RunMode        constant.RunMode
	ZTFDir         string
	LogDir         string
	RunFromCui     bool
	UnitTestType   string
	UnitTestTool   string
	UnitTestResult string
	ProductId      string

	SessionVar  string
	SessionId   string
	RequestType string
	RequestFix  string = ""

	ScriptExtToNameMap map[string]string
	CurrScriptFile     string // scripts/tc-001.py
	CurrResultDate     string // 2019-08-15T173802
	CurrCaseId         int    // 2019-08-15T173802

	ScreenWidth     int
	ScreenHeight    int
	ZentaoBugFileds model.ZentaoBugFileds

	//ZentaoCaseFileds model.ZentaoCaseFileds

	CurrBug        model.Bug
	CurrBugStepIds string

	Verbose     bool
	Interpreter string
)