★ wanayoo — archive 1999 https://github.com/allure-framework/allure2/issues/551Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The report shows 404 on tabs: Timeline, Behavors, Packages #551

Closed
simple-elf opened this issue Aug 11, 2017 · 0 comments
Closed

The report shows 404 on tabs: Timeline, Behavors, Packages #551

simple-elf opened this issue Aug 11, 2017 · 0 comments
Assignees
Labels

Comments

@simple-elf
Copy link
Contributor

@simple-elf simple-elf commented Aug 11, 2017 •

I'm submitting a ...

  • bug report
  • feature request
  • support request => Please do not submit support request here, see note at the top of this template.

What is the current behavior?

Genarated report show 404 error on tabs: Timeline, Behavors, Packages
http://take.ms/R4KWH
http://take.ms/C89oh
http://take.ms/5RRIV
JS Errors:

jQuery.Deferred exception: Cannot read property 'toLowerCase' of undefined TypeError: Cannot read property 'toLowerCase' of undefined
    at r (http://192.168.10.1:49839/app.js:24:182245)
    at u (http://192.168.10.1:49839/app.js:24:182876)
    at http://192.168.10.1:49839/app.js:24:182991
    at Array.sort (native)
    at e.value (http://192.168.10.1:49839/app.js:24:177056)
    at http://192.168.10.1:49839/app.js:24:176893
    at Array.map (<anonymous>)
    at e.value (http://192.168.10.1:49839/app.js:24:176854)
    at http://192.168.10.1:49839/app.js:24:176893
    at Array.map (<anonymous>) undefined
jQuery.Deferred exception: Cannot read property 'toLowerCase' of undefined TypeError: Cannot read property 'toLowerCase' of undefined
    at r (http://192.168.10.1:49839/app.js:24:182266)
    at u (http://192.168.10.1:49839/app.js:24:182876)
    at http://192.168.10.1:49839/app.js:24:182991
    at Array.sort (native)
    at e.value (http://192.168.10.1:49839/app.js:24:177056)
    at e.value (http://192.168.10.1:49839/app.js:24:176665)
    at e.value (http://192.168.10.1:49839/app.js:32:7310)
    at e.i (http://192.168.10.1:49839/app.js:1:3389)
    at e.triggerMethod (http://192.168.10.1:49839/app.js:1:16057)
    at e.render (http://192.168.10.1:49839/app.js:1:24267) undefined
jQuery.Deferred exception: Cannot read property 'toLowerCase' of undefined TypeError: Cannot read property 'toLowerCase' of undefined
    at r (http://192.168.10.1:49839/app.js:24:182245)
    at u (http://192.168.10.1:49839/app.js:24:182876)
    at http://192.168.10.1:49839/app.js:24:182991
    at Array.sort (native)
    at e.value (http://192.168.10.1:49839/app.js:24:177056)
    at http://192.168.10.1:49839/app.js:24:176893
    at Array.map (<anonymous>)
    at e.value (http://192.168.10.1:49839/app.js:24:176854)
    at e.value (http://192.168.10.1:49839/app.js:24:176665)
    at e.value (http://192.168.10.1:49839/app.js:32:7310) undefined

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

Then entire ignored class (@ignore) running by maven, allure generates report with "null" if fullName property.
For reproducing you can take allure-junit-example, change versions in pom to allure-junit4@2.0-BETA16 and 2.3.3, and added @ignore("ignore") to any class

...
@Ignore("ignore")
public class SimpleTest {
...

allure-results json example
{"uuid":"0c45b88f-2709-44e1-af54-a164613b4a90","historyId":"363697b5c77f119aa9696e30041b0050","fullName":"my.company.tests.ParameterizedTest.null","labels":[{"name":"package","value":"my.company.tests"},{"name":"testClass","value":"my.company.tests.ParameterizedTest"},{"name":"testMethod"},{"name":"suite","value":"my.company.tests.ParameterizedTest"},{"name":"host","value":"PC"},{"name":"thread","value":"17248@PC.main(1)"}],"links":[],"status":"skipped","statusDetails":{"known":false,"muted":false,"flaky":false,"message":"ignore"},"stage":"finished","start":1502433971691,"stop":1502433971691}
my.company.tests.ParameterizedTest.null
Maybe related to #544

If I change "null" in json to "test" 404 error disappear, but this tabs looks weird
{"uuid":"0c45b88f-2709-44e1-af54-a164613b4a90","historyId":"363697b5c77f119aa9696e30041b0050","fullName":"my.company.tests.ParameterizedTest.test","labels":[{"name":"package","value":"my.company.tests"},{"name":"testClass","value":"my.company.tests.ParameterizedTest"},{"name":"testMethod"},{"name":"suite","value":"my.company.tests.ParameterizedTest"},{"name":"host","value":"PC"},{"name":"thread","value":"17248@PC.main(1)"}],"links":[],"status":"skipped","statusDetails":{"known":false,"muted":false,"flaky":false,"message":"ignore"},"stage":"finished","start":1502433971691,"stop":1502433971691}

What is the expected behavior?

Report showing tabs correctly even if allure xml results is broken.
Also need to fix generated report to except "null"

What is the motivation / use case for changing the behavior?

I find this error json from 300 test results, without it report works well.

Please tell us about your environment:

Allure version 2.3.3
Test framework junit@4.12
Allure adaptor allure-junit4@2.0-BETA16
Generate report using allure-maven@2.8

Other information

Allure 2.3.1 fails on report generation, 2.3.2 fails on report view (infinity loading and many js errors)
On junit adaptor 2.0-BETA15 json reports for ignored classes not generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.