venom: Index | Files

package grpc

import ""


Package Files



const Name = "grpc"

Name for test exec

func New Uses

func New() venom.Executor

New returns a new Test Exec

type Executor Uses

type Executor struct {
    Url                  string                 `json:"url" yaml:"url"`
    Service              string                 `json:"service" yaml:"service"`
    Method               string                 `json:"method" yaml:"method"`
    Plaintext            bool                   `json:"plaintext,omitempty" yaml:"plaintext,omitempty"`
    JsonDefaultFields    bool                   `json:"default_fields" yaml:"default_fields"`
    IncludeTextSeparator bool                   `json:"include_text_separator" yaml:"include_text_separator"`
    Data                 map[string]interface{} `json:"data" yaml:"data"`
    Headers              map[string]string      `json:"headers" yaml:"headers"`
    ConnectTimeout       *int64                 `json:"connect_timeout" yaml:"connect_timeout"`

Executor represents a Test Exec

func (Executor) GetDefaultAssertions Uses

func (Executor) GetDefaultAssertions() *venom.StepAssertions

GetDefaultAssertions return default assertions for type exec

func (Executor) Run Uses

func (Executor) Run(testCaseContext venom.TestCaseContext, l venom.Logger, step venom.TestStep, workdir string) (venom.ExecutorResult, error)

Run execute TestStep of type exec

func (Executor) ZeroValueResult Uses

func (Executor) ZeroValueResult() venom.ExecutorResult

ZeroValueResult return an empty implemtation of this executor result

type Result Uses

type Result struct {
    Executor      Executor    `json:"executor,omitempty" yaml:"executor,omitempty"`
    Systemout     string      `json:"systemout,omitempty" yaml:"systemout,omitempty"`
    SystemoutJSON interface{} `json:"systemoutjson,omitempty" yaml:"systemoutjson,omitempty"`
    Systemerr     string      `json:"systemerr,omitempty" yaml:"systemerr,omitempty"`
    SystemerrJSON interface{} `json:"systemerrjson,omitempty" yaml:"systemerrjson,omitempty"`
    Err           string      `json:"err,omitempty" yaml:"err,omitempty"`
    Code          string      `json:"code,omitempty" yaml:"code,omitempty"`
    TimeSeconds   float64     `json:"timeseconds,omitempty" yaml:"timeseconds,omitempty"`
    TimeHuman     string      `json:"timehuman,omitempty" yaml:"timehuman,omitempty"`

Result represents a step result

Package grpc imports 18 packages (graph) and is imported by 4 packages. Updated 2019-05-05. Refresh now. Tools for package owners.