A
Size: a a a
A
AP
AP
a
S
AllureReporter.addAttachment("Screen1",все равно в рипорт скрин не добавляет
Buffer.from(
fs.readFileSync(process.cwd() + '/allure-results/screen1.png',
'base64'),
"base64"),
"image/png");
fs.readFileSync('/path/to/file.jpg', {encoding: 'base64’})
BO
AllureReporter.addAttachment("Screen1",все равно в рипорт скрин не добавляет
Buffer.from(
fs.readFileSync(process.cwd() + '/allure-results/screen1.png',
'base64'),
"base64"),
"image/png");
A
const { addFeature } = require('@wdio/allure-reporter').default
const addFeature = require('@wdio/allure-reporter').default
S
addFeature
:> const addFeature = require('@wdio/allure-reporter').default
undefined
> addFeature
[Function: AllureReporter] {
addFeature: [Function],
addLabel: [Function],
addSeverity: [Function],
addIssue: [Function],
addTestId: [Function],
addStory: [Function],
addEnvironment: [Function],
addDescription: [Function],
addAttachment: [Function],
startStep: [Function],
endStep: [Function],
addStep: [Function],
addArgument: [Function]
}
S
b
AP
b
b
OK
B
OK
b
OK
OS
OK