WithScript
Method
func (K6Resource) WithScript( scriptPath string, options ...*WithScriptOptions,) K6ResourceSignature
method
WithScript builderRuns a k6 JS script when starting the Grafana k6 container resource.
WithScript( scriptPath string, options ...*WithScriptOptions,) K6ResourceParameters
scriptPath stringThe path to the JS script to run.options...*WithScriptOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithScriptOptions argument.
VirtualUsers *float64The number of virtual users for the test..Duration*stringThe duration of the test, e.g. 30s.SummaryMode *K6SummaryMode The summary mode of the test execution.Returns
K6Resource The I.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types: