testing - I am not able to see graphics and screenshot in multiple-cucumber-html-report (i am using cypress framework ) - Stack

admin2025-04-17  2

I am not able to see graphics and screenshot in multiple-cucumber-html-report (i am using cypress framework ) ]

version used in package.json

    
"cypress": "^14.0.1",
 "multiple-cucumber-html-reporter": "^3.9.0",
typbadeball/cypress-cucumber-preprocessor": "^22.0.0",
    "@cypress/browserify-preprocessor": "^3.0.2",e here

report generation file

// @ts-ignore
const report = require('multiple-cucumber-html-reporter');
const fs = require('fs-extra');
const path = require('path');

let jsonDirPath;
let testReportPath;

if (process.argv[2] === undefined) {
  jsonDirPath = './src/cucumber-json/';
  testReportPath = './testOutcomes/report';
} else {
  jsonDirPath = process.argv[2];
  testReportPath = process.argv[3];
}

report.generate({
  jsonDir: jsonDirPath,
  reportPath: testReportPath,
  displayDuration: true,
  pageTitle: 'Test - Automation Test Execution Report',
  reportName: 'test - Automation Test Execution Report',
  displayReportTime: true,
  saveCollectedJSON: true,
  disableLog: true,
  durationInMS: false,
  openReportInBrowser: false,
  metadata: {
    browser: {
      name: 'chrome',
      version: '131',
    },
    device: 'Local test machine',
    platform: {
      name: 'ubuntu',
      version: '16.04',
    },
  },
  customData: {
    title: 'Test Execution Information',
    data: [
      { label: 'Project', value: 'Test' },
      { label: 'Release', value: '1.2.3' },
      { label: 'Journey', value: 'Test Journeys' },
    ],
  },
});

reinstalled packages and node modules , no luck still tried opening report from server no luck

转载请注明原文地址:http://anycun.com/QandA/1744877075a88885.html