@bandorko Below are the logs; I see the max Vus = 1. How can we resolve these issues to get parallelism work?
kubectl logs run-k6-test-cases-initializer-45pmj -f
{
“paused”: null,
“vus”: null,
“duration”: null,
“iterations”: null,
“stages”: null,
“scenarios”: {
“browser”: {
“executor”: “shared-iterations”,
“startTime”: null,
“gracefulStop”: null,
“env”: null,
“exec”: null,
“tags”: null,
“options”: {
“browser”: {
“type”: “chromium”
}
},
“vus”: null,
“iterations”: null,
“maxDuration”: null
}
},
“executionSegment”: null,
“executionSegmentSequence”: null,
“noSetup”: null,
“setupTimeout”: null,
“noTeardown”: null,
“teardownTimeout”: null,
“rps”: null,
“dns”: {
“ttl”: null,
“select”: null,
“policy”: null
},
“maxRedirects”: null,
“userAgent”: null,
“batch”: null,
“batchPerHost”: null,
“httpDebug”: null,
“insecureSkipTLSVerify”: null,
“tlsCipherSuites”: null,
“tlsVersion”: null,
“tlsAuth”: null,
“throw”: null,
“thresholds”: {},
“blacklistIPs”: null,
“blockHostnames”: null,
“hosts”: null,
“noConnectionReuse”: null,
“noVUConnectionReuse”: null,
“minIterationDuration”: null,
“ext”: null,
“summaryTrendStats”: [
“avg”,
“min”,
“med”,
“max”,
“p(90)”,
“p(95)”
],
“summaryTimeUnit”: null,
“systemTags”: [
“check”,
“error”,
“error_code”,
“expected_response”,
“group”,
“method”,
“name”,
“proto”,
“scenario”,
“service”,
“status”,
“subproto”,
“tls_version”,
“url”
],
“tags”: null,
“metricSamplesBufferSize”: null,
“noCookiesReset”: null,
“discardResponseBodies”: null,
“totalDuration”: “10m30s”,
“maxVUs”: 1
}%
As mentioned in our previous post; our script file could not fit with configmaps, we have multiple dependencies on the script.js file. So we had to mount a folder and run the script on the container.
Reference script js:
import { browser } from ‘k6/experimental/browser’;
import exec from ‘k6/execution’;
import { expect } from ‘https://jslib.k6.io/k6chaijs/4.3.4.3/index.js’;
import * as k6BrowserUtils from ‘…/…/…/yyyyy/k6.browser.utils.js’;
import * as utils from ‘…/…/…/yyyyy/bigquery.utils.js’
import { LoginPage } from ‘…/xxxxx/login.page.js’;
import { DashboardPage } from ‘…/xxxxx/dashboard.page.js’;
import { ReportsPage } from ‘…/xxxxx/reports.page.js’;