cmd

package
v0.72.0-alpha3 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdArgs map[string]interface{}

Functions

func GetBaseUrlFromConfig

func GetBaseUrlFromConfig() string

func GetDbConfig

func GetDbConfig() map[string]*DbDetails

mysql

func GetMongoDBConfig

func GetMongoDBConfig() map[string]*MongDBDetails

func GetMsDbConfig added in v0.72.0

func GetMsDbConfig() map[string]*DbDetails

mssql

func GetPgDbConfig

func GetPgDbConfig() map[string]*DbDetails

postgresql

func GetRedisConfig

func GetRedisConfig() map[string]*RedisDetails

func GetTimeZoneConfig

func GetTimeZoneConfig() string

func SetTestEnv

func SetTestEnv()

Types

type Config

type Config map[string]*Environment

func GetConfig

func GetConfig() Config

type DbDetails

type DbDetails struct {
	SqlCon   interface{}
	Ip       string
	Port     interface{}
	UserName string
	Password string
	Dbname   string
	Sslmode  string
}

type Environment

type Environment struct {
	BaseUrl    string
	TimeZone   string
	Mysql      map[string]*DbDetails
	MsSql      map[string]*DbDetails
	PostgreSql map[string]*DbDetails
	Redis      map[string]*RedisDetails
	MongoDB    map[string]*MongDBDetails
}

type MongDBDetails

type MongDBDetails struct {
	MongDBCon interface{}
	Ip        string
	Port      interface{}
	UserName  string
	Password  string
}

type Options

type Options struct {
	Testconfig string `json:"testconfig"`
	Testsuite  string `json:"testsuite"`
	Testcase   string `json:"testcase"`
	KeyWord    string `json:"keyWord"`
	StateChart string `json:"stateChart"`

	Testresource string `json:"testresource"`
	Testresults  string `json:"testresults"`
	JsFuncs      string `json:"jsFuncs"`
	TestEnv      string `json:"testEnv"`
	BaseUrl      string `json:"baseUrl"`

	IfFuzzTest   bool `json:"ifFuzzTest"`
	IfMutation   bool `json:"ifMutation"`
	IfTestSuite  bool `json:"ifTestSuite"`
	IfKeyWord    bool `json:"ifKeyWord"`
	IfStateChart bool `json:"ifStateChart"`

	IfConcurrency       bool `json:"ifConcurrency"`
	ConcurrencyLimit    int  `json:"concurrencyLimit"`
	IfShowOriginRequest bool `json:"ifShowOriginRequest"`

	Harfile     string `json:"harfile"`
	Swaggerfile string `json:"swaggerfile"`
	Logfile     string `json:"logfile"`

	TimeZone string `json:"timeZone"`

	IfMySqlDb bool `json:"ifMySqlDb"`
	IfMsSqlDb bool `json:"ifMsSqlDb"`
	IfPgDb    bool `json:"ifPgDb"`
	IfRedis   bool `json:"ifRedis"`
	IfMongoDB bool `json:"ifMongoDB"`
}
var Opt Options

type RedisDetails

type RedisDetails struct {
	RedisCon interface{}
	Ip       string
	Port     interface{}
	UserName string
	Password string
}

Jump to

Keyboard shortcuts

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