models

package
v0.0.0-...-be53ef6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2015 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllPlansBySprintName

func GetAllPlansBySprintName(sprintname string) plans

func GetAllSprintNames

func GetAllSprintNames() []map[string][]byte

func GetAllSprintStats

func GetAllSprintStats() []map[string][]byte

func GetAllTestPlanNames

func GetAllTestPlanNames() []map[string][]byte

func GetAllTestPlans

func GetAllTestPlans(table string) []map[string][]byte

func GetAllTestPlansAndCount

func GetAllTestPlansAndCount() []map[string][]byte

func GetExectutionTableCaption

func GetExectutionTableCaption() string

func GetExectutionTableHeader

func GetExectutionTableHeader() []string

func GetExecutionCount

func GetExecutionCount() int64

Process the table "V_testlink_testexecution_tree" Get all executions count

func GetExecutionCountWhere

func GetExecutionCountWhere(where string) int64

func GetExecutionCountWheres

func GetExecutionCountWheres(where []string) int64

func GetFieldsArray

func GetFieldsArray(obj interface{}) []string

Convert fields of a struct into an array

func GetFieldsString

func GetFieldsString(obj interface{}) string

Convert fields of a struct into a string

func GetStatisticsSprintTableHeader

func GetStatisticsSprintTableHeader() []string

func GetToadReleaseOverviewColumn

func GetToadReleaseOverviewColumn(column string) []map[string][]byte

func GetToadReleaseReportColumn

func GetToadReleaseReportColumn(column string) []map[string][]byte

func GetToadSprintPlans

func GetToadSprintPlans() []map[string][]byte

func InitDB

func InitDB() (err error)

func SetCacher

func SetCacher()

Types

type Tdp_sprint7_burndown

type Tdp_sprint7_burndown struct {
	Date      time.Time `xorm:"DATETIME 'Date'"`
	Estimated int32     `xorm:"INT 'EstimatedCase'"`
	Executed  int32     `xorm:"INT 'ExecutedCase'"`
	Remaining int32     `xorm:"INT 'RemainingCase'"`
}

func GetStatisticsSprint

func GetStatisticsSprint() []Tdp_sprint7_burndown

type Toad_release_overview

type Toad_release_overview struct {
	ReleasePlan string `xorm:"VARCHAR(20) 'ReleasePlan'"`
	Platform    string `xorm:"VARCHAR(50) 'Platform'"`
	ToadModule  string `xorm:"VARCHAR(170) 'ToadModule'"`
	SubModule   string `xorm:"VARCHAR(174) 'SubModule'"`
	TC_Id       int32  `xorm:"INT 'testcase_id'"`
	TestCase    string `xorm:"VARCHAR(100) 'TestCase'"`
	Sprint1     string `xorm:"VARCHAR(50) 'Sprint1'"`
	Sprint2     string `xorm:"VARCHAR(50) 'Sprint2'"`
	Sprint3     string `xorm:"VARCHAR(50) 'Sprint3'"`
	Sprint4     string `xorm:"VARCHAR(50) 'Sprint4'"`
	Sprint5     string `xorm:"VARCHAR(50) 'Sprint5'"`
	Exec_Freq   int32  `xorm:"-"`
}

func GetToadReleaseOverview

func GetToadReleaseOverview() []Toad_release_overview

Release Overview

func GetToadReleaseOverviewWhere

func GetToadReleaseOverviewWhere(name, value string) []Toad_release_overview

type Toad_release_report

type Toad_release_report struct {
	ReleasePlan string `xorm:"VARCHAR(50) 'ReleasePlan'"`
	Platform    string `xorm:"VARCHAR(50) 'Platform'"`
	ToadModule  string `xorm:"VARCHAR(170) 'ToadModule'"`
	SubModule   string `xorm:"VARCHAR(174) 'SubModule'"`
	TC_Id       int32  `xorm:"INT 'testcase_id'"`
	TestCase    string `xorm:"VARCHAR(100) 'TestCase'"`
	Status      string `xorm:"VARCHAR(20) 'status'"`
	LastTimeRun string `xorm:"DATETIME 'lastTimeRun'"`
	Covered     string `xorm:"VARCHAR(20) 'Covered'"`
}

type Toad_sprint_plans

type Toad_sprint_plans struct {
	Id            int32  `xorm:"INT 'id'"`
	TestPlanId    int32  `xorm:"INT 'testplan_id'"`
	SprintNo      int32  `xorm:"INT 'sprintNo'"`
	Product       string `xorm:"VARCHAR(20) 'product'"`
	Version       string `xorm:"VARCHAR(20) 'version'"`
	ReleasePlanId int32  `xorm:"INT 'releaseplan_id'"`
}

report_sprint

type Toad_sprint_stats

type Toad_sprint_stats struct {
	SprintNo      int32     `xorm:"INT 'sprintNo'"`
	Product       string    `xorm:"VARCHAR(20) 'product'"`
	Version       string    `xorm:"VARCHAR(20) 'version'"`
	Date          time.Time `xorm:"DATETIME 'Date'"`
	TotalCases    int32     `xorm:"INT 'totalCases'"`
	RemainedCases int32     `xorm:"INT 'remainedCases'"`
	FailedCases   int32     `xorm:"INT 'failedCases'"`
	CompletePCT   string    `xorm:"VARCHAR(20) 'completePCT'"`
}

statistics

func GetSprintStatsWhere

func GetSprintStatsWhere(sp_id string, sp_product string, sp_version string) ([]Toad_sprint_stats, error)

type V_auto_last_execution

