systelab / allure-reporter

Printable report generation for Allure
4 stars 2 forks source link

Uncaught TypeError trying to generate reports from Json files #2

Closed jazzinjars closed 6 years ago

jazzinjars commented 6 years ago

Description With a set of Json files generated by the seed-jee tests and uploading them to generate the reports, the Allure Reporter doesn't do anything and remains in the same screen.

@systelab/angular-team

DevTools Console Error Uncaught TypeError: Cannot read property 'length' of undefined at AppComponent.push../src/app/app.component.ts.AppComponent.addTest (app.component.ts:103) at FileReader.reader.onload (app.component.ts:67) at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:388) at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runGuarded (zone.js:151) at FileReader. (zone.js:129)

alfonsserra commented 6 years ago

The error was raised when adding a testcase without steps. I Have added a check in order to avoid printing the error on the console.