Documentation
¶
Index ¶
- func CompareRuns(path_target_run string, path_comp_run string) error
- func LaunchCommand(targetDir string, prog string, cmdLineArgs []string) (string, error)
- type OverallTestResult
- type ScanResult
- type TestCase
- type TestCaseResult
- func (tc *TestCaseResult) EndTest()
- func (tc TestCaseResult) GetExecutionDuration() time.Duration
- func (tc TestCaseResult) GetPassFailStatus() bool
- func (tc *TestCaseResult) Marshal2JSON() (string, error)
- func (tc *TestCaseResult) StartTest()
- func (tc *TestCaseResult) UnmarshalFromJSON(result_str string) error
- type TestConfig
- type TestDriver
- type TestRun
- type TestRunAnalysis
- type TestSuite
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareRuns ¶
Types ¶
type OverallTestResult ¶
type ScanResult ¶
type TestCase ¶
type TestCase struct {
Disabled bool `json:"disabled"`
Name string `json:"testcase_name"`
Id string `json:"testcase_id"`
Description string `json:"testcase_description"`
Kind string `json:"testcase_kind"`
AssociatedSuites string `json:"associated_testsuites"`
Program string `json:"program"`
StepsPrerun string `json:"steps_prerun"`
StepsPostrun string `json:"steps_postrun"`
CliParameters string `json:"cli_parameters"`
TimeoutSecs int `json:"timeout_secs"`
}
type TestCaseResult ¶
type TestCaseResult struct {
Id string `json:"testcase_result_id"`
StartTime time.Time `json:"testcase_result_starttime"`
EndTime time.Time `json:"testcase_result_endtime"`
CmdLine string `json:"testcase_result_cmdline"`
Passed bool `json:"testcase_result_passed"`
TimedOut bool `json:"testcase_result_timed_out"`
Data string `json:"testcase_result_data"`
ParentId string `json:"testcase_parent_id"`
}
func (*TestCaseResult) EndTest ¶
func (tc *TestCaseResult) EndTest()
func (TestCaseResult) GetExecutionDuration ¶
func (tc TestCaseResult) GetExecutionDuration() time.Duration
func (TestCaseResult) GetPassFailStatus ¶
func (tc TestCaseResult) GetPassFailStatus() bool
func (*TestCaseResult) Marshal2JSON ¶
func (tc *TestCaseResult) Marshal2JSON() (string, error)
func (*TestCaseResult) StartTest ¶
func (tc *TestCaseResult) StartTest()
func (*TestCaseResult) UnmarshalFromJSON ¶
func (tc *TestCaseResult) UnmarshalFromJSON(result_str string) error
type TestConfig ¶
type TestConfig struct {
Root string `json:"testsuite_root"`
Author string `json:"author"`
Timestamp string `json:"modified_timestamp"`
TestCases []TestCase `json:"testcases"`
TestSuites []TestSuite `json:"testsuites"`
}
func (*TestConfig) ReadConfigFile ¶
func (tc *TestConfig) ReadConfigFile(path string) error
func (TestConfig) RetrieveTestCasesByIdentifier ¶
func (tc TestConfig) RetrieveTestCasesByIdentifier(identifier string) []TestCase
type TestDriver ¶
type TestDriver struct {
TestConfigPath string
TestSuiteRootPath string
// contains filtered or unexported fields
}
func (*TestDriver) ExecuteTestSuite ¶
func (td *TestDriver) ExecuteTestSuite(identifier string) TestRun
func (*TestDriver) LoadTestConfiguration ¶
func (td *TestDriver) LoadTestConfiguration(path string) error
type TestRun ¶
type TestRun struct {
RunID string `json:"testrun_id"`
Config string `json:"testrun_config"`
StartTime time.Time `json:"testrun_startime"`
EndTime time.Time `json:"testrun_endtime"`
TestCases []TestCase `json:"testrun_testcases"`
ExecutedTestResults []TestCaseResult `json:"testrun_executed_test_results"`
}
func (*TestRun) DumpTestRun2JSON ¶
func (*TestRun) GenerateTestRunAnalysis ¶
func (tr *TestRun) GenerateTestRunAnalysis() TestRunAnalysis
func (*TestRun) GetExecutionDuration ¶
type TestRunAnalysis ¶
Click to show internal directories.
Click to hide internal directories.