type V_auto_last_execution struct {
	TestPlan_Name string `xorm:"VARCHAR(100) 'TestPlan_Name'"`
	// testplan_id       int16     `xorm:"INT 'testplan_id'"`
	// tcversion_number  int16     `xorm:"INT 'tcversion_number'"`
	// tcversion_id      int16     `xorm:"INT 'tcversion_id'"`
	Platforms_Name string `xorm:"VARCHAR(100) 'Platforms_Name'"`
	// notes             string    `xorm:"TEXT 'notes'"`
	LastExecutionTime time.Time `xorm:"DATETIME 'LastExecutionTime'"`
	ExecutionStatus   int16     `xorm:"INT 'ExecutionStatus'"`
	CaseSuite         string    `xorm:"VARCHAR(100) 'CaseSuite'"`
	CaseName          string    `xorm:"VARCHAR(100) 'CaseName'"`
	BuildName         string    `xorm:"VARCHAR(100) 'BuildName'"`
}

func Get_v_auto_last_execution

func Get_v_auto_last_execution(count int, start int) ([]V_auto_last_execution, error)
type V_testlink_testexecution_tree struct {
	TestPlan    string    `xorm:"VARCHAR(100) 'TestPlan'"`
	Platform    string    `xorm:"VARCHAR(100) 'Platform'"`
	ToadModule  string    `xorm:"VARCHAR(100) 'ToadModule'"`
	SubModule   string    `xorm:"VARCHAR(403) 'SubModule'"`
	Testcase_id int32     `xorm:"INT 'testcase_id'"`
	TestCase    string    `xorm:"VARCHAR(100) 'TestCase'"`
	Status      string    `xorm:"CHAR(1) 'status'"`
	Build       string    `xorm:"VARCHAR(100) 'Build'"`
	Date        time.Time `xorm:"DATETIME 'LasTimeRun'"`
	LastTimeRun string    `xorm:"-"`
	Notes       string    `xorm:"TEXT 'notes'"`
	Tester      string    `xorm:"VARCHAR(30) 'Tester'"`
}

func GetAllExecutions

func GetAllExecutions(count int, start int) ([]V_testlink_testexecution_tree, error)

Get all executions

select TestSuite, TestPlan, Platform, ToadModule, SubModule, TestCase, status, Build, LasTimeRun, notes, Tester, testcase_id FROM V_testlink_testexecution_tree

where TestPlan in( 'TDP_DB_Plan', ”)

func GetAllExecutionsWhere

func GetAllExecutionsWhere(where string) ([]V_testlink_testexecution_tree, error)

func GetAllExecutionsWheres

func GetAllExecutionsWheres(count int, start int, where []string) ([]V_testlink_testexecution_tree, error)

func GetExecutionsWhere

func GetExecutionsWhere(count int, start int, where string) ([]V_testlink_testexecution_tree, error)

type V_toad_release_report

type V_toad_release_report struct {
	ToadModule  string    `xorm:"VARCHAR(170) 'ToadModule'"`
	SubModule   string    `xorm:"VARCHAR(174) 'SubModule'"`
	TC_Id       int32     `xorm:"INT 'testcase_id'"`
	TestCase    string    `xorm:"VARCHAR(100) 'TestCase'"`
	Status      string    `xorm:"VARCHAR(20) 'status'"`
	ReleasePlan string    `xorm:"VARCHAR(50) 'releaseplan'"`
	Product     string    `xorm:"VARCHAR(50) 'product'"`
	Platform    string    `xorm:"VARCHAR(50) 'platforms'"`
	Date        time.Time `xorm:"DATETIME 'LasTimeRun'"`
	LastTimeRun string    `xorm:"-"`
	DataRange   int32     `xorm:"-"`
	Covered     string    `xorm:"VARCHAR(20) 'Covered'"`
	Build       string    `xorm:"VARCHAR(100) 'Build'"`
}

func GetToadReleaseReport

func GetToadReleaseReport() []V_toad_release_report

Release Report

func GetToadReleaseReportWhere

func GetToadReleaseReportWhere(name, value string) []V_toad_release_report

type V_toad_sprint_report

type V_toad_sprint_report struct {
	Product     string    `xorm:"VARCHAR(100) 'product'"`
	Version     string    `xorm:"VARCHAR(100) 'version'"`
	SprintNo    int32     `xorm:"INT 'sprintNo'"`
	TP_ID       int32     `xorm:"INT 'testplan_id'"`
	TestPlan    string    `xorm:"VARCHAR(100) 'TestPlan'"`
	Platform_ID int32     `xorm:"INT 'platform_id'"`
	Platform    string    `xorm:"VARCHAR(100) 'Platform'"`
	ToadModule  string    `xorm:"VARCHAR(100) 'ToadModule'"`
	SubModule   string    `xorm:"VARCHAR(403) 'SubModule'"`
	Testcase_id int32     `xorm:"INT 'testcase_id'"`
	TestCase    string    `xorm:"VARCHAR(100) 'TestCase'"`
	Status      string    `xorm:"CHAR(1) 'status'"`
	Build_ID    int32     `xorm:"INT 'build_id'"`
	Build       string    `xorm:"VARCHAR(100) 'Build'"`
	Date        time.Time `xorm:"DATETIME 'LasTimeRun'"`
	LastTimeRun string    `xorm:"-"`
	Notes       string    `xorm:"TEXT 'notes'"`
	Tester      string    `xorm:"VARCHAR(30) 'Tester'"`
}

func GetSprintExecutionsWhere

func GetSprintExecutionsWhere(sp_id string, sp_product string, sp_version string) ([]V_toad_sprint_report, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL