SYMBOL INDEX (849 symbols across 195 files) FILE: .github/workflows/scripts/get-tests-in-package-location.js function scanDirectory (line 46) | function scanDirectory(location, baseLocation, packageName, suffix) { FILE: examples/artillery-engine-example/index.js class ExampleEngine (line 11) | class ExampleEngine { method constructor (line 18) | constructor(script, ee, helpers) { method createScenario (line 36) | createScenario(scenarioSpec, ee) { method step (line 61) | step(rs, ee) { FILE: examples/artillery-plugin-hello-world/index.js function ArtilleryHelloWorldPlugin (line 9) | function ArtilleryHelloWorldPlugin(script, events) { FILE: examples/browser-load-testing-playwright/flows.js function checkOutArtilleryCoreConceptsFlow (line 6) | async function checkOutArtilleryCoreConceptsFlow( function checkPage (line 38) | async function checkPage(page, userContext, events) { function multistepWithCustomMetrics (line 59) | async function multistepWithCustomMetrics(page, _userContext, _events, t... FILE: examples/browser-playwright-reuse-authentication/flow.js function loginUserAndSaveStorage (line 4) | async function loginUserAndSaveStorage(page, context) { function goToProfilePageAndLogout (line 37) | async function goToProfilePageAndLogout(page, context, _events, test) { FILE: examples/browser-playwright-reuse-typescript/performance/processor.ts function playwrightTest (line 3) | async function playwrightTest(page, vuContext, events, test) { FILE: examples/generating-vu-tokens/helpers.js function generateSharedToken (line 6) | function generateSharedToken(context, _events, done) { function generateVUToken (line 11) | function generateVUToken(context, _events, done) { FILE: examples/graphql-api-server/prisma/migrations/20211005051218_init/migration.sql type "User" (line 2) | CREATE TABLE "User" ( type "User" (line 9) | CREATE UNIQUE INDEX "User_username_key" ON "User"("username") type "User" (line 12) | CREATE UNIQUE INDEX "User_email_key" ON "User"("email") FILE: examples/http-set-custom-header/helpers.js function setCustomHeader (line 6) | function setCustomHeader(req, _userContext, _ee, next) { FILE: examples/http-socketio-server/app.js constant PORT (line 7) | const PORT = process.env.PORT || 3000; FILE: examples/http-socketio-server/socketio.js function onEcho (line 9) | function onEcho(m) { function onDisconnect (line 15) | function onDisconnect() { FILE: examples/k8s-testing-with-kubectl-artillery/app.js constant PORT (line 6) | const PORT = process.env.PORT || 3001; FILE: examples/refresh-auth-token/refresh.mjs constant TOKEN_REFRESH_INTERVAL (line 1) | const TOKEN_REFRESH_INTERVAL = 1000 * 5; function refreshTokenIfNeeded (line 3) | async function refreshTokenIfNeeded(_requestParams, vuContext, _events) { function fetchToken (line 14) | async function fetchToken() { FILE: examples/rpc-twirp-with-custom-function/test/processor.mjs function recordMetrics (line 6) | function recordMetrics(startedAt, ee, error) { function callRpcServer (line 21) | async function callRpcServer(_context, ee, _next) { FILE: examples/rpc-twirp-with-custom-function/twirp/protos/haberdasher.pb.js function MakeHat (line 19) | async function MakeHat(size, config) { function MakeHatJSON (line 35) | async function MakeHatJSON(size, config) { function createHaberdasher (line 44) | function createHaberdasher(service) { FILE: examples/rpc-twirp-with-custom-function/twirp/server/haberdasher/index.js function choose (line 3) | function choose(list) { FILE: examples/rpc-twirp-with-custom-function/twirp/server/index.js constant PORT (line 5) | const PORT = 8080; FILE: examples/track-custom-metrics/metrics.js function trackPets (line 3) | function trackPets(_req, res, _context, events, done) { function parseServerTimingLatency (line 18) | function parseServerTimingLatency(header, timingMetricName) { FILE: examples/using-data-from-redis/processor.js function getUser (line 8) | async function getUser(context, _events) { FILE: examples/using-data-from-redis/scripts/seed-redis-with-users.js constant USERS_COUNT (line 7) | const USERS_COUNT = 100; constant BATCH_SIZE (line 8) | const BATCH_SIZE = 5; function generateUser (line 17) | function generateUser() { function storeUsersInRedis (line 24) | async function storeUsersInRedis(users) { function seedUsers (line 35) | async function seedUsers() { FILE: examples/websockets/my-functions.js function createRandomScore (line 3) | function createRandomScore(userContext, _events, done) { FILE: packages/artillery-engine-playwright/index.js class PlaywrightEngine (line 4) | class PlaywrightEngine { method constructor (line 5) | constructor(script) { method createScenario (line 98) | createScenario(spec, events) { FILE: packages/artillery-engine-playwright/test/fargate.aws.js constant TEST_URL (line 6) | const TEST_URL = 'https://www.artillery.io/'; constant A9_PATH (line 18) | const A9_PATH = process.env.A9_PATH || '../artillery/bin/run'; FILE: packages/artillery-engine-playwright/test/fixtures/processor.js function artilleryPlaywrightFunction (line 21) | async function artilleryPlaywrightFunction(page, _vuContext, events, tes... function playwrightFunctionWithFailure (line 39) | async function playwrightFunctionWithFailure(page, _vuContext, events, t... function urlNormalizationTest (line 47) | async function urlNormalizationTest(page, _vuContext, events, test) { FILE: packages/artillery-engine-playwright/test/fixtures/processor.ts function artilleryPlaywrightFunction (line 21) | async function artilleryPlaywrightFunction( function playwrightFunctionWithFailure (line 43) | async function playwrightFunctionWithFailure( FILE: packages/artillery-engine-playwright/test/index.test.js constant TEST_URL (line 5) | const TEST_URL = 'https://www.artillery.io/'; FILE: packages/artillery-engine-posthog/examples/logic.js function generateIds (line 1) | function generateIds(context, _events, done) { FILE: packages/artillery-engine-posthog/index.js class PosthogEngine (line 9) | class PosthogEngine { method constructor (line 10) | constructor(script, ee, helpers) { method customHandler (line 23) | customHandler(rs, ee) { method createScenario (line 84) | createScenario(scenarioSpec, ee) { method step (line 89) | step(rs, ee) { method compile (line 135) | compile(tasks, _scenarioSpec, ee) { FILE: packages/artillery-plugin-apdex/index.js constant METRICS (line 7) | const METRICS = { class ApdexPlugin (line 13) | class ApdexPlugin { method constructor (line 14) | constructor(script, _events) { FILE: packages/artillery-plugin-apdex/test/fixtures/processor.js function myAfterResponseHandler (line 1) | function myAfterResponseHandler(_req, _res, _context, _ee, next) { FILE: packages/artillery-plugin-ensure/index.js class EnsurePlugin (line 14) | class EnsurePlugin { method constructor (line 15) | constructor(script, events) { method statsToVars (line 91) | static statsToVars(data) { method runChecks (line 120) | static runChecks(checks, vars) { FILE: packages/artillery-plugin-ensure/test/fixtures/processor.js function runFibonacci (line 1) | function runFibonacci(_req, _context, ee, next) { FILE: packages/artillery-plugin-ensure/utils.js function replaceMetricsWithHashes (line 10) | function replaceMetricsWithHashes(replacementsArray, targetString) { function getHashedVarToValueMap (line 34) | function getHashedVarToValueMap(varsWithHashes) { FILE: packages/artillery-plugin-expect/index.js constant EXPECTATIONS (line 10) | const EXPECTATIONS = require('./lib/expectations'); constant FORMATTERS (line 11) | const FORMATTERS = require('./lib/formatters'); function ExpectationsPlugin (line 17) | function ExpectationsPlugin(script, events) { function expectationsPluginOnError (line 77) | function expectationsPluginOnError( function expectationsPluginCheckExpectations (line 95) | function expectationsPluginCheckExpectations( function maybeParseBody (line 202) | function maybeParseBody(res) { class FailedExpectationError (line 223) | class FailedExpectationError extends Error { method constructor (line 224) | constructor(message) { FILE: packages/artillery-plugin-expect/lib/expectations.js function expectJmesPath (line 27) | function expectJmesPath(expectation, body, _req, _res, _userContext) { function expectCdnHit (line 50) | function expectCdnHit(expectation, _body, _req, res, _userContext) { function expectEquals (line 88) | function expectEquals(expectation, body, _req, _res, userContext) { function expectHasHeader (line 110) | function expectHasHeader(expectation, _body, _req, res, userContext) { function expectHeaderEquals (line 133) | function expectHeaderEquals(expectation, _body, _req, res, userContext) { function expectContentType (line 162) | function expectContentType(expectation, body, _req, res, userContext) { function expectStatusCode (line 204) | function expectStatusCode(expectation, _body, _req, res, userContext) { function expectNotStatusCode (line 227) | function expectNotStatusCode(expectation, _body, _req, res, userContext) { function checkProperty (line 253) | function checkProperty( function expectHasProperty (line 277) | function expectHasProperty(expectation, body, _req, _res, userContext) { function expectNotHasProperty (line 293) | function expectNotHasProperty(expectation, body, _req, _res, userContext) { function expectMatchesRegexp (line 310) | function expectMatchesRegexp(expectation, body, _req, _res, userContext) { FILE: packages/artillery-plugin-expect/lib/formatters.js function silent (line 16) | function silent(_requestExpectation, _req, _res, _userContext) { function prettyPrint (line 20) | function prettyPrint(requestExpectations, req, res, userContext) { function printExchangeContext (line 52) | function printExchangeContext(req, res, userContext) { function jsonPrint (line 73) | function jsonPrint(requestExpectations, _req, _res, _userContext) { function prettyError (line 77) | function prettyError(requestExpectations, req, res, userContext) { function prepend (line 84) | function prepend(text, str) { FILE: packages/artillery-plugin-fake-data/index.js function ArtilleryPluginFakeData (line 21) | function ArtilleryPluginFakeData(script, events) { FILE: packages/artillery-plugin-memory-inspector/index.js function ArtilleryPluginMemoryInspector (line 27) | function ArtilleryPluginMemoryInspector(script, events) { FILE: packages/artillery-plugin-memory-inspector/test/fixtures/myProcessor.js function myBeforeScenarioHandler (line 1) | function myBeforeScenarioHandler(context, _ee, next) { FILE: packages/artillery-plugin-metrics-by-endpoint/index.js function MetricsByEndpoint (line 17) | function MetricsByEndpoint(script, _events) { function calculateBaseUrl (line 65) | function calculateBaseUrl(target, originalRequestUrl) { function getReqName (line 85) | function getReqName(target, originalRequestUrl, requestName) { function metricsByEndpoint_beforeRequest (line 95) | function metricsByEndpoint_beforeRequest(req, userContext, _events, done) { function metricsByEndpoint_onError (line 103) | function metricsByEndpoint_onError(err, req, userContext, events, done) { function metricsByEndpoint_afterResponse (line 123) | function metricsByEndpoint_afterResponse(req, res, userContext, events, ... function getServerTimingTotal (line 154) | function getServerTimingTotal(s) { FILE: packages/artillery-plugin-publish-metrics/index.js constant REPORTERS_USING_OTEL (line 15) | const REPORTERS_USING_OTEL = [ function Plugin (line 30) | function Plugin(script, events) { FILE: packages/artillery-plugin-publish-metrics/lib/cloudwatch.js constant COUNTERS_STATS (line 13) | const COUNTERS_STATS = 'counters'; constant RATES_STATS (line 14) | const RATES_STATS = 'rates'; constant SUMMARIES_STATS (line 15) | const SUMMARIES_STATS = 'summaries'; constant DEFAULT_UNIT (line 17) | const DEFAULT_UNIT = 'Count'; constant DEFAULT_STATS_ALLOWED (line 19) | const DEFAULT_STATS_ALLOWED = ['p99', 'max', 'min', 'median', 'count']; constant STATS_KEYS (line 21) | const STATS_KEYS = ['p50', 'p75', 'p95', 'p99', 'p999', 'max', 'min', 'm... constant KNOWN_METRICS (line 23) | const KNOWN_METRICS = [ constant KNOWN_UNITS (line 32) | const KNOWN_UNITS = { class CloudWatchReporter (line 45) | class CloudWatchReporter { method constructor (line 46) | constructor(config, events) { method isMetricValid (line 105) | isMetricValid(value) { method addMetric (line 114) | addMetric(name, value, unit = DEFAULT_UNIT) { method putMetric (line 159) | async putMetric() { method waitingForRequest (line 179) | async waitingForRequest() { method cleanup (line 189) | cleanup(done) { function createCloudWatchReporter (line 195) | function createCloudWatchReporter(config, events, script) { FILE: packages/artillery-plugin-publish-metrics/lib/datadog.js function DatadogReporter (line 10) | function DatadogReporter(config, events, script) { function createDatadogReporter (line 247) | function createDatadogReporter(config, events, script) { function sanitize (line 251) | function sanitize(str) { function matchesPattern (line 261) | function matchesPattern(str, filters) { FILE: packages/artillery-plugin-publish-metrics/lib/dynatrace/index.js class DynatraceReporter (line 5) | class DynatraceReporter { method constructor (line 6) | constructor(config, events, script) { method parseDimensions (line 128) | parseDimensions(dimensionList) { method parseProperties (line 142) | parseProperties(propertyList) { method shouldSendMetric (line 156) | shouldSendMetric(metricName, excluded, includeOnly) { method warnIfMetricNameNotValid (line 168) | warnIfMetricNameNotValid(metric) { method formatCountersForDynatrace (line 186) | formatCountersForDynatrace(counters, config, timestamp) { method formatRatesForDynatrace (line 207) | formatRatesForDynatrace(rates, config, timestamp) { method formatSummariesForDynatrace (line 225) | formatSummariesForDynatrace(summaries, config, timestamp) { method formMetricsPayload (line 248) | formMetricsPayload(counters, rates, summaries) { method formRequest (line 253) | formRequest(payload, type = 'metrics') { method sendRequest (line 265) | async sendRequest(url, options, type = 'metrics') { method waitingForRequest (line 293) | async waitingForRequest() { method cleanup (line 303) | cleanup(done) { function createDynatraceReporter (line 325) | function createDynatraceReporter(config, events, script) { FILE: packages/artillery-plugin-publish-metrics/lib/mixpanel.js class MixPanelReporter (line 5) | class MixPanelReporter { method constructor (line 6) | constructor(config, events, script) { method sendToMixPanel (line 29) | sendToMixPanel(_config, events, script) { method formatProperties (line 43) | formatProperties(stats) { method cleanup (line 70) | cleanup(done) { function createMixPanelReporter (line 76) | function createMixPanelReporter(config, events, script) { FILE: packages/artillery-plugin-publish-metrics/lib/newrelic/index.js class NewRelicReporter (line 4) | class NewRelicReporter { method constructor (line 5) | constructor(config, events, script) { method formatCountersForNewRelic (line 108) | formatCountersForNewRelic(counters, config) { method formatRatesForNewRelic (line 127) | formatRatesForNewRelic(rates, config) { method formatSummariesForNewRelic (line 146) | formatSummariesForNewRelic(summaries, config) { method parseAttributes (line 166) | parseAttributes(attributeList) { method createRequestBody (line 178) | createRequestBody(timestamp, interval, attributeList, metrics) { method sendStats (line 193) | async sendStats(url, licenseKey, body) { method shouldSendMetric (line 226) | shouldSendMetric(metricName, excluded, includeOnly) { method sendEvent (line 238) | async sendEvent(url, licenseKey, eventOptions) { method waitingForRequest (line 272) | async waitingForRequest() { method cleanup (line 282) | cleanup(done) { function createNewRelicReporter (line 304) | function createNewRelicReporter(config, events, script) { FILE: packages/artillery-plugin-publish-metrics/lib/open-telemetry/exporters.js method 'otlp-proto' (line 2) | 'otlp-proto'(options) { method 'otlp-http' (line 8) | 'otlp-http'(options) { method 'otlp-grpc' (line 14) | 'otlp-grpc'(options) { method 'otlp-proto' (line 23) | 'otlp-proto'(options) { method 'otlp-http' (line 29) | 'otlp-http'(options) { method 'otlp-grpc' (line 35) | 'otlp-grpc'(options) { method zipkin (line 41) | zipkin(options) { method __test (line 45) | __test(options) { function validateExporter (line 51) | function validateExporter(supportedExporters, exporter, type) { FILE: packages/artillery-plugin-publish-metrics/lib/open-telemetry/file-span-exporter.js class FileSpanExporter (line 7) | class FileSpanExporter extends ConsoleSpanExporter { method constructor (line 8) | constructor(opts) { method _exportInfo (line 22) | _exportInfo(span) { method _sendSpans (line 28) | _sendSpans(spans, done) { method shutdown (line 42) | shutdown() { method setOutputPath (line 60) | setOutputPath(output) { FILE: packages/artillery-plugin-publish-metrics/lib/open-telemetry/index.js class OTelReporter (line 27) | class OTelReporter { method constructor (line 28) | constructor(configList, events, script) { method debug (line 140) | debug(msg) { method warnIfDuplicateTracesConfigured (line 148) | warnIfDuplicateTracesConfigured(configList) { method translateToOtel (line 156) | translateToOtel(config) { method getEngines (line 160) | getEngines(scenarios) { method sendTraceTelemetry (line 168) | async sendTraceTelemetry(spanCount, reporterType) { method cleanup (line 203) | async cleanup(done) { function createOTelReporter (line 231) | function createOTelReporter(config, events, script) { FILE: packages/artillery-plugin-publish-metrics/lib/open-telemetry/metrics.js class OTelMetricsReporter (line 11) | class OTelMetricsReporter { method constructor (line 12) | constructor(config, events, resource) { method configure (line 44) | configure(config) { method shouldSendMetric (line 100) | shouldSendMetric(metricName, excluded, includeOnly) { method recordCounters (line 110) | recordCounters(counters, config) { method recordRates (line 123) | recordRates(rates, config) { method recordSummaries (line 139) | recordSummaries(summaries, config) { method cleanup (line 162) | async cleanup() { FILE: packages/artillery-plugin-publish-metrics/lib/open-telemetry/outlier-detection-processor.js class OutlierDetectionBatchSpanProcessor (line 3) | class OutlierDetectionBatchSpanProcessor extends BatchSpanProcessor { method constructor (line 4) | constructor(exporter, config) { method onEnd (line 9) | onEnd(span) { method onShutdown (line 41) | onShutdown() { method _isOutlier (line 53) | _isOutlier(span) { FILE: packages/artillery-plugin-publish-metrics/lib/open-telemetry/tracing/base.js class OTelTraceConfig (line 16) | class OTelTraceConfig { method constructor (line 17) | constructor(config, resource) { method configure (line 26) | configure() { method shutDown (line 79) | async shutDown() { class OTelTraceBase (line 90) | class OTelTraceBase { method constructor (line 91) | constructor(config, script) { method setTracer (line 101) | setTracer(engine) { method startScenarioSpan (line 109) | startScenarioSpan(engine) { method endScenarioSpan (line 144) | endScenarioSpan(engine) { method otelTraceOnError (line 161) | otelTraceOnError(_scenarioErr, _req, _userContext, _ee, done) { method replaceSpanNameRegex (line 165) | replaceSpanNameRegex(spanName, replMap) { method waitOnPendingSpans (line 174) | async waitOnPendingSpans(pendingRequests, pendingScenarios, maxWaitTim... method cleanup (line 187) | async cleanup(engines) { FILE: packages/artillery-plugin-publish-metrics/lib/open-telemetry/tracing/http.js class OTelHTTPTraceReporter (line 19) | class OTelHTTPTraceReporter extends OTelTraceBase { method constructor (line 20) | constructor(config, script) { method run (line 25) | run() { method startHTTPRequestSpan (line 56) | startHTTPRequestSpan(req, userContext, _events, done) { method endHTTPRequestSpan (line 107) | endHTTPRequestSpan(req, res, userContext, events, done) { method otelTraceOnError (line 180) | otelTraceOnError(err, req, userContext, events, done) { method tagResponseOutliers (line 225) | tagResponseOutliers(span, res, criteria) { FILE: packages/artillery-plugin-publish-metrics/lib/open-telemetry/tracing/playwright.js class OTelPlaywrightTraceReporter (line 11) | class OTelPlaywrightTraceReporter extends OTelTraceBase { method run (line 12) | run() { method runOtelTracingForPlaywright (line 24) | async runOtelTracingForPlaywright( method step (line 186) | async step(parent, tracer, events, vuContext) { FILE: packages/artillery-plugin-publish-metrics/lib/open-telemetry/translators/vendor-adot.js function getADOTRelevantReporterConfigs (line 6) | function getADOTRelevantReporterConfigs(publishMetricsConfig) { function resolveADOTConfigSettings (line 20) | function resolveADOTConfigSettings(options) { function getADOTConfig (line 32) | function getADOTConfig(adotRelevantConfigs) { function getADOTEnvVars (line 127) | function getADOTEnvVars(adotRelevantconfigs, dotenv) { FILE: packages/artillery-plugin-publish-metrics/lib/open-telemetry/translators/vendor-otel.js function attributeListToObject (line 101) | function attributeListToObject(attributeList, reporterType) { FILE: packages/artillery-plugin-publish-metrics/lib/prometheus.js constant COUNTERS_STATS (line 9) | const COUNTERS_STATS = 'counters', // counters stats constant RATES_STATS (line 9) | const COUNTERS_STATS = 'counters', // counters stats constant SUMMARIES_STATS (line 9) | const COUNTERS_STATS = 'counters', // counters stats class PrometheusReporter (line 13) | class PrometheusReporter { method constructor (line 14) | constructor(config, events) { method registerMetrics (line 68) | registerMetrics(prefix) { method tagsToLabels (line 96) | tagsToLabels(tags) { method toPrometheusKey (line 105) | toPrometheusKey(candidate) { method sendMetrics (line 109) | sendMetrics(_config, events) { method waitingForRequest (line 162) | async waitingForRequest() { method cleanup (line 172) | cleanup(done) { function createPrometheusReporter (line 178) | function createPrometheusReporter(config, events, script) { function isHttps (line 182) | function isHttps(href) { FILE: packages/artillery-plugin-publish-metrics/lib/splunk/index.js class SplunkReporter (line 4) | class SplunkReporter { method constructor (line 5) | constructor(config, events, script) { method formatCountersForSplunk (line 90) | formatCountersForSplunk(counters, config, timestamp) { method formatRatesForSplunk (line 111) | formatRatesForSplunk(rates, config, timestamp) { method formatSummariesForSplunk (line 131) | formatSummariesForSplunk(summaries, config, timestamp) { method parseDimensions (line 153) | parseDimensions(dimensionList) { method formRequest (line 168) | formRequest(payload) { method sendRequest (line 179) | async sendRequest(url, payload, type) { method shouldSendMetric (line 201) | shouldSendMetric(metricName, excluded, includeOnly) { method waitingForRequest (line 213) | async waitingForRequest() { method cleanup (line 223) | cleanup(done) { function createSplunkReporter (line 237) | function createSplunkReporter(config, events, script) { FILE: packages/artillery-plugin-publish-metrics/lib/util.js function sleep (line 9) | async function sleep(n) { function versionCheck (line 18) | function versionCheck(range) { function attachScenarioHooks (line 26) | function attachScenarioHooks(script, specs) { function addHelperFunction (line 47) | function addHelperFunction(script, name, func) { FILE: packages/artillery-plugin-slack/index.js class SlackPlugin (line 4) | class SlackPlugin { method constructor (line 5) | constructor(script, events) { method getErrors (line 101) | getErrors(report) { method assembleSlackPayload (line 111) | assembleSlackPayload(report, ensureChecks) { method sendReport (line 245) | async sendReport(report, ensureChecks) { method cleanup (line 263) | async cleanup(done) { class SlackPluginError (line 269) | class SlackPluginError extends Error { method constructor (line 270) | constructor(message) { function formatDuration (line 277) | function formatDuration(durationInMs) { function maybePluralize (line 304) | function maybePluralize(amount, singular, plural = `${singular}s`) { FILE: packages/artillery/lib/artillery-global.js function createGlobalObject (line 6) | async function createGlobalObject(_opts) { FILE: packages/artillery/lib/cli/hooks/version.js function versionHook (line 4) | async function versionHook() { FILE: packages/artillery/lib/cmds/dino.js class DinoCommand (line 8) | class DinoCommand extends Command { method run (line 9) | async run() { FILE: packages/artillery/lib/cmds/quick.js class QuickCommand (line 15) | class QuickCommand extends Command { method run (line 16) | async run() { FILE: packages/artillery/lib/cmds/report.js class ReportCommand (line 5) | class ReportCommand extends Command { method run (line 6) | async run() { FILE: packages/artillery/lib/cmds/run-aci.js class RunACICommand (line 11) | class RunACICommand extends Command { method run (line 15) | async run() { FILE: packages/artillery/lib/cmds/run-fargate.js class RunCommand (line 18) | class RunCommand extends Command { method run (line 23) | async run() { FILE: packages/artillery/lib/cmds/run-lambda.js class RunLambdaCommand (line 6) | class RunLambdaCommand extends Command { method run (line 10) | async run() { FILE: packages/artillery/lib/cmds/run.js class RunCommand (line 29) | class RunCommand extends Command { method run (line 34) | async run() { function gracefulShutdown (line 373) | async function gracefulShutdown(opts = { exitCode: 0 }) { function sendTelemetry (line 452) | async function sendTelemetry(script, flags, extraProps) { function checkDirExists (line 619) | function checkDirExists(output) { function getLogFilename (line 631) | function getLogFilename(output, nameFormat) { function getPluginMetricsToSuppress (line 658) | function getPluginMetricsToSuppress(script) { FILE: packages/artillery/lib/console-capture.js function setupConsoleCapture (line 3) | function setupConsoleCapture() { FILE: packages/artillery/lib/console-reporter.js constant SSMS (line 13) | const SSMS = require('@artilleryio/int-core').ssms.SSMS; function createConsoleReporter (line 17) | function createConsoleReporter(events, opts) { function ConsoleReporter (line 27) | function ConsoleReporter(opts) { function isCollectionMetric (line 337) | function isCollectionMetric(n) { function formatTimestamp (line 373) | function formatTimestamp(timestamp) { function underline (line 377) | function underline(text) { function excludeFromReporting (line 381) | function excludeFromReporting(name) { function padded (line 389) | function padded(str1, str2) { function printRates (line 402) | function printRates(rates, report) { function printCounters (line 408) | function printCounters(counters, report) { function printSummaries (line 415) | function printSummaries(summaries, report) { function shouldSuppressOutput (line 433) | function shouldSuppressOutput(currMetricName, suppressMetricsList) { FILE: packages/artillery/lib/create-bom/create-bom.js constant BUILTIN_PLUGINS (line 17) | const BUILTIN_PLUGINS = require('./built-in-plugins'); function createBOM (line 20) | async function createBOM(absoluteScriptPath, extraFiles, opts, callback) { function getPlugins (line 138) | function getPlugins(context, next) { function getCustomEngines (line 163) | function getCustomEngines(context, next) { function getVariableDataFiles (line 174) | function getVariableDataFiles(context, next) { function getExtraFiles (line 224) | function getExtraFiles(context, next) { function commonPrefix (line 243) | function commonPrefix(paths, separator) { function prettyPrint (line 285) | function prettyPrint(manifest) { FILE: packages/artillery/lib/dist.js function divideWork (line 23) | function divideWork(script, numWorkers) { function scriptHasPayload (line 92) | function scriptHasPayload(script) { function handleArrivalCountPhase (line 96) | function handleArrivalCountPhase(workerScripts, phase, numWorkers) { function handleArrivalRatePhase (line 107) | function handleArrivalRatePhase(phase, numWorkers, workerScripts) { function handleRampToPhase (line 126) | function handleRampToPhase(phase, numWorkers, workerScripts) { function createWorkerScriptBases (line 147) | function createWorkerScriptBases(numWorkers, script) { function distribute (line 174) | function distribute(m, n) { function sum (line 199) | function sum(a) { FILE: packages/artillery/lib/launch-platform.js function createLauncher (line 18) | async function createLauncher(script, payload, opts, launcherOpts) { class Launcher (line 33) | class Launcher { method constructor (line 34) | constructor(script, payload, opts, launcherOpts) { method initWorkerEvents (line 70) | async initWorkerEvents(workerEvents) { method initPlugins (line 163) | async initPlugins() { method handleAllWorkersFinished (line 234) | async handleAllWorkersFinished() { method flushWorkerMessages (line 270) | async flushWorkerMessages(maxAge = 9000) { method flushIntermediateMetrics (line 306) | async flushIntermediateMetrics(flushAll = false) { method emitIntermediatesForPeriod (line 368) | emitIntermediatesForPeriod(period) { method run (line 397) | async run() { method shutdown (line 417) | async shutdown() { FILE: packages/artillery/lib/load-plugins.js function loadPluginsConfig (line 11) | function loadPluginsConfig(pluginSpecs) { function loadPlugins (line 25) | async function loadPlugins(pluginSpecs, testScript) { function loadPlugin (line 47) | async function loadPlugin(name, config, requirePaths, testScript) { FILE: packages/artillery/lib/platform/aws-ecs/ecs.js class PlatformECS (line 27) | class PlatformECS { method constructor (line 28) | constructor(_script, _payload, opts, platformOpts) { method init (line 57) | async init() { method createIAMResources (line 77) | async createIAMResources(accountId, taskRoleName) { method createWorkerRole (line 85) | async createWorkerRole(accountId, taskRoleName) { method createWorker (line 191) | async createWorker() {} method prepareWorker (line 193) | async prepareWorker() {} method runWorker (line 195) | async runWorker() {} method stopWorker (line 197) | async stopWorker() {} method shutdown (line 199) | async shutdown() {} function ensureSSMParametersExist (line 202) | async function ensureSSMParametersExist(region) { FILE: packages/artillery/lib/platform/aws-ecs/legacy/aws-util.js function ecsDescribeTasks (line 23) | async function ecsDescribeTasks(params, region) { function splitIntoSublists (line 37) | function splitIntoSublists(list, maxGroupSize) { function ensureParameterExists (line 53) | async function ensureParameterExists(ssmPath, defaultValue, type, region) { function parameterExists (line 61) | async function parameterExists(path, region) { function putParameter (line 80) | async function putParameter(path, value, type, region) { function getParameter (line 93) | async function getParameter(path, region) { function deleteParameter (line 115) | async function deleteParameter(path, region) { FILE: packages/artillery/lib/platform/aws-ecs/legacy/bom.js constant BUILTIN_PLUGINS (line 12) | const BUILTIN_PLUGINS = require('./plugins').getAllPluginNames(); constant BUILTIN_ENGINES (line 13) | const BUILTIN_ENGINES = require('./plugins').getOfficialEngines(); function _convertToPosixPath (line 26) | function _convertToPosixPath(p) { function createBOM (line 31) | function createBOM(absoluteScriptPath, extraFiles, opts, callback) { function isLocalModule (line 176) | function isLocalModule(modName) { function applyScriptChanges (line 181) | function applyScriptChanges(context, next) { function getPlugins (line 193) | function getPlugins(context, next) { function getCustomEngines (line 217) | function getCustomEngines(context, next) { function getCustomJsDependencies (line 242) | function getCustomJsDependencies(context, next) { function getVariableDataFiles (line 315) | function getVariableDataFiles(context, next) { function getFileUploadPluginFiles (line 359) | function getFileUploadPluginFiles(context, next) { function getExtraFiles (line 383) | function getExtraFiles(context, next) { function getDotEnv (line 403) | function getDotEnv(context, next) { function expandDirectories (line 421) | function expandDirectories(context, next) { function commonPrefix (line 462) | function commonPrefix(paths, separator) { function prettyPrint (line 504) | function prettyPrint(manifest) { FILE: packages/artillery/lib/platform/aws-ecs/legacy/constants.js constant DEFAULT_IMAGE_TAG (line 2) | const DEFAULT_IMAGE_TAG = pkgJson.version; constant WAIT_TIMEOUT_SEC (line 5) | let WAIT_TIMEOUT_SEC = 600; FILE: packages/artillery/lib/platform/aws-ecs/legacy/create-s3-client.js function createS3Client (line 5) | function createS3Client(opts = {}) { FILE: packages/artillery/lib/platform/aws-ecs/legacy/create-test.js function tryCreateTest (line 17) | function tryCreateTest(scriptPath, options) { function createTest (line 21) | async function createTest(scriptPath, options, callback) { function prepareManifest (line 86) | function prepareManifest(context, callback) { function printManifest (line 112) | function printManifest(context, callback) { function syncS3 (line 117) | async function syncS3(context) { function writeTestMetadata (line 199) | async function writeTestMetadata(context) { FILE: packages/artillery/lib/platform/aws-ecs/legacy/errors.js class TestNotFoundError (line 1) | class TestNotFoundError extends Error { method constructor (line 2) | constructor(message) { class NoAvailableQueueError (line 8) | class NoAvailableQueueError extends Error { method constructor (line 9) | constructor(message) { class ClientServerVersionMismatchError (line 15) | class ClientServerVersionMismatchError extends Error { method constructor (line 16) | constructor(message) { class ConsoleOutputSerializeError (line 22) | class ConsoleOutputSerializeError extends Error { method constructor (line 23) | constructor(message) { FILE: packages/artillery/lib/platform/aws-ecs/legacy/find-public-subnets.js class VPCSubnetFinder (line 9) | class VPCSubnetFinder { method constructor (line 10) | constructor(opts) { method getRouteTables (line 14) | async getRouteTables(vpcId) { method findDefaultVpc (line 29) | async findDefaultVpc() { method getSubnets (line 50) | async getSubnets(vpcId) { method isSubnetPublic (line 65) | isSubnetPublic(routeTables, subnetId) { method findPublicSubnets (line 119) | async findPublicSubnets(vpcId) { function main (line 134) | async function main() { FILE: packages/artillery/lib/platform/aws-ecs/legacy/plugins/artillery-plugin-inspect-script/index.js function ArtilleryInspectScriptPlugin (line 11) | function ArtilleryInspectScriptPlugin(script, events) { FILE: packages/artillery/lib/platform/aws-ecs/legacy/plugins/artillery-plugin-sqs-reporter/azure-aqs.js function getAQS (line 11) | function getAQS() { constant AQS_SIZE_LIMIT (line 20) | const AQS_SIZE_LIMIT = 60 * 1024; function getBlobClient (line 24) | function getBlobClient() { function sendMessage (line 42) | async function sendMessage(queue, body, tags) { FILE: packages/artillery/lib/platform/aws-ecs/legacy/plugins/artillery-plugin-sqs-reporter/index.js constant SQS_SIZE_LIMIT (line 12) | const SQS_SIZE_LIMIT = 950 * 1024; function ArtillerySQSPlugin (line 19) | function ArtillerySQSPlugin(script, events) { FILE: packages/artillery/lib/platform/aws-ecs/legacy/run-cluster.js constant IS_FARGATE (line 89) | let IS_FARGATE = false; constant TEST_RUN_STATUS (line 91) | const TEST_RUN_STATUS = require('./test-run-status'); function setupConsoleReporter (line 96) | function setupConsoleReporter(quiet) { function runCluster (line 135) | function runCluster(scriptPath, options) { function logProgress (line 146) | function logProgress(msg, opts = {}) { function tryRunCluster (line 161) | async function tryRunCluster(scriptPath, options, artilleryReporter) { function cleanupResources (line 817) | async function cleanupResources(context) { function checkFargateResourceConfig (line 864) | function checkFargateResourceConfig(cpu, memory) { function createArtilleryCluster (line 904) | async function createArtilleryCluster(context) { function checkTargetCluster (line 930) | async function checkTargetCluster(context) { function maybeGetSubnetIdsForFargate (line 955) | async function maybeGetSubnetIdsForFargate(context) { function createTestBundle (line 982) | async function createTestBundle(context) { function createADOTDefinitionIfNeeded (line 995) | async function createADOTDefinitionIfNeeded(context) { function ensureTaskExists (line 1057) | async function ensureTaskExists(context) { function checkCustomTaskRole (line 1227) | async function checkCustomTaskRole(context) { function gcQueues (line 1241) | async function gcQueues(context) { function deleteQueue (line 1283) | async function deleteQueue(context) { function createQueue (line 1300) | async function createQueue(context) { function getManifest (line 1349) | async function getManifest(context) { function generateTaskOverrides (line 1375) | async function generateTaskOverrides(context) { function setupDefaultECSParams (line 1506) | async function setupDefaultECSParams(context) { function launchLeadTask (line 1547) | async function launchLeadTask(context) { function ecsRunTask (line 1626) | async function ecsRunTask(context) { function waitForTasks2 (line 1702) | async function waitForTasks2(context) { function waitForWorkerSync (line 1794) | async function waitForWorkerSync(context) { function sendGoSignal (line 1828) | async function sendGoSignal(context) { function writeHeartbeat (line 1839) | async function writeHeartbeat(context) { function startHeartbeat (line 1855) | function startHeartbeat(context) { function listen (line 1863) | async function listen(context, ee) { function deregisterTaskDefinition (line 1975) | async function deregisterTaskDefinition(context) { function getLogFilename (line 2000) | function getLogFilename(output, userDefaultFilenameFormat) { FILE: packages/artillery/lib/platform/aws-ecs/legacy/sqs-reporter.js class SqsReporter (line 11) | class SqsReporter extends EventEmitter { method constructor (line 12) | constructor(opts) { method _allWorkersDone (line 51) | _allWorkersDone() { method _fetchFromS3 (line 55) | async _fetchFromS3(s3Key) { method stop (line 65) | stop() { method start (line 72) | start() { method calculateSpread (line 380) | calculateSpread(stats) { function round (line 396) | function round(number, decimals) { FILE: packages/artillery/lib/platform/aws-ecs/legacy/tags.js function parseTags (line 3) | function parseTags(input) { FILE: packages/artillery/lib/platform/aws-ecs/legacy/time.js function sleep (line 6) | async function sleep(ms) { class Timeout (line 10) | class Timeout extends EventEmitter { method constructor (line 11) | constructor(duration) { method start (line 17) | start() { method stop (line 25) | stop() { method timedout (line 30) | timedout() { function timeStringToMs (line 37) | function timeStringToMs(timeStr) { FILE: packages/artillery/lib/platform/aws-ecs/legacy/util.js function atob (line 44) | function atob(data) { function btoa (line 47) | function btoa(data) { function getBucketName (line 51) | async function getBucketName() { function formatError (line 62) | function formatError(err) { function listAllObjectsWithPrefix (line 68) | async function listAllObjectsWithPrefix(bucketName, prefix) { FILE: packages/artillery/lib/platform/aws-lambda/dependencies.js function _uploadFileToS3 (line 33) | async function _uploadFileToS3(item, testRunId, bucketName) { function _syncS3 (line 61) | async function _syncS3(bomManifest, testRunId, bucketName) { FILE: packages/artillery/lib/platform/aws-lambda/index.js function memoryToVCPU (line 54) | function memoryToVCPU(memMB) { class PlatformLambda (line 78) | class PlatformLambda { method constructor (line 79) | constructor(script, payload, opts, platformOpts) { method init (line 134) | async init() { method getDesiredWorkerCount (line 394) | getDesiredWorkerCount() { method startJob (line 398) | async startJob() { method createWorker (line 408) | async createWorker() { method runWorker (line 414) | async runWorker(workerId) { method stopWorker (line 489) | async stopWorker(_workerId) { method shutdown (line 493) | async shutdown() { method createLambdaRole (line 523) | async createLambdaRole() { method createOrUpdateLambdaFunctionIfNeeded (line 611) | async createOrUpdateLambdaFunctionIfNeeded() { method getLambdaFunctionConfiguration (line 639) | async getLambdaFunctionConfiguration() { method createFunctionNameWithHash (line 662) | createFunctionNameWithHash(_lambdaConfig) { method createLambda (line 687) | async createLambda(opts) { FILE: packages/artillery/lib/platform/aws-lambda/lambda-handler/a9-handler-helpers.js function runProcess (line 9) | async function runProcess(name, args, { env, log }) { FILE: packages/artillery/lib/platform/aws-lambda/lambda-handler/a9-handler-index.js constant TIMEOUT_THRESHOLD_MSEC (line 15) | const TIMEOUT_THRESHOLD_MSEC = 20 * 1000; class MQ (line 17) | class MQ { method constructor (line 18) | constructor({ region, queueUrl, attrs }) { method send (line 24) | async send(body) { function handler (line 45) | async function handler(event, context) { function execArtillery (line 180) | async function execArtillery(options) { FILE: packages/artillery/lib/platform/aws/aws-cloudwatch.js function _putCloudwatchRetentionPolicy (line 12) | async function _putCloudwatchRetentionPolicy( function setCloudwatchRetention (line 31) | function setCloudwatchRetention( FILE: packages/artillery/lib/platform/aws/aws-create-sqs-queue.js function createSQSQueue (line 10) | async function createSQSQueue(region, queueName) { FILE: packages/artillery/lib/platform/aws/aws-get-bucket-region.js function getBucketRegion (line 3) | async function getBucketRegion(bucketName) { FILE: packages/artillery/lib/platform/aws/aws-get-credentials.js function getSSOCredentials (line 14) | async function getSSOCredentials() { FILE: packages/artillery/lib/platform/az/aci.js function streamToString (line 28) | async function streamToString(readableStream) { class PlatformAzureACI (line 41) | class PlatformAzureACI { method constructor (line 42) | constructor(script, variablePayload, opts, platformOpts) { method init (line 117) | async init() { method getDesiredWorkerCount (line 365) | getDesiredWorkerCount() { method startJob (line 369) | async startJob() { method shutdown (line 457) | async shutdown() { method sendGoSignal (line 491) | async sendGoSignal() { method createWorker (line 497) | async createWorker() { method runWorker (line 502) | async runWorker(workerId, opts = { isLeader: false }) { method stopWorker (line 653) | async stopWorker(_workerId) {} method checkLicense (line 655) | async checkLicense() { FILE: packages/artillery/lib/platform/az/aqs-queue-consumer.js class AzureQueueConsumer (line 14) | class AzureQueueConsumer extends EventEmitter { method constructor (line 15) | constructor( method start (line 37) | async start() { method stop (line 79) | async stop() { FILE: packages/artillery/lib/platform/cloud/api.js class Client (line 3) | class Client { method constructor (line 4) | constructor({ apiKey, baseUrl }) { method whoami (line 26) | async whoami() { method getStashDetails (line 37) | async getStashDetails({ orgId }) { function createClient (line 68) | function createClient(opts) { FILE: packages/artillery/lib/platform/cloud/cloud.js class ArtilleryCloudPlugin (line 17) | class ArtilleryCloudPlugin { method constructor (line 18) | constructor(_script, _events, { flags }) { method init (line 213) | async init() { method _uploadAsset (line 303) | async _uploadAsset(localFilename) { method waitOnUnprocessedLogs (line 350) | async waitOnUnprocessedLogs(maxWaitTime) { method setGetStatusInterval (line 364) | setGetStatusInterval() { method _getLoadTestStatus (line 391) | async _getLoadTestStatus() { method _event (line 405) | async _event(eventName, eventPayload) { method cleanup (line 444) | cleanup(done) { FILE: packages/artillery/lib/platform/cloud/http-client.js constant DEFAULT_TIMEOUT_MS (line 5) | const DEFAULT_TIMEOUT_MS = 20 * 10000; constant DEFAULT_RETRY_LIMIT (line 6) | const DEFAULT_RETRY_LIMIT = 3; function getCloudHttpClient (line 9) | async function getCloudHttpClient() { FILE: packages/artillery/lib/platform/local/artillery-worker-local.js constant STATES (line 9) | const STATES = require('../worker-states'); class ArtilleryWorker (line 25) | class ArtilleryWorker { method constructor (line 26) | constructor(opts) { method init (line 32) | async init(_opts) { method prepare (line 102) | async prepare(opts) { method run (line 130) | async run(opts) { method stop (line 140) | async stop() { method onError (line 144) | onError(err) { FILE: packages/artillery/lib/platform/local/index.js constant STATES (line 9) | const STATES = require('../worker-states'); class PlatformLocal (line 11) | class PlatformLocal { method constructor (line 12) | constructor(script, payload, opts, platformOpts) { method getDesiredWorkerCount (line 24) | getDesiredWorkerCount() { method startJob (line 28) | async startJob() { method init (line 76) | async init() { method createWorker (line 83) | async createWorker() { method prepareWorker (line 125) | async prepareWorker(workerId, opts) { method runWorker (line 129) | async runWorker(workerId, contextVarsString) { method stopWorker (line 135) | async stopWorker(workerId) { method shutdown (line 139) | async shutdown() { method runHook (line 151) | async runHook(hook, initialContextVars) { FILE: packages/artillery/lib/platform/local/worker.js function onMessage (line 49) | async function onMessage(message) { function cleanup (line 85) | async function cleanup() { function createGlobalStashClient (line 102) | async function createGlobalStashClient(cliArgs) { function prepare (line 115) | async function prepare(opts) { function run (line 247) | async function run(opts) { function send (line 257) | function send(data) { FILE: packages/artillery/lib/queue-consumer/index.js class QueueConsumer (line 5) | class QueueConsumer extends EventEmitter { method create (line 6) | create(opts = { poolSize: 30 }, queueConsumerOpts) { method constructor (line 39) | constructor(_opts) { method start (line 43) | start() { method stop (line 49) | stop() { FILE: packages/artillery/lib/stash.js function init (line 4) | async function init(details) { function getStash (line 20) | async function getStash(options = {}) { FILE: packages/artillery/lib/telemetry.js constant POSTHOG_TOKEN (line 11) | const POSTHOG_TOKEN = '_uzX-_WJoVmE_tsLvu0OFD2tpd0HGz72D5sU1zM2hbs'; function capture (line 23) | async function capture(eventName, data) { FILE: packages/artillery/lib/util.js constant YAML (line 5) | const YAML = require('js-yaml'); function readScript (line 35) | async function readScript(scriptPath) { function parseScript (line 40) | async function parseScript(data) { function addOverrides (line 44) | async function addOverrides(script, flags) { function addVariables (line 65) | async function addVariables(script, flags) { function addDefaultPlugins (line 79) | function addDefaultPlugins(script) { function resolveConfigTemplates (line 101) | async function resolveConfigTemplates(script, flags, configPath, scriptP... function checkConfig (line 120) | async function checkConfig(script, scriptPath, flags) { function resolveConfigPath (line 205) | async function resolveConfigPath(script, flags, scriptPath) { function formatDuration (line 238) | function formatDuration(durationInMs) { function maybePluralize (line 264) | function maybePluralize(amount, singular, plural = `${singular}s`) { function padded (line 268) | function padded(str1, str2, length = 79, formatPadding = chalk.gray) { function maybeTruncate (line 279) | function maybeTruncate(str, length) { function rainbow (line 283) | function rainbow(str) { FILE: packages/artillery/lib/util/await-on-ee.js function awaitOnEE (line 3) | async function awaitOnEE(ee, message, pollMs = 1000, maxWaitMs = Infinit... FILE: packages/artillery/lib/util/generate-id.js function generateId (line 3) | function generateId(prefix = '') { FILE: packages/artillery/lib/util/prepare-test-execution-plan.js function prepareTestExecutionPlan (line 22) | async function prepareTestExecutionPlan(inputFiles, flags, _args) { function readPayload (line 121) | async function readPayload(script) { function transpileTypeScript (line 148) | function transpileTypeScript(entryPoint, outputPath, userExternalPackage... function replaceProcessorIfTypescript (line 164) | function replaceProcessorIfTypescript(script, scriptPath) { FILE: packages/artillery/lib/util/sleep.js function sleep (line 1) | async function sleep(ms) { FILE: packages/artillery/lib/utils-config.js function readArtilleryConfig (line 6) | function readArtilleryConfig() { function updateArtilleryConfig (line 16) | function updateArtilleryConfig(data) { FILE: packages/artillery/test/cli/custom-plugin.test.js function createServer (line 11) | function createServer() { FILE: packages/artillery/test/cloud-e2e/fargate/bom.test.js constant A9_PATH (line 14) | const A9_PATH = toCorrectPath(process.env.A9_PATH || 'artillery'); FILE: packages/artillery/test/cloud-e2e/fargate/cloud-api-key.test.js constant A9_PATH (line 16) | const A9_PATH = process.env.A9_PATH || 'artillery'; FILE: packages/artillery/test/cloud-e2e/fargate/cw-adot.test.js constant A9_PATH (line 18) | const A9_PATH = process.env.A9_PATH || 'artillery'; FILE: packages/artillery/test/cloud-e2e/fargate/dd-adot.test.js constant A9_PATH (line 18) | const A9_PATH = process.env.A9_PATH || 'artillery'; FILE: packages/artillery/test/cloud-e2e/fargate/ensure-plugin.test.js constant A9_PATH (line 11) | const A9_PATH = process.env.A9_PATH || 'artillery'; FILE: packages/artillery/test/cloud-e2e/fargate/expect-plugin.test.js constant A9_PATH (line 11) | const A9_PATH = process.env.A9_PATH || 'artillery'; FILE: packages/artillery/test/cloud-e2e/fargate/fixtures/adot/flow.js function simpleCheck (line 1) | async function simpleCheck(page, _userContext, _events, test) { FILE: packages/artillery/test/cloud-e2e/fargate/fixtures/adot/helpers.js function getDatadogSpans (line 16) | async function getDatadogSpans(apiKey, appKey, testId, expectedTotalSpan... function getXRayTraces (line 69) | async function getXRayTraces(testId, expectedTraceNum) { FILE: packages/artillery/test/cloud-e2e/fargate/fixtures/large-output/processor.js function logOutput (line 1) | function logOutput(_req, _res, _userContext, events, done) { FILE: packages/artillery/test/cloud-e2e/fargate/fixtures/memory-hog/processor.js function hogSomeRam (line 6) | function hogSomeRam(_req, _context, _events, next) { FILE: packages/artillery/test/cloud-e2e/fargate/fixtures/mixed-hierarchy/code/set-url.js function setUrl (line 5) | function setUrl(req, _res, _ctx, _ee, done) { FILE: packages/artillery/test/cloud-e2e/fargate/fixtures/simple-bom/deps/functions.js function checkBundle (line 14) | function checkBundle(_req, _userContext, _events, done) { FILE: packages/artillery/test/cloud-e2e/fargate/heartbeat.test.js constant A9_PATH (line 9) | const A9_PATH = process.env.A9_PATH || 'artillery'; constant REGION (line 10) | const REGION = 'eu-west-1'; constant CLUSTER (line 11) | const CLUSTER = 'artilleryio-cluster'; constant HEARTBEAT_THRESHOLD_S (line 13) | const HEARTBEAT_THRESHOLD_S = 180; constant POLL_INTERVAL_MS (line 14) | const POLL_INTERVAL_MS = 30_000; constant POLL_TIMEOUT_MS (line 15) | const POLL_TIMEOUT_MS = 300_000; function listRunningTasks (line 20) | function listRunningTasks(startedBy) { function waitForOutput (line 30) | function waitForOutput(proc, pattern, timeoutMs = 180_000) { function extractTestId (line 53) | function extractTestId(output) { FILE: packages/artillery/test/cloud-e2e/fargate/memory.test.js constant A9_PATH (line 5) | const A9_PATH = process.env.A9_PATH || 'artillery'; FILE: packages/artillery/test/cloud-e2e/fargate/misc.test.js constant A9_PATH (line 13) | const A9_PATH = process.env.A9_PATH || 'artillery'; FILE: packages/artillery/test/cloud-e2e/fargate/processors.test.js constant A9_PATH (line 15) | const A9_PATH = process.env.A9_PATH || 'artillery'; FILE: packages/artillery/test/cloud-e2e/lambda/fixtures/dotenv/processor.js function getFruit (line 1) | function getFruit(_context, ee, next) { FILE: packages/artillery/test/cloud-e2e/lambda/fixtures/quick-loop-with-csv/helpers.js function maybeSleep (line 3) | function maybeSleep(_req, _context, _events, done) { function emitCsvCounters (line 13) | function emitCsvCounters(context, events, done) { FILE: packages/artillery/test/cloud-e2e/lambda/lambda-bom.test.js constant A9_PATH (line 17) | const A9_PATH = process.env.A9_PATH || 'artillery'; constant ARCHITECTURE (line 18) | const ARCHITECTURE = getImageArchitecture(); FILE: packages/artillery/test/cloud-e2e/lambda/lambda-dotenv.test.js constant A9_PATH (line 15) | const A9_PATH = process.env.A9_PATH || 'artillery'; constant ARCHITECTURE (line 16) | const ARCHITECTURE = getImageArchitecture(); FILE: packages/artillery/test/cloud-e2e/lambda/lambda-ensure.test.js constant A9_PATH (line 23) | const A9_PATH = process.env.A9_PATH || 'artillery'; constant ARCHITECTURE (line 24) | const ARCHITECTURE = getImageArchitecture(); FILE: packages/artillery/test/cloud-e2e/lambda/lambda-expect.test.js constant A9_PATH (line 22) | const A9_PATH = process.env.A9_PATH || 'artillery'; constant ARCHITECTURE (line 23) | const ARCHITECTURE = getImageArchitecture(); FILE: packages/artillery/test/cloud-e2e/lambda/lambda-smoke.test.js constant A9_PATH (line 23) | const A9_PATH = process.env.A9_PATH || 'artillery'; constant ARCHITECTURE (line 24) | const ARCHITECTURE = getImageArchitecture(); FILE: packages/artillery/test/helpers/index.js function execute (line 9) | async function execute(args, options) { function deleteFile (line 21) | async function deleteFile(path) { function returnTmpPath (line 26) | function returnTmpPath(fileName) { function getRootPath (line 30) | async function getRootPath(filename) { function generateTmpReportPath (line 34) | function generateTmpReportPath(testName, extension) { function getTestTags (line 42) | function getTestTags(additionalTags) { function getTestId (line 62) | function getTestId(outputString) { FILE: packages/artillery/test/helpers/sleep.js function sleep (line 1) | async function sleep(ms) { FILE: packages/artillery/test/integration/core/fixtures/http-file-upload-processor.js function getResponse (line 3) | function getResponse(_req, res, _context, _ee, next) { FILE: packages/artillery/test/integration/core/http-file-upload.test.js function calculateFileHash (line 21) | async function calculateFileHash(filePath) { FILE: packages/artillery/test/plugins/artillery-plugin-dummy-csv-logger/index.js function Plugin (line 11) | function Plugin(_config, ee) { FILE: packages/artillery/test/plugins/artillery-plugin-httphooks/index.js function httpHooks (line 7) | function httpHooks(script) { function afterResponseFn (line 21) | function afterResponseFn(_req, _res, _userContext, _events, done) { FILE: packages/artillery/test/publish-metrics/fixtures/flow.js function simpleCheck (line 3) | async function simpleCheck(page, _userContext, _events, test) { function simpleError (line 27) | async function simpleError(page, _userContext, _events, test) { FILE: packages/artillery/test/publish-metrics/fixtures/helpers.js function getTestId (line 3) | function getTestId(outputString) { function setDynamicHTTPTraceExpectations (line 9) | function setDynamicHTTPTraceExpectations(expectedOutcome) { function setDynamicPlaywrightTraceExpectations (line 23) | function setDynamicPlaywrightTraceExpectations(expectedOutcome) { FILE: packages/artillery/test/publish-metrics/tracing/http-trace-assertions.js function runHttpTraceAssertions (line 69) | async function runHttpTraceAssertions(t, testRunData, expectedOutcome) { FILE: packages/artillery/test/publish-metrics/tracing/playwright-trace-assertions.js function runPlaywrightTraceAssertions (line 47) | async function runPlaywrightTraceAssertions(t, testRunData, expectedOutc... FILE: packages/artillery/test/scripts/http/processors.js function simpleFunction (line 3) | function simpleFunction(_context, ee, next) { function asyncFunction (line 10) | async function asyncFunction(_context, ee, next) { function otherFunction (line 21) | function otherFunction(_context, ee, next) { function errorCodeFunction (line 26) | function errorCodeFunction(_context, _ee, next) { function errorMessageFunction (line 30) | function errorMessageFunction(_context, _ee, next) { FILE: packages/artillery/test/scripts/processor.js function printHello (line 10) | function printHello(_req, _ctx, _events, done) { function _doNothing (line 18) | function _doNothing(_req, _ctx, _events, done) { function createNewVar (line 23) | function createNewVar(ctx, _events, done) { function rewriteUrl (line 29) | function rewriteUrl(req, _ctx, _events, done) { function checkGlobal (line 34) | function checkGlobal(_ctx, _events, done) { FILE: packages/artillery/test/scripts/scenario-cli-variables/processor.js function myAfterResponseHandler (line 1) | function myAfterResponseHandler(req, _res, context, _ee, next) { FILE: packages/artillery/test/scripts/scenario-config-different-folder/__processor__/index.js function setId (line 1) | function setId(context, _ee, next) { FILE: packages/artillery/test/scripts/scenario-with-custom-plugin/processor.js function processorFn (line 1) | function processorFn() { FILE: packages/artillery/test/scripts/scenario-with-parallel/processor.js function beforeReqInParallel (line 1) | function beforeReqInParallel(req, context, ee, next) { function afterReqInParallel (line 7) | function afterReqInParallel(req, _res, context, ee, next) { FILE: packages/artillery/test/scripts/test-suggest-exit-code.js function setNonZeroCode (line 5) | function setNonZeroCode(_req, _res, _vuContext, _events, next) { FILE: packages/artillery/test/scripts/with-process-env/processor.js function myBeforeRequestHandler (line 1) | function myBeforeRequestHandler(req, _res, context, _ee, next) { FILE: packages/artillery/test/targets/gh_215_target.js function register (line 23) | function register(_req, _h) { FILE: packages/artillery/test/targets/targetServer.js function createServer (line 13) | function createServer(host, port) { function createCalcServer (line 19) | function createCalcServer(host, port) { function double (line 44) | function double(req, h) { function inc (line 64) | function inc(req, h) { FILE: packages/artillery/test/unit/before_after_hooks.test.js function runServer (line 205) | function runServer() { FILE: packages/artillery/test/unit/ssms-multi-process.test.js constant MEASUREMENTS (line 16) | const MEASUREMENTS = []; function round (line 470) | function round(number, decimals) { FILE: packages/artillery/test/unit/ssms-worker.js function main (line 22) | async function main() { FILE: packages/artillery/types.d.ts type Stash (line 21) | type Stash = Redis | null; type GetStashOptions (line 37) | interface GetStashOptions { type Config (line 65) | type Config = { type Scenario (line 118) | type Scenario = { type PlaywrightEngineScenarioTestFunction (line 154) | type PlaywrightEngineScenarioTestFunction = string | ((page: Page, userC... type VUContext (line 156) | type VUContext = { type VUEvents (line 161) | type VUEvents = { type PlaywrightEngineTestParam (line 165) | type PlaywrightEngineTestParam = { type PlaywrightEngineConfig (line 169) | type PlaywrightEngineConfig = { type PlaywrightEngineTraceConfig (line 225) | type PlaywrightEngineTraceConfig = { type TestPhase (line 238) | type TestPhase = { type PayloadConfig (line 277) | type PayloadConfig = { FILE: packages/commons/engine_util.js function createThink (line 38) | function createThink(requestSpec, opts) { function createLoopWithCount (line 73) | function createLoopWithCount(count, steps, opts) { function createParallel (line 164) | function createParallel(steps, opts) { function isProbableEnough (line 184) | function isProbableEnough(obj) { function template (line 198) | function template(o, context, inPlace) { function templateObjectOrArray (line 255) | function templateObjectOrArray(o, context) { function renderVariables (line 291) | function renderVariables(str, vars) { function evil (line 326) | function evil(sandbox, code) { function parseLoopCount (line 336) | function parseLoopCount(countSpec) { function isCaptureFailed (line 361) | function isCaptureFailed(v, defaultStrict) { function ensurePropertyIsAList (line 381) | function ensurePropertyIsAList(obj, prop) { function captureOrMatch (line 390) | function captureOrMatch(params, response, context, done) { function parseSpec (line 500) | function parseSpec(spec, response) { function parseJSON (line 548) | function parseJSON(body, callback) { function dummyParser (line 565) | function dummyParser(body, callback) { function extractJSONPath (line 570) | function extractJSONPath(doc, expr, opts) { function extractRegExp (line 600) | function extractRegExp(doc, expr, opts) { function extractHeader (line 635) | function extractHeader(headers, headerName) { function extractCheerio (line 639) | function extractCheerio(doc, expr, opts) { function dummyExtractor (line 655) | function dummyExtractor() { function isJSON (line 662) | function isJSON(res) { function isXML (line 673) | function isXML(res) { function randomInt (line 681) | function randomInt(low, high) { function sanitiseValue (line 685) | function sanitiseValue(value) { FILE: packages/commons/jitter.js function jitter (line 9) | function jitter(sApprox) { FILE: packages/core/index.js function updateGlobalObject (line 5) | async function updateGlobalObject(opts = {}) { function main (line 84) | async function main() { FILE: packages/core/lib/engine_http.js constant USER_AGENT (line 11) | const USER_AGENT = 'Artillery (https://artillery.io)'; constant GOT_OPTION_NAMES (line 32) | const GOT_OPTION_NAMES = [ constant DEFAULT_AGENT_OPTIONS (line 56) | const DEFAULT_AGENT_OPTIONS = { function createAgents (line 61) | function createAgents(proxies, opts) { function HttpEngine (line 100) | function HttpEngine(script) { function responseProcessor (line 567) | function responseProcessor(isLast, res, body, done) { function lastRequest (line 955) | function lastRequest(res, requestParams) { function maybePrependBase (line 1047) | function maybePrependBase(uri, config) { function lowcaseKeys (line 1058) | function lowcaseKeys(h) { function runOnErrorHooks (line 1064) | function runOnErrorHooks( FILE: packages/core/lib/engine_socketio.js function SocketIoEngine (line 19) | function SocketIoEngine(script) { function markEndTime (line 48) | function markEndTime(ee, _, startedAt) { function isResponseRequired (line 55) | function isResponseRequired(spec) { function isAcknowledgeRequired (line 61) | function isAcknowledgeRequired(spec) { function isValid (line 65) | function isValid(data, response) { function processResponse (line 99) | function processResponse(ee, data, response, context, callback) { function preStep (line 330) | function preStep(context, callback) { function zero (line 403) | function zero(callback, context) { FILE: packages/core/lib/engine_ws.js function WSEngine (line 16) | function WSEngine(script) { function getMessageHandler (line 35) | function getMessageHandler(context, params, ee, timeout, callback) { function getWsOptions (line 230) | function getWsOptions(config) { function getWsInstance (line 247) | function getWsInstance(config, scenarioSpec, context, cb) { function zero (line 301) | function zero(cb) { function one (line 307) | function one(context, cb) { function getWsConfig (line 348) | function getWsConfig(config) { FILE: packages/core/lib/is-idle-phase.js function isIdlePhase (line 5) | function isIdlePhase(phase) { FILE: packages/core/lib/phases.js function sleep (line 17) | async function sleep(ms) { function phaser (line 23) | function phaser(phaseSpecs) { function createPause (line 105) | function createPause(spec, ee) { function createRamp (line 120) | function createRamp(spec, ee) { function createArrivalCount (line 207) | function createArrivalCount(spec, ee) { function createArrivalRate (line 234) | function createArrivalRate(spec, ee) { FILE: packages/core/lib/readers.js function createReader (line 9) | function createReader(order, spec) { function createSequencedReader (line 24) | function createSequencedReader() { function createEverythingReader (line 37) | function createEverythingReader(spec) { function createRandomReader (line 64) | function createRandomReader() { FILE: packages/core/lib/runner.js function loadEngines (line 37) | function loadEngines( function loadProcessor (line 76) | async function loadProcessor(script, options) { function prepareScript (line 101) | function prepareScript(script, payload) { function runner (line 138) | async function runner(script, payload, options, callback) { function run (line 209) | function run(script, ee, options, runState, contextVars) { function runScenario (line 262) | function runScenario(script, metrics, runState, contextVars, options) { function datafileVariables (line 405) | function datafileVariables(script) { function inlineVariables (line 433) | function inlineVariables(script) { function createContext (line 452) | function createContext(script, contextVars, additionalProperties = {}) { function $randomNumber (line 502) | function $randomNumber(min, max) { function $randomString (line 506) | function $randomString(length = 10) { function handleScriptHook (line 519) | async function handleScriptHook(hook, script, hookEvents, contextVars = ... FILE: packages/core/lib/ssms.js constant MAX_METRIC_NAME_LENGTH (line 15) | const MAX_METRIC_NAME_LENGTH = 1024; class SSMS (line 17) | class SSMS extends EventEmitter { method constructor (line 18) | constructor(_options) { method stop (line 56) | stop() { method report (line 67) | static report(pds) { method empty (line 72) | static empty(ts) { method summarizeHistogram (line 88) | static summarizeHistogram(h) { method legacyReport (line 93) | static legacyReport(pd) { method mergeBuckets (line 177) | static mergeBuckets(periodData) { method pack (line 272) | static pack(periods) { method cloneHistogram (line 334) | static cloneHistogram(h) { method serializeMetrics (line 338) | static serializeMetrics(pd) { method deserializeMetrics (line 356) | static deserializeMetrics(pd) { method getBucketIds (line 366) | getBucketIds() { method counter (line 377) | counter(name, value) { method incr (line 381) | incr(name, value, t) { method summary (line 390) | summary(name, value) { method histogram (line 394) | histogram(name, value, t) { method rate (line 402) | rate(name, t) { method getMetrics (line 406) | getMetrics(period) { method _aggregateHistograms (line 444) | _aggregateHistograms(upToTimeslice) { method _aggregateCounters (line 477) | _aggregateCounters(upToTimeslice) { method _aggregateRates (line 511) | _aggregateRates(upToTimeslice) { method aggregate (line 568) | aggregate(forceAll) { method _emitPeriods (line 583) | _emitPeriods() { method _maybeEmitMostRecentPeriod (line 596) | _maybeEmitMostRecentPeriod() { function normalizeTs (line 606) | function normalizeTs(epochMs, windowSize = 10) { function round (line 624) | function round(number, decimals) { function summarizeHistogram (line 630) | function summarizeHistogram(h) { function stringify (line 647) | function stringify(value, space) { function parse (line 651) | function parse(text) { function replacer (line 655) | function replacer(_key, value) { function reviver (line 667) | function reviver(_key, value) { function isBufferLike (line 686) | function isBufferLike(x) { function isArray (line 692) | function isArray(x) { function isString (line 696) | function isString(x) { function isObject (line 700) | function isObject(x) { function min (line 708) | function min(values) { function max (line 713) | function max(values) { FILE: packages/core/lib/weighted-pick.js function create (line 10) | function create(list) { function bench (line 28) | function bench() { FILE: packages/core/test/plugins/normal_plugin/index.js function normalPlugin (line 5) | function normalPlugin(_config, ee) { FILE: packages/core/test/plugins/packaged_plugin/index.js function packagedPlugin (line 5) | function packagedPlugin(_config, ee) { FILE: packages/core/test/quarantine/test_config_plugin_package.js function runTest (line 31) | function runTest(t, scriptName) { FILE: packages/core/test/targets/express_socketio.js function handler (line 33) | function handler(_req, res) { function setsCookie (line 39) | function setsCookie(_req, res) { function expectsCookie (line 45) | function expectsCookie(req, res) { function stats (line 61) | function stats(_req, res) { FILE: packages/core/test/targets/simple.js constant REQUEST_COUNT (line 4) | let REQUEST_COUNT = 0; constant COOKIES (line 5) | const COOKIES = {}; constant LARGE_RESPONSE (line 15) | const LARGE_RESPONSE = JSON.stringify({ function route (line 66) | function route(server) { function ok (line 204) | function ok(_req, _h) { function index (line 212) | function index(_req, _h) { function postIndex (line 216) | function postIndex(_req, h) { function create (line 220) | function create(req, h) { function read (line 228) | function read(req, h) { function stats (line 238) | function stats(_req, _h) { function setsCookie (line 250) | function setsCookie(_req, h) { function expectsCookie (line 257) | function expectsCookie(req, h) { function getJourneys (line 272) | function getJourneys(_req, h) { function getJourney (line 299) | function getJourney(req, h) { function getDevices (line 323) | function getDevices(_req, h) { function putDevice (line 357) | function putDevice(req, h) { FILE: packages/core/test/targets/simple_socketio.js function createTestServer (line 5) | function createTestServer() { FILE: packages/core/test/targets/simple_ws.js function handleProtocols (line 26) | function handleProtocols(protocols, _request) { FILE: packages/core/test/targets/socketio_args.js function handler (line 6) | function handler(_req, res) { FILE: packages/core/test/unit/engine_http.test.js constant THINKTIME_SEC (line 14) | const THINKTIME_SEC = 1; function onStarted (line 155) | function onStarted() { FILE: packages/core/test/unit/engine_ws.test.js function setup (line 28) | function setup() { function teardown (line 49) | function teardown(sandbox) { FILE: packages/core/test/unit/phases.test.js function testRamp (line 192) | function testRamp(t, phaseSpec) { FILE: packages/core/test/unit/readers.test.js function readPayloadData (line 51) | function readPayloadData(reader) { FILE: packages/skytrace/src/commands/ping.ts constant YAML (line 18) | const YAML = require('js-yaml'); function fmt (line 25) | function fmt(val: any, padTo: number = 8) { function parse (line 31) | function parse(str: string) { constant VERBS (line 61) | const VERBS = [ class PingCommand (line 73) | class PingCommand extends Command { method log (line 81) | log(...args: any) { method run (line 87) | async run() { FILE: packages/skytrace/src/commands/run.ts class RunCommand (line 14) | class RunCommand extends Command { method runFlow (line 18) | async runFlow(flowFilePath: string, opts: any) { method run (line 111) | async run() { FILE: packages/skytrace/src/telemetry.ts constant POSTHOG_TOKEN (line 10) | const POSTHOG_TOKEN = '_uzX-_WJoVmE_tsLvu0OFD2tpd0HGz72D5sU1zM2hbs'; FILE: packages/types/definitions.ts type TestScript (line 3) | type TestScript = { type Config (line 29) | type Config = { type PlaywrightEngineConfig (line 96) | type PlaywrightEngineConfig = { type PayloadConfig (line 137) | type PayloadConfig = { type Scenarios (line 186) | type Scenarios = Array; type HttpConfig (line 188) | type HttpConfig = { type WebSocketConfig (line 241) | type WebSocketConfig = { type TestPhase (line 261) | type TestPhase = { type Scenario (line 305) | type Scenario = { type FixedLoop (line 394) | type FixedLoop = { type DynamicLoop (line 402) | type DynamicLoop = { type BaseFlow (line 411) | type BaseFlow = type HttpResponseMatch (line 434) | type HttpResponseMatch = { type HttpFlow (line 439) | type HttpFlow = type WebSocketFlow (line 472) | type WebSocketFlow = type SocketIoFlow (line 491) | type SocketIoFlow = type DefaultHttpRequest (line 509) | type DefaultHttpRequest = { type HttpRequestWithBody (line 592) | type HttpRequestWithBody = DefaultHttpRequest & type TestPhaseCapture (line 614) | type TestPhaseCapture = FILE: packages/types/plugins/expect.ts type ExpectPluginConfig (line 1) | type ExpectPluginConfig = { type ExpectPluginMetrics (line 34) | type ExpectPluginMetrics = { FILE: packages/types/test/examples.test.ts constant ROOT_DIR (line 6) | const ROOT_DIR = path.resolve(__dirname, '../../..'); function fromExample (line 8) | function fromExample(testScriptPath: string) { FILE: packages/types/test/helpers.ts function validateTestScript (line 14) | function validateTestScript(scriptText: string) {