Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Export ¶
func Export(format string, req ExportRequest) error
Export exports tests to the specified format
func ResolveExportPath ¶
ResolveExportPath converts relative paths to absolute paths under ~/Documents/octrafic/tests/
func SupportedFormats ¶
func SupportedFormats() []string
SupportedFormats returns list of supported export formats
Types ¶
type CurlExporter ¶
type CurlExporter struct{}
func (*CurlExporter) Export ¶
func (e *CurlExporter) Export(req ExportRequest) error
func (*CurlExporter) FileExtension ¶
func (e *CurlExporter) FileExtension() string
type ExportRequest ¶
type ExportRequest struct {
BaseURL string
Tests []TestData
FilePath string
AuthType string
AuthData map[string]string
}
ExportRequest contains all data needed for export
type Exporter ¶
type Exporter interface {
Export(req ExportRequest) error
FileExtension() string
}
Exporter defines the interface for test exporters
type PostmanExporter ¶
type PostmanExporter struct{}
func (*PostmanExporter) Export ¶
func (e *PostmanExporter) Export(req ExportRequest) error
func (*PostmanExporter) FileExtension ¶
func (e *PostmanExporter) FileExtension() string
type PytestExporter ¶
type PytestExporter struct{}
func (*PytestExporter) Export ¶
func (e *PytestExporter) Export(req ExportRequest) error
func (*PytestExporter) FileExtension ¶
func (e *PytestExporter) FileExtension() string
Click to show internal directories.
Click to hide internal directories.