pkg

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Copyright 2023-2024 API Testing Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2023 API Testing Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToGRPCTestSuite

func ConvertToGRPCTestSuite(suite *TestSuite) (result *remote.TestSuite)

func ConvertToRemoteTestCase

func ConvertToRemoteTestCase(testcase *TestCase) (result *server.TestCase)

func NewRemoteServer

func NewRemoteServer() (s remote.LoaderServer)

NewRemoteServer creates a remote server instance

func SliceToJSON

func SliceToJSON(slice []string) (result string)

Types

type TestCase

type TestCase struct {
	SuiteName string `json:"suiteName"`
	Name      string `json:"name"`
	API       string
	Method    string
	Body      string
	Header    string
	Cookie    string
	Query     string
	Form      string

	ExpectStatusCode int
	ExpectBody       string
	ExpectSchema     string
	ExpectHeader     string
	ExpectBodyFields string
	ExpectVerify     string
}

func ConverToDBTestCase

func ConverToDBTestCase(testcase *server.TestCase) (result *TestCase)

type TestSuite

type TestSuite struct {
	Name     string
	API      string
	SpecKind string
	SpecURL  string
	Param    string
}

func ConvertToDBTestSuite

func ConvertToDBTestSuite(suite *remote.TestSuite) (result *TestSuite)

Jump to

Keyboard shortcuts

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