K6 makes screenshot with blank page when I’m using code from snippet bellow.
I’m supposing that problem is in self signed certificate, but I cannot confirm it.
The question is how to debug it?
My code:
<code>export let options: Options = {
scenarios: {
ui: {
executor: 'shared-iterations',
options: {
browser: {
type: 'chromium'
},
},
},
},
thresholds: {
checks: ['rate==1.0'],
},
insecureSkipTLSVerify: true
};
describe('Open my self signed cert page', async () => {
const page = await browser.newPage();
try {
await page.goto('https://10.99.10.112:8443');
console.log("screen");
await page.screenshot({path: 'screenshots/screenshot.png'});
} finally {
await page.close();
}
})
</code>
<code>export let options: Options = {
scenarios: {
ui: {
executor: 'shared-iterations',
options: {
browser: {
type: 'chromium'
},
},
},
},
thresholds: {
checks: ['rate==1.0'],
},
insecureSkipTLSVerify: true
};
describe('Open my self signed cert page', async () => {
const page = await browser.newPage();
try {
await page.goto('https://10.99.10.112:8443');
console.log("screen");
await page.screenshot({path: 'screenshots/screenshot.png'});
} finally {
await page.close();
}
})
</code>
export let options: Options = {
scenarios: {
ui: {
executor: 'shared-iterations',
options: {
browser: {
type: 'chromium'
},
},
},
},
thresholds: {
checks: ['rate==1.0'],
},
insecureSkipTLSVerify: true
};
describe('Open my self signed cert page', async () => {
const page = await browser.newPage();
try {
await page.goto('https://10.99.10.112:8443');
console.log("screen");
await page.screenshot({path: 'screenshots/screenshot.png'});
} finally {
await page.close();
}
})