Closed powersfoss closed 12 years ago
Hi
Must be bug in the way the html filename is generated - I changed that recently. can you paste me an example of the json report where it has the feature uri.
On 6 Jun 2012, at 14:48, powersfoss wrote:
I have 4 feature files which display on the Feature Statistics page as 4 rows in the table. Each row starts with the feature name which is a link. But whichever feature link I click, they all take me to the contents of the last feature in the list. I have verified on our Jenkins server under the job's "cucumber-html-reports" directory that all the correct html files and pages are generated. But through the browser, you cannot get to any of those pages due to this issue. All the links also share the same href of ".html". So the url at any of the feature pages is the same:
If I could attach screenshots I would, but hopefully I've been descriptive enough. Is this a known issue? I didn't see it in the list. We like your output so much better than our view of our feature files in subversion via a web browser that we share with the business, that we'd rather have the business view features that the Cucumber Reports Plugin displays, so this issue is preventing us from doing that. Lemme know if you need more detail/screenshots/etc.
Cheers! Powers Foss (powers.foss@gmail.com)
Reply to this email directly or view it on GitHub: https://github.com/masterthought/jenkins-cucumber-jvm-reports-plugin-java/issues/15
Here is the json snippet for just 1 of the feature files:
{"id":"match-workers","description":"As a lover of accurate individual matching\r\nI want match workers to consolidate individuals accurately\r\nSo that we identify name variations of one individual as all instances of that individual","name":"Match Workers","keyword":"Feature","line":1,"elements":[{"id":"match-workers;match-workers-consolidate-individuals","tags":[{"name":"@restore-individual-table","line":6},{"name":"@match-worker","line":6}],"description":"","name":"Match workers consolidate individuals","keyword":"Scenario","line":7,"steps":[{"result":{"duration":1629716067,"status":"passed"},"name":"the individual table is backed up and seeded with the generated test data","keyword":"Given ","line":8,"match":{"location":"NetezzaStepDefs.theIndividualTableIsBackedUpSeededWithTheGeneratedTestData()"}},{"result":{"duration":28651653772,"status":"passed"},"name":"the match workers are run","keyword":"When ","line":9,"match":{"location":"IndividualConsolidationStepDefs.theMatchWorkersAreRun()"}},{"result":{"duration":1153446598,"status":"passed"},"name":"the score of each match worker is at or above its threshold:","keyword":"Then ","line":10,"match":{"location":"IndividualConsolidationStepDefs.theScoreOfEachMatchWorkerIsAtOrAboveWithTable(DataTable)"},"rows":[{"cells":["Worker","ScoreThreshold"],"line":11},{"cells":["Levenshtein","0.693656"],"line":12},{"cells":["Jaro","0.723062"],"line":13},{"cells":["Alias","0.725648"],"line":14},{"cells":["Maiden","0.440052"],"line":15},{"cells":["Phonex","0.775904"],"line":16},{"cells":["Consolidated","0.878020"],"line":17}]}],"type":"scenario"}],"uri":"matchworkers.feature"}]
Great thanks- I should have a fix pretty soon
Sent from my iPhone
On 6 Jun 2012, at 15:21, powersfossreply@reply.github.com wrote:
Here is the json snippet for just 1 of the feature files:
{"id":"match-workers","description":"As a lover of accurate individual matching\r\nI want match workers to consolidate individuals accurately\r\nSo that we identify name variations of one individual as all instances of that individual","name":"Match Workers","keyword":"Feature","line":1,"elements":[{"id":"match-workers;match-workers-consolidate-individuals","tags":[{"name":"@restore-individual-table","line":6},{"name":"@match-worker","line":6}],"description":"","name":"Match workers consolidate individuals","keyword":"Scenario","line":7,"steps":[{"result":{"duration":1629716067,"status":"passed"},"name":"the individual table is backed up and seeded with the generated test data","keyword":"Given ","line":8,"match":{"location":"NetezzaStepDefs.theIndividualTableIsBackedUpSeededWithTheGeneratedTestData()"}},{"result":{"duration":28651653772,"status":"passed"},"name":"the match workers are run","keyword":"When ","line":9,"match":{"location":"IndividualConsolidationStepDefs.theMat chWorkersAreRun()"}},{"result":{"duration":1153446598,"status":"passed"},"name":"the score of each match worker is at or above its threshold:","keyword":"Then ","line":10,"match":{"location":"IndividualConsolidationStepDefs.theScoreOfEachMatchWorkerIsAtOrAboveWithTable(DataTable)"},"rows":[{"cells":["Worker","ScoreThreshold"],"line":11},{"cells":["Levenshtein","0.693656"],"line":12},{"cells":["Jaro","0.723062"],"line":13},{"cells":["Alias","0.725648"],"line":14},{"cells":["Maiden","0.440052"],"line":15},{"cells":["Phonex","0.775904"],"line":16},{"cells":["Consolidated","0.878020"],"line":17}]}],"type":"scenario"}],"uri":"matchworkers.feature"}]
Reply to this email directly or view it on GitHub: https://github.com/masterthought/jenkins-cucumber-jvm-reports-plugin-java/issues/15#issuecomment-6151759
Fixed in latest pending release
Release 0.0.11 has been released containing a fix for your issue.
Thanks, Kingsley!
Aww, shoot, it doesn't seem to have resolved the issue. The links all still lead to the last feature file referenced on the page. Is there some other info I can provide to help troubleshoot the issue? I installed 0.0.11, restarted Jenkins, re-ran the Jenkins job, so I believe I did everything correctly.
Did you run the build again - it won't fix the previous builds
Sent from my iPhone
On 6 Jun 2012, at 20:38, powersfossreply@reply.github.com wrote:
Aww, shoot, it doesn't seem to have resolved the issue. The links all still lead to the last feature file referenced on the page. Is there some other info I can provide to help troubleshoot the issue? I installed 0.0.11, restarted Jenkins, re-ran the Jenkins job, so I believe I did everything correctly.
Reply to this email directly or view it on GitHub: https://github.com/masterthought/jenkins-cucumber-jvm-reports-plugin-java/issues/15#issuecomment-6160471
Hmm can you send me your json file
Sent from my iPhone
On 6 Jun 2012, at 20:38, powersfossreply@reply.github.com wrote:
Aww, shoot, it doesn't seem to have resolved the issue. The links all still lead to the last feature file referenced on the page. Is there some other info I can provide to help troubleshoot the issue? I installed 0.0.11, restarted Jenkins, re-ran the Jenkins job, so I believe I did everything correctly.
Reply to this email directly or view it on GitHub: https://github.com/masterthought/jenkins-cucumber-jvm-reports-plugin-java/issues/15#issuecomment-6160471
Yeah, the first thing I did after restarting Jenkins was to re-run the Cucumber test job. I'll send you my json file in gmail.
Here's my json file from the run after the 0.0.11 upgrade.
On Wed, Jun 6, 2012 at 10:33 AM, Kingsley Hendrickse < reply@reply.github.com
wrote:
Release 0.0.11 has been released containing a fix for your issue.
Reply to this email directly or view it on GitHub:
Hi - I ran your json file thru the publisher and it worked fine - the files all link correctly from the overview. Can you check a couple of things - in the manage jenkins is the plugin thats installed definitely 0.0.11. When you view the links on the overview report page are the links correct?
This is what I have for your json file:
http://localhost:8080/job/aaaaa/15/cucumber-html-reports/EndToEnd_functional_run.feature.html http://localhost:8080/job/aaaaa/15/cucumber-html-reports/QualityWorkers.feature.html http://localhost:8080/job/aaaaa/15/cucumber-html-reports/Reports.feature.html http://localhost:8080/job/aaaaa/15/cucumber-html-reports/matchworkers.feature.html
When I visit those links it takes me to the correct pages.
Let me know if there is any other information you can give me to help solve your issue.
Okay, that was very strange. I installed the 0.0.11.hpi file 3 times, each restarting Jenkins, and each time I checked the Installed plug-ins page it reported that 0.0.10 was installed. So I downloaded a fresh copy of the plugin from the git page, installed it again, restarted Jenkins, and now it says 0.0.11 is installed. Hmmm, okay so whatever... So I'm re-running my test now. Takes about 40 mins to run or so. I'll let you know how it goes.
Confident your changes fixed the issue. And feeling more confident that Jenkins accepted the plugin this time. Strange.
On Thu, Jun 7, 2012 at 2:34 AM, Kingsley Hendrickse < reply@reply.github.com
wrote:
Hi - I ran your json file thru the publisher and it worked fine - the files all link correctly from the overview. Can you check a couple of things - in the manage jenkins is the plugin thats installed definitely 0.0.11. When you view the links on the overview report page are the links correct?
This is what I have for your json file:
http://localhost:8080/job/aaaaa/15/cucumber-html-reports/EndToEnd_functional_run.feature.html
http://localhost:8080/job/aaaaa/15/cucumber-html-reports/QualityWorkers.feature.html
http://localhost:8080/job/aaaaa/15/cucumber-html-reports/Reports.feature.html
http://localhost:8080/job/aaaaa/15/cucumber-html-reports/matchworkers.feature.html
When I visit those links it takes me to the correct pages.
Let me know if there is any other information you can give me to help solve your issue.
Reply to this email directly or view it on GitHub:
Working great, Kingsley. Don't know what was going on with Jenkins or me, but it works fine now. We had been sharing our Subversion repo read-only for our business users who wanted to see our feature file specifications. Now I think we'll just send them a link to the Cucumber Report. It's WAY cooler than flat text in a browser!
Again, great work, man!
excellent - glad it's working for you now :)
you might find my highlighting project useful at some point: https://github.com/masterthought/gherka
I have 4 feature files which display on the Feature Statistics page as 4 rows in the table. Each row starts with the feature name which is a link. But whichever feature link I click, they all take me to the contents of the last feature in the list. I have verified on our Jenkins server under the job's "cucumber-html-reports" directory that all the correct html files and pages are generated. But through the browser, you cannot get to any of those pages due to this issue. All the links also share the same href of ".html". So the url at any of the feature pages is the same:
http://p4aut01:8080/view/Enterprise%20Team/job/IndividualConsolidation_Cucumber/cucumber-html-reports/.html
If I could attach screenshots I would, but hopefully I've been descriptive enough. Is this a known issue? I didn't see it in the list. We like your output so much better than our view of our feature files in subversion via a web browser that we share with the business, that we'd rather have the business view features that the Cucumber Reports Plugin displays, so this issue is preventing us from doing that. Lemme know if you need more detail/screenshots/etc.
Cheers! Powers Foss (powers.foss@gmail.com)