zephyr

package
v1.6.190 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const URL = "https://api.zephyrscale.smartbear.com/v2/automations/executions/junit?"

Variables

This section is empty.

Functions

func CreateFormFile

func CreateFormFile(w *multipart.Writer, fieldName, fileName string, contentType string) (io.Writer, error)

func UploadJunitReport

func UploadJunitReport(token string, projectKey string, reportFilePath string, autoCreateTestCases bool, testCycleInfo *TestCycle) error

Types

type ErrorResponse

type ErrorResponse struct {
	ErrorCode int    `json:"errorCode"`
	Message   string `json:"message"`
}

type ExecutionResponse added in v1.6.178

type ExecutionResponse struct {
	TestCycle struct {
		Id  int    `json:"id"`
		Url string `json:"url"`
		Key string `json:"key"`
	} `json:"testCycle"`
}

type TestCycle

type TestCycle struct {
	Name               string `json:"name"`
	Description        string `json:"description,omitempty"`
	JiraProjectVersion int    `json:"jiraProjectVersion,omitempty"`
	FolderId           int    `json:"folderId,omitempty"`
	CustomFields       string `json:"customFields,omitempty"`
}

type TypedReader

type TypedReader struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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