withScript
Method
interface K6Resource { // ... omitted for brevity withScript( scriptPath: string, virtualUsers?: number, duration?: string, summaryMode?: K6SummaryMode): K6Resource;}Signature
method
withScript builderRuns a k6 JS script when starting the Grafana k6 container resource.
withScript( scriptPath: string, virtualUsers?: number, duration?: string, summaryMode?: K6SummaryMode): K6ResourceParameters
scriptPath stringThe path to the JS script to run.virtualUsers numberoptionalThe number of virtual users for the test..durationstringoptionalThe duration of the test, e.g. `30s`.summaryMode K6SummaryMode optionalThe summary mode of the test execution.Returns
K6Resource Applies to
This method applies to the following types: