Documentation ¶
Index ¶
- type ActualConditionData
- type AkamaiConfigs
- type ApiError
- type ApiSubError
- type AssociatedTestCases
- type BrowserInfo
- type BulkResponse
- type CliError
- type ClientProfile
- type Condition
- type ConditionEvaluationResult
- type ConditionExpression
- type ConditionTemplate
- type ConditionType
- type DefaultTestSuiteRequest
- type DynamicVariable
- type FunctionalContext
- type FunctionalTestRun
- type Header
- type ListResponse
- type PlaceHolder
- type PropertyManager
- type PropertyManagerContext
- type PropertyManagerExecution
- type PurgeInfo
- type RawRequestResponse
- type Request
- type RequestHeader
- type Response
- type ResultStats
- type TestCase
- type TestCaseBulkResponse
- type TestCaseExecution
- type TestCaseExecutions
- type TestRequest
- type TestRun
- type TestRunContext
- type TestSuite
- type TestSuiteContext
- type TestSuiteExecutions
- type TestSuiteImportFailure
- type TestSuiteImportResponse
- type TryFunction
- type TryFunctionResponseData
- type Variable
- type VariableBulkResponse
- type VariableGroupValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActualConditionData ¶
type AkamaiConfigs ¶
type AkamaiConfigs struct {
PropertyManager PropertyManager `json:"propertyManager,omitempty"`
}
type ApiError ¶
type ApiError struct { Type string `json:"type"` Title string `json:"title"` Status int `json:"status"` Detail string `json:"detail,omitempty"` Code string `json:"code,omitempty"` Instance string `json:"instance"` Method string `json:"method,omitempty"` ServerIp string `json:"serverIp,omitempty"` ClientIp string `json:"clientIp,omitempty"` RequestId string `json:"requestId,omitempty"` RequestTime string `json:"requestTime,omitempty"` RequestField string `json:"requestField,omitempty"` RequestValues []interface{} `json:"requestValues,omitempty"` Errors []ApiSubError `json:"errors"` }
ApiError object for API error payloads
type ApiSubError ¶
type ApiSubError struct { Type string `json:"type"` Title string `json:"title"` MaxLimit int `json:"maxLimit,omitempty"` RequestField string `json:"requestField,omitempty"` RequestValues []interface{} `json:"requestValues,omitempty"` ExistingEntities []interface{} `json:"existingEntities,omitempty"` RequirementId int `json:"requirementId,omitempty"` ConfigVersionId int `json:"configVersionId,omitempty"` TestSuiteId int `json:"testSuiteId,omitempty"` TestCaseId int `json:"testCaseId,omitempty"` Hostname string `json:"hostname,omitempty"` IpVersion string `json:"ipVersion,omitempty"` RequestObjects []interface{} `json:"requestObjects,omitempty"` Errors []ApiSubError `json:"errors,omitempty"` }
ApiSubError object represents sub-errors of an error payload or error response in 207
type AssociatedTestCases ¶
type BrowserInfo ¶
BrowserInfo object represents a browser with its name and version
type BulkResponse ¶
type BulkResponse struct { Successes []int `json:"successes"` Failures []ApiSubError `json:"failures"` }
type CliError ¶
type CliError struct { ApiError *ApiError ApiSubErrors []ApiSubError ErrorMessage string ResponseCode int }
CliError is used to transmit errors across the app
func CliErrorFromPulsarProblemObject ¶
func CliErrorFromPulsarProblemObject(apiErrorByte []byte, apiSubError []ApiSubError, responseCode int, fallbackMessage string) *CliError
func CliErrorWithMessage ¶
type ClientProfile ¶
type ClientProfile struct { ClientProfileId int `json:"clientProfileId,omitempty"` GeoLocation string `json:"geoLocation,omitempty"` IpVersion string `json:"ipVersion"` Browser BrowserInfo `json:"browser,omitempty"` Client string `json:"client,omitempty"` ClientVersion string `json:"clientVersion,omitempty"` }
ClientProfile object represents a client to be used for making requests
type ConditionEvaluationResult ¶
type ConditionEvaluationResult struct { ActualConditionData []ActualConditionData `json:"actualConditionData,omitempty"` Result string `json:"result,omitempty"` }
type ConditionExpression ¶
type ConditionTemplate ¶
type ConditionTemplate struct {
ConditionTypes []ConditionType `json:"conditionTypes,omitempty"`
}
type ConditionType ¶
type ConditionType struct { ConditionType string `json:"conditionType,omitempty"` Label string `json:"label,omitempty"` ConditionExpressions []ConditionExpression `json:"conditionExpressions,omitempty"` PlaceHolders []PlaceHolder `json:"placeHolders"` }
type DefaultTestSuiteRequest ¶
type DefaultTestSuiteRequest struct { Configs AkamaiConfigs `json:"configs"` TestRequestUrl []string `json:"testRequestUrls"` }
type DynamicVariable ¶
type FunctionalContext ¶
type FunctionalContext struct { TestSuites []TestSuiteContext `json:"testSuites,omitempty"` TestCases []TestCase `json:"testCases,omitempty"` PropertyManagers []PropertyManagerContext `json:"propertyManagers,omitempty"` }
type FunctionalTestRun ¶
type FunctionalTestRun struct { Status string `json:"status,omitempty"` TestSuiteExecutions []TestSuiteExecutions `json:"testSuiteExecutions,omitempty"` PropertyManagerExecution PropertyManagerExecution `json:"propertyManagerExecution,omitempty"` TestCaseExecution TestCaseExecution `json:"testCaseExecution,omitempty"` AllExecutionObjectsIncluded *bool `json:"allExecutionObjectsIncluded,omitempty"` IsReevaluationInProgress *bool `json:"isReevaluationInProgress,omitempty"` NextReevaluationCompletionTime string `json:"nextReevaluationCompletionTime,omitempty"` MaxReevaluationCompletionTime string `json:"maxReevaluationCompletionTime,omitempty"` }
type ListResponse ¶
type ListResponse struct { TestSuites []TestSuite `json:"testSuites,omitempty"` TestRuns []TestRun `json:"testRuns,omitempty"` Conditions []Condition `json:"conditions,omitempty"` TestRequests []TestRequest `json:"testRequests,omitempty"` Variables []Variable `json:"variables,omitempty"` RawRequestResponse []RawRequestResponse `json:"functionalRequestResponse,omitempty"` }
ListResponse We may add list responses for different objects here if needed in future e.g. variables, test-cases
type PlaceHolder ¶
type PlaceHolder struct { PlaceHolder string `json:"placeHolder,omitempty"` ValueInputType string `json:"valueInputType,omitempty"` ValueDataType string `json:"valueDataType,omitempty"` IsCustomValueSupported bool `json:"isCustomValueSupported,omitempty"` ValueSeparator string `json:"valueSeparator,omitempty"` AvailableValues []interface{} `json:"availableValues"` }
type PropertyManager ¶
type PropertyManagerContext ¶
type PropertyManagerContext struct { *PropertyManager TestSuites []TestSuiteContext `json:"testSuites,omitempty"` }
type PropertyManagerExecution ¶
type PropertyManagerExecution struct { PropertyId int `json:"propertyId,omitempty"` PropertyName string `json:"propertyName,omitempty"` PropertyVersion int `json:"propertyVersion"` TestSuiteExecutions []TestSuiteExecutions `json:"testSuiteExecutions,omitempty"` }
type PurgeInfo ¶
type PurgeInfo struct { Status string `json:"status,omitempty"` Errors []ApiSubError `json:"errors,omitempty"` }
type RawRequestResponse ¶
type Request ¶
type Request struct { Method string `json:"method,omitempty"` Url string `json:"url,omitempty"` HttpVersion string `json:"httpVersion,omitempty"` QueryString []interface{} `json:"queryString,omitempty"` HeadersSize int `json:"headersSize,omitempty"` BodySize int `json:"bodySize,omitempty"` Comment string `json:"comment,omitempty"` Cookies []interface{} `json:"cookies,omitempty"` Headers []Header `json:"headers,omitempty"` }
type RequestHeader ¶
type ResultStats ¶
type TestCase ¶
type TestCase struct { TestCaseId int `json:"testCaseId,omitempty"` Order int `json:"order,omitempty"` ParentOrder int `json:"parentOrder,omitempty"` TestRequest TestRequest `json:"testRequest"` ClientProfile ClientProfile `json:"clientProfile,omitempty"` ClientProfileId int `json:"clientProfileId,omitempty"` Condition Condition `json:"condition"` SetVariables []DynamicVariable `json:"setVariables,omitempty"` DerivedTestCases []TestCase `json:"derivedTestCases,omitempty"` Warnings []ApiSubError `json:"warnings,omitempty"` CreatedBy string `json:"createdBy,omitempty"` CreatedDate string `json:"createdDate,omitempty"` ModifiedBy string `json:"modifiedBy,omitempty"` ModifiedDate string `json:"modifiedDate,omitempty"` }
type TestCaseBulkResponse ¶
type TestCaseBulkResponse struct { Successes []TestCase `json:"successes"` Failures []ApiSubError `json:"failures"` }
type TestCaseExecution ¶
type TestCaseExecution struct { TestRequest TestRequest `json:"testRequest"` ClientProfile ClientProfile `json:"clientProfile,omitempty"` Condition Condition `json:"condition"` TestCaseExecutionId int `json:"testCaseExecutionId,omitempty"` Status string `json:"status,omitempty"` ConditionEvaluationResult ConditionEvaluationResult `json:"conditionEvaluationResult,omitempty"` Errors []ApiSubError `json:"errors,omitempty"` SubmittedBy string `json:"submittedBy,omitempty"` SubmittedDate string `json:"submittedDate,omitempty"` CompletedDate string `json:"completedDate,omitempty"` IsReevaluationInProgress *bool `json:"isReevaluationInProgress,omitempty"` }
type TestCaseExecutions ¶
type TestCaseExecutions struct { TestCaseId int `json:"testCaseId"` TestCaseExecutionId int `json:"testCaseExecutionId,omitempty"` Status string `json:"status,omitempty"` ConditionEvaluationResult ConditionEvaluationResult `json:"conditionEvaluationResult,omitempty"` ResolvedSetVariables interface{} `json:"resolvedSetVariables,omitempty"` TestCaseContext TestCase `json:"testCaseContext,omitempty"` DerivedTestCaseExecutions []TestCaseExecutions `json:"derivedTestCaseExecutions,omitempty"` Errors []ApiSubError `json:"errors,omitempty"` SubmittedBy string `json:"submittedBy,omitempty"` SubmittedDate string `json:"submittedDate,omitempty"` CompletedDate string `json:"completedDate,omitempty"` IsReevaluationInProgress *bool `json:"isReevaluationInProgress,omitempty"` }
type TestRequest ¶
type TestRequest struct { TestRequestId int `json:"testRequestId,omitempty"` TestRequestUrl string `json:"testRequestUrl"` TestRequestUrlResolved string `json:"testRequestUrlResolved,omitempty"` RequestMethod string `json:"requestMethod,omitempty"` RequestHeaders []RequestHeader `json:"requestHeaders,omitempty"` Tags []string `json:"tags,omitempty"` RequestBody string `json:"requestBody,omitempty"` RequestBodyResolved string `json:"requestBodyResolved,omitempty"` EncodeRequestBody *bool `json:"encodeRequestBody,omitempty"` }
type TestRun ¶
type TestRun struct { TestRunId int `json:"testRunId,omitempty"` Status string `json:"status,omitempty"` TargetEnvironment string `json:"targetEnvironment"` SendEmailOnCompletion bool `json:"sendEmailOnCompletion,omitempty"` Note string `json:"note,omitempty"` Functional FunctionalTestRun `json:"functional"` SubmittedBy string `json:"submittedBy,omitempty"` SubmittedDate string `json:"submittedDate,omitempty"` CompletedDate string `json:"completedDate,omitempty"` PurgeInfo PurgeInfo `json:"purgeInfo,omitempty"` }
type TestRunContext ¶
type TestRunContext struct { TestRunId int `json:"testRunId"` Functional FunctionalContext `json:"functional"` }
type TestSuite ¶
type TestSuite struct { CreatedBy string `json:"createdBy,omitempty"` CreatedDate string `json:"createdDate,omitempty"` ModifiedBy string `json:"modifiedBy,omitempty"` ModifiedDate string `json:"modifiedDate,omitempty"` DeletedBy string `json:"deletedBy,omitempty"` DeletedDate string `json:"deletedDate,omitempty"` TestSuiteId int `json:"testSuiteId,omitempty"` TestSuiteName string `json:"testSuiteName"` TestSuiteDescription string `json:"testSuiteDescription,omitempty"` IsLocked bool `json:"isLocked"` IsStateful bool `json:"isStateful"` ExecutableTestCaseCount int `json:"executableTestCaseCount"` Configs AkamaiConfigs `json:"configs,omitempty"` TestCases []TestCase `json:"testCases,omitempty"` Variables []Variable `json:"variables,omitempty"` }
type TestSuiteContext ¶
type TestSuiteExecutions ¶
type TestSuiteExecutions struct { TestSuiteId int `json:"testSuiteId"` Status string `json:"status,omitempty"` TestCaseExecutions []TestCaseExecutions `json:"testCaseExecutions"` TestSuiteContext TestSuite `json:"testSuiteContext,omitempty"` TestSuiteExecutionId int `json:"testSuiteExecutionId,omitempty"` SubmittedBy string `json:"submittedBy,omitempty"` SubmittedDate string `json:"submittedDate,omitempty"` CompletedDate string `json:"completedDate,omitempty"` }
type TestSuiteImportFailure ¶
type TestSuiteImportFailure struct { Variables []ApiSubError `json:"variables,omitempty"` TestCases []ApiSubError `json:"testCases,omitempty"` }
type TestSuiteImportResponse ¶
type TestSuiteImportResponse struct { Success TestSuite `json:"success,omitempty"` Failure TestSuiteImportFailure `json:"failure,omitempty"` }
type TryFunction ¶
type TryFunction struct { FunctionExpression string `json:"functionExpression"` Variables []Variable `json:"variables,omitempty"` TryFunctionResponseData TryFunctionResponseData `json:"responseData,omitempty"` Result string `json:"result"` }
type TryFunctionResponseData ¶
type TryFunctionResponseData struct {
Response Response `json:"response,omitempty"`
}
type Variable ¶
type Variable struct { VariableId int `json:"variableId,omitempty"` VariableName string `json:"variableName"` VariableValue string `json:"variableValue,omitempty"` VariableGroupValue []VariableGroupValue `json:"variableGroupValue,omitempty"` IsDynamicallyUsed *bool `json:"isDynamicallyUsed,omitempty"` CreatedBy string `json:"createdBy,omitempty"` CreatedDate string `json:"createdDate,omitempty"` ModifiedBy string `json:"modifiedBy,omitempty"` ModifiedDate string `json:"modifiedDate,omitempty"` }
type VariableBulkResponse ¶
type VariableBulkResponse struct { Successes []Variable `json:"successes"` Failures []ApiSubError `json:"failures"` }
type VariableGroupValue ¶
Click to show internal directories.
Click to hide internal directories.