testutil

package
v0.0.0-...-d8b5a6a Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreategitProjectsTestCase

func CreategitProjectsTestCase(w http.ResponseWriter, gitProjectsCreateJSON gitProjectsCreateJSON) error

CreategitProjectsTestCase gitProjects testcase

func FileExists

func FileExists(createFile, updateFile string) error

FileExists file check

func GetLenForJSONArray

func GetLenForJSONArray(jsonObj []byte) (int, error)

GetLenForJSONArray json

func MapTestCasegitProjectsUserStoryMap

func MapTestCasegitProjectsUserStoryMap(f *gherkin.Feature, tag string) ([]gitProjectsUserStoryTCNameMapping, error)

MapTestCasegitProjectsUserStoryMap maps

func ReportFileExists

func ReportFileExists(reportOutput string) error

ReportFileExists report check

func UpdategitProjectsTestCase

func UpdategitProjectsTestCase(w http.ResponseWriter, gitProjectsUpdateJSON gitProjectsUpdateJSON) error

UpdategitProjectsTestCase update

func UploadAttachmentsTogitProjectsServer

func UploadAttachmentsTogitProjectsServer() error

UploadAttachmentsTogitProjectsServer upload

func ValidateCreateResponse

func ValidateCreateResponse(respBytes []byte) error

ValidateCreateResponse response validation

func ValidateUpdateResponse

func ValidateUpdateResponse(respBytes []byte) error

ValidateUpdateResponse validate

Types

type CreateUpdateResponse

type CreateUpdateResponse struct {
	TestName     string `json:"testName"`
	UserStory    string `json:"userStory"`
	UpdateResult bool   `json:"updateResult"`
}

CreateUpdateResponse gitProjects need the same

type NEWOutputValidationGATAPIResponse

type NEWOutputValidationGATAPIResponse struct {
	Result   string `json:"result"`
	Failures []struct {
		Field  []string `json:"field"`
		Reason string   `json:"reason"`
	} `json:"failures"`
}

NEWOutputValidationGATAPIResponse gat

type OutputValidationGATAPIResponse

type OutputValidationGATAPIResponse struct {
	Result   bool     `json:"result"`
	Failures []string `json:"failures"`
}

OutputValidationGATAPIResponse output

type Steps1

type Steps1 struct {
	StepIndex          string `json:"stepIndex"`
	StepDescription    string `json:"stepDescription"`
	StepExpectedResult string `json:"stepExpectedResult"`
}

Steps1 steps

type TestCases1

type TestCases1 struct {
	UserStoryID    string   `json:"userStoryID"`
	TestCaseName   string   `json:"testCaseName"`
	TestStatus     string   `json:"testStatus"`
	TestUpdateFlag string   `json:"testUpdateFlag"`
	TestSteps      []Steps1 `json:"testSteps"`
}

TestCases1 testcase

type TestCasesUpdate

type TestCasesUpdate struct {
	UserStoryID  string   `json:"userStoryID"`
	TestCaseName string   `json:"testCaseName"`
	TestStatus   string   `json:"testStatus"`
	Attachments  []string `json:"attachments"`
}

TestCasesUpdate test case updates

Jump to

Keyboard shortcuts

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