{"action":"created","issue":{"url":"https://api.github.com/repos/damianszczepanik/cucumber-reporting/issues/471","repository_url":"https://api.github.com/repos/damianszczepanik/cucumber-reporting","labels_url":"https://api.github.com/repos/damianszczepanik/cucumber-reporting/issues/471/labels{/name}","comments_url":"https://api.github.com/repos/damianszczepanik/cucumber-reporting/issues/471/comments","events_url":"https://api.github.com/repos/damianszczepanik/cucumber-reporting/issues/471/events","html_url":"https://github.com/damianszczepanik/cucumber-reporting/issues/471","id":160016069,"number":471,"title":"Error Messages that have the same text are only expandable for the first occurrence in the report","user":{"login":"andrewcurtis-mris","id":15802890,"avatar_url":"https://avatars.githubusercontent.com/u/15802890?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewcurtis-mris","html_url":"https://github.com/andrewcurtis-mris","followers_url":"https://api.github.com/users/andrewcurtis-mris/followers","following_url":"https://api.github.com/users/andrewcurtis-mris/following{/other_user}","gists_url":"https://api.github.com/users/andrewcurtis-mris/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewcurtis-mris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewcurtis-mris/subscriptions","organizations_url":"https://api.github.com/users/andrewcurtis-mris/orgs","repos_url":"https://api.github.com/users/andrewcurtis-mris/repos","events_url":"https://api.github.com/users/andrewcurtis-mris/events{/privacy}","received_events_url":"https://api.github.com/users/andrewcurtis-mris/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/damianszczepanik/cucumber-reporting/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-13T18:35:10Z","updated_at":"2016-06-19T03:17:04Z","closed_at":null,"body":"I am using version 2.3.0 to create reports. When viewing the reports for a feature where two or more steps fail with the exact same error message the error message is only available to drill down into on the first occurance.\r\n\r\nif scenario 1 step1 fails with the error:\r\n\"junit.framework.ComparisonFailure: expected:<[0] Days> but was:<[25.7] Days>\r\n\tat junit.framework.Assert.assertEquals(Assert.java:100)\r\n\tat junit.framework.Assert.assertEquals(Assert.java:107)\r\n\tat junit.framework.TestCase.assertEquals(TestCase.java:269)\"\r\n\r\nand scenario 2 step 1 also fails with the error:\r\n\"junit.framework.ComparisonFailure: expected:<[0] Days> but was:<[25.7] Days>\r\n\tat junit.framework.Assert.assertEquals(Assert.java:100)\r\n\tat junit.framework.Assert.assertEquals(Assert.java:107)\r\n\tat junit.framework.TestCase.assertEquals(TestCase.java:269)\"\r\n\r\nThe link to expand the error message on scenario 2 step 1 only expands/collapses the error message under the failed step in scenario 1 and there is no message to actually display for the second and subsequent occurrences.\r\n\r\nI assume this is because of the way hash is used on the message and the hash would be identical for identical messages. It can be hard to see the error if there are a large number of scenarios and they may not show up close to the other occurrences."},"comment":{"url":"https://api.github.com/repos/damianszczepanik/cucumber-reporting/issues/comments/226976973","html_url":"https://github.com/damianszczepanik/cucumber-reporting/issues/471#issuecomment-226976973","issue_url":"https://api.github.com/repos/damianszczepanik/cucumber-reporting/issues/471","id":226976973,"user":{"login":"midopa","id":1522141,"avatar_url":"https://avatars.githubusercontent.com/u/1522141?v=3","gravatar_id":"","url":"https://api.github.com/users/midopa","html_url":"https://github.com/midopa","followers_url":"https://api.github.com/users/midopa/followers","following_url":"https://api.github.com/users/midopa/following{/other_user}","gists_url":"https://api.github.com/users/midopa/gists{/gist_id}","starred_url":"https://api.github.com/users/midopa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/midopa/subscriptions","organizations_url":"https://api.github.com/users/midopa/orgs","repos_url":"https://api.github.com/users/midopa/repos","events_url":"https://api.github.com/users/midopa/events{/privacy}","received_events_url":"https://api.github.com/users/midopa/received_events","type":"User","site_admin":false},"created_at":"2016-06-19T03:17:04Z","updated_at":"2016-06-19T03:17:04Z","body":"In the end, it boils down to getting a unique ID for each \"object\" somehow. I don't think there's a clear-cut way to do this without knowing things like the memory location and such. Some implementations can provide this, but that locks usage to a particular JVM.\r\n\r\nA simple solution would be to add a random number after the hash. It will reduce the chances of a collision. But a collision is still possible. Another way is to just use some incrementing counter. I'm testing the later."}}
{"actor":{"display_login":"midopa"}}