I have installed testcafe-reporter-allure-expanded using the "npm install testcafe-reporter-allure-expanded" command.
And added below configuration code
const DOC_ALLURE_CONFIG = {
CLEAN_REPORT_DIR: true,
COPY_HISTORY: false,
ADD_VIDEOS: true,
CLEAN_VIDEOS: false,
REMOVE_VIDEOS: false,
CLEAN_SCREENSHOTS: false,
RESULT_DIR: '/allure/allure-results',
REPORT_DIR: '/allure/allure-report',
META: {
TEST_ID: 'ID',
TAG: 'TAG',
BLOK: 'BLOK',
MODULE: 'MODULE',
SEVERITY: 'SEVERITY',
USER_STORY: 'USER_STORY',
DESCRIPTION: 'DESCRIPTION'
},
STORY_LABEL: 'Jira Story Link',
STORY_URL: 'https://jiraexample.cloud/browse/{{ID}}',
VIDEO_PATH: 'Videos',
videoOptions: {
singleFile: true,
failedOnly: true,
pathPattern: "${DATE}_${TIME}/${TEST}/${USERAGENT}/${FILE_INDEX}.mp4"
},
REPORTS_PATH: 'Reports/',
SCREENSHOT_PATH: 'Screenshots/',
CATEGORY_FILE_PATH: 'allure/',
labels: {
screenshotLabel: 'Screenshot',
videoLabel: 'Executie Video',
reportsLabel: 'Reports',
browserLabel: 'Browser',
userAgentLabel: 'User Agent',
allureStartMessage: 'Allure reporter started...',
allureClosedMessage: 'Allure reporter closed...'
}
};
module.exports = DOC_ALLURE_CONFIG;
Allure reports are generated successfully.
But the videos folder is empty. There no videos found in the "Videos" folder.
I want to get the videos in the "Videos" folder and I want to display the videos in the "allure reports"
Hi @seleniumragu
This issue relates to the testcafe-reporter-allure-expanded module. I cannot find the source code repository for this module on GitHub. Try to connect with the module's author and describe the issue to him.
It looks like you missed the videoPath property in your configuration.
@AndreyBelym My code have the video path properties
VIDEO_PATH: 'Videos',
videoOptions: {
singleFile: true,
failedOnly: true,
pathPattern: "${DATE}_${TIME}/${TEST}/${USERAGENT}/${FILE_INDEX}.mp4"
},
I already added these lines of code for capturing the videos. Still its not working.
@miherlosev Yes cannot find the github repository. I am not able to connect with the author.
@seleniumragu
Hello,
VIDEO_PATH: 'Videos',
It should be videoPath: '...'. Please refer to this documentation article: https://devexpress.github.io/testcafe/documentation/using-testcafe/configuration-file.html#videopath.
@Farfurix VIDEO_PATH: 'Videos', this line is correct.
I need to add the video path options in .testcaferc.json file.
"videoPath": "Videos/",
"videoOptions": {
"singleFile": false,
"failedOnly": false,
"pathPattern": "${DATE}_${TIME}/${TEST}/${USERAGENT}/${FILE_INDEX}.mp4"
and i have to remove the video options from the doc-allure-config.js file.
videoOptions: {
singleFile: true,
failedOnly: true,
pathPattern: "${DATE}_${TIME}/${TEST}/${USERAGENT}/${FILE_INDEX}.mp4"
},
This will solve the problem.
This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow.