Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Runner)
Option configures the Runner.
func WithCookieJar ¶
WithCookieJar sets a cookie jar for cookie persistence across requests.
func WithEnvironment ¶
func WithEnvironment(env *core.Environment) Option
WithEnvironment sets the environment for variable interpolation.
func WithHTTPClient ¶
func WithHTTPClient(client *httpclient.Client) Option
WithHTTPClient sets a custom HTTP client.
func WithProgressCallback ¶
func WithProgressCallback(cb ProgressCallback) Option
WithProgressCallback sets a callback for progress updates.
type ProgressCallback ¶
ProgressCallback is called after each request is executed.
type RunResult ¶
type RunResult struct {
RequestID string
RequestName string
Method string
URL string
Status int
StatusText string
Duration time.Duration
TestResults []script.TestResult
Error error
}
RunResult represents the result of a single request execution.
func (*RunResult) AllTestsPassed ¶
AllTestsPassed returns true if all tests passed.
type RunSummary ¶
type RunSummary struct {
CollectionName string
TotalRequests int
Executed int
Passed int
Failed int
TotalTests int
TestsPassed int
TestsFailed int
TotalDuration time.Duration
Results []RunResult
StartTime time.Time
EndTime time.Time
}
RunSummary represents the summary of a collection run.
func (*RunSummary) AllTestsPassed ¶
func (s *RunSummary) AllTestsPassed() bool
AllTestsPassed returns true if all tests in the run passed.
func (*RunSummary) IsSuccess ¶
func (s *RunSummary) IsSuccess() bool
IsSuccess returns true if all requests passed.
Click to show internal directories.
Click to hide internal directories.