Versions in this module Expand all Collapse all v0 v0.6.6 Oct 19, 2017 v0.6.5 Oct 17, 2017 Changes in this version + const ExpectBody + const ExpectStatus + const MeqaInit + func ArrayParamsResolveWithHistory(paramArray []interface{}, h *TestHistory) + func GeneratePathTestSuite(operations mqswag.NodeList, plan *TestPlan) + func GenerateTestsForObject(create *mqswag.DAGNode, obj *mqswag.DAGNode, plan *TestPlan) error + func GetBaseURL(swagger *mqswag.Swagger) string + func GetLastPathElement(name string) string + func GetLastPathParam(name string) string + func GetOperationByMethod(item *spec.PathItem, method string) *spec.Operation + func MapParamsResolveWithHistory(paramMap map[string]interface{}, h *TestHistory) + func OperationMatches(node *mqswag.DAGNode, method string) bool + func ParamsAdd(dst []spec.Parameter, src []spec.Parameter) []spec.Parameter + func RandomTime(t time.Time, r time.Duration) time.Time + func StringParamsResolveWithHistory(str string, h *TestHistory) interface + func WriteComment(comment string, f *os.File) + type Comparison struct + func (comp *Comparison) GetMapByOp(op string) map[string]interface{} + func (comp *Comparison) SetForOp(op string, key string, value interface{}) *Comparison + type PathWeight struct + type PathWeightList []PathWeight + func (n PathWeightList) Len() int + func (n PathWeightList) Less(i, j int) bool + func (n PathWeightList) Swap(i, j int) + type Test struct + Expect map[string]interface{} + Method string + Name string + Path string + Ref string + Strict bool + func CreateTestFromOp(opNode *mqswag.DAGNode, testId int) *Test + func (t *Test) AddBasicComparison(tag *mqswag.MeqaTag, paramSpec *spec.Parameter, data interface{}) + func (t *Test) AddObjectComparison(tag *mqswag.MeqaTag, obj map[string]interface{}, schema *spec.Schema) + func (t *Test) CompareGetResult(className string, associations map[string]map[string]interface{}, ...) error + func (t *Test) CopyParent(parentTest *Test) + func (t *Test) Duplicate() *Test + func (t *Test) GenerateParameter(paramSpec *spec.Parameter, db *mqswag.DB) (interface{}, error) + func (t *Test) GenerateSchema(name string, parentTag *mqswag.MeqaTag, schema *spec.Schema, db *mqswag.DB, ...) (interface{}, error) + func (t *Test) GetParam(path []string) interface{} + func (t *Test) Init(suite *TestSuite) + func (t *Test) ProcessOneComparison(className string, method string, comp *Comparison, ...) error + func (t *Test) ProcessResult(resp *resty.Response) error + func (t *Test) ResolveHistoryParameters(h *TestHistory) + func (t *Test) ResolveParameters(tc *TestSuite) error + func (t *Test) Run(tc *TestSuite) error + func (t *Test) SetRequestParameters(req *resty.Request) string + type TestHistory struct + var History TestHistory + func (h *TestHistory) Append(t *Test) + func (h *TestHistory) GetTest(name string) *Test + type TestParams struct + BodyParams interface{} + FormParams map[string]interface{} + HeaderParams map[string]interface{} + PathParams map[string]interface{} + QueryParams map[string]interface{} + func (dst *TestParams) Add(src *TestParams) + func (dst *TestParams) Copy(src *TestParams) + type TestPlan struct + ApiToken string + Password string + Strict bool + SuiteList [](*TestSuite) + SuiteMap map[string](*TestSuite) + Username string + var Current TestPlan + func GeneratePathTestPlan(swagger *mqswag.Swagger, dag *mqswag.DAG) (*TestPlan, error) + func GenerateSimpleTestPlan(swagger *mqswag.Swagger, dag *mqswag.DAG) (*TestPlan, error) + func GenerateTestPlan(swagger *mqswag.Swagger, dag *mqswag.DAG) (*TestPlan, error) + func (plan *TestPlan) Add(testSuite *TestSuite) error + func (plan *TestPlan) AddFromString(data string) error + func (plan *TestPlan) DumpToFile(path string) error + func (plan *TestPlan) Init(swagger *mqswag.Swagger, db *mqswag.DB) + func (plan *TestPlan) InitFromFile(path string, db *mqswag.DB) error + func (plan *TestPlan) Run(name string, parentTest *Test) error + func (plan *TestPlan) WriteResultToFile(path string) error + type TestSuite struct + ApiToken string + Name string + Password string + Strict bool + Tests []*Test + Username string + func CreateTestSuite(name string, tests []*Test, plan *TestPlan) *TestSuite