scenario

package
Version: v0.0.0-...-9e745d5 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scenario

type Scenario struct {
	ID           int64              `json:"id"`
	Name         string             `json:"name"`
	Type         string             `json:"type"`
	Gun          string             `json:"gun"`
	LastModified string             `json:"lastmodified"`
	Projects     string             `json:"projects"`
	ThreadGroups []ThreadGroup      `json:"threadGroups"`
	DBClient     *postgres.PGClient `json:",omitempty"`
}

Scenario - struct for scenario

func (*Scenario) CheckScenario

func (s *Scenario) CheckScenario() (res bool, err error)

CheckScenario - func for delete secenario(rows db and files)

func (*Scenario) DeleteScenario

func (s *Scenario) DeleteScenario() (err error)

DeleteScenario - func for delete secenario(rows db and files)

func (*Scenario) GetNameForID

func (s *Scenario) GetNameForID() (res string, err error)

GetNameForID - func for insert new scenario values in table

func (*Scenario) InsertToDB

func (s *Scenario) InsertToDB() (err error)

InsertToDB - func for insert new scenario values in table

func (*Scenario) Update

func (s *Scenario) Update() (err error)

Update - func for update scenario values in table

type State

type State struct {
	RunID      int64        `json:"runid"`
	Name       string       `json:"name"`
	Type       string       `json:"type"`
	StartTime  int64        `json:"starttime"`
	EndTime    int64        `json:"endtime"`
	Gun        string       `json:"gun"`
	Generators []hosts.Host `json:"generators"`
}

State - struct for state scenario

type ThreadGroup

type ThreadGroup struct {
	ThreadGroupName   string              `json:"threadGroupName"`
	ThreadGroupType   string              `json:"threadGroupType"`
	ThreadGroupParams []ThreadGroupParams `json:"threadGroupParams"`
}

ThreadGroup - struct for the jmeter scenario tread groups params

type ThreadGroupParams

type ThreadGroupParams struct {
	Type  string `json:"type"`
	Name  string `json:"name"`
	Value string `json:"value"`
}

ThreadGroupParams - simple jmeter tread groups param from TreadGroupsParams struct

Jump to

Keyboard shortcuts

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