Comments (16)
Check if JSON files are really in C:\Jars\workspace\Project_Name\target
then C:\Jars\jobs\Project_Name\builds\1\cucumber-html-reports
and finally plugin configuration
from cucumber-reporting-jenkins.
JSON files are not in either locations
finally plugin configuration-I am not sure if I understand what you meant but as said in my previous comments Json Reports Path = target ( json:target/json/cucumber.json ) from my project
from cucumber-reporting-jenkins.
Hi,
Are you able to look into my issues?
Thanks
Akin
from cucumber-reporting-jenkins.
Hi,
Are you able to look into my issues?
Thanks
Akin
from cucumber-reporting-jenkins.
Hi,
Are you able to look into my issues?
from cucumber-reporting-jenkins.
This plugin does not generate json, it needs it as the input
from cucumber-reporting-jenkins.
I am not sure why you closed this issue,I never assumed the plugin generates json file.
from cucumber-reporting-jenkins.
Hi,
I am not getting my initial error (HTTP ERROR 404 Problem accessing /job/Project_Name/cucumber-html-reports/. Reason:Not )anymore
My Jenkins is set up now on a Virtual machine(AWS Workspaces) and build runs fine but cucumber jvm report is not generated, see below from Jenkins console:
CucumberReportPublisher] Found 2 json files.
[CucumberReportPublisher] 1. Found a json file: target\cucumber-usage.json
[CucumberReportPublisher] 2. Found a json file: target\json\cucumber.json
[CucumberReportPublisher] Generating HTML reports
Build step 'Cucumber-JVM reports' changed build result to FAILURE
Finished: FAILURE
When I opened the report I got the following error:
java.lang.NullPointerException
at net.masterthought.cucumber.util.Util.toValidFileName(Util.java:50)
at net.masterthought.cucumber.json.Feature.setReportFileName(Feature.java:176)
at net.masterthought.cucumber.json.Feature.setMetaData(Feature.java:157)
at net.masterthought.cucumber.ReportParser.setMetadata(ReportParser.java:91)
at net.masterthought.cucumber.ReportParser.parseJsonResults(ReportParser.java:61)
at net.masterthought.cucumber.ReportBuilder.generateReports(ReportBuilder.java:51)
at net.masterthought.jenkins.CucumberReportPublisher.perform(CucumberReportPublisher.java:134)
at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
at hudson.model.Build$BuildExecution.post2(Build.java:185)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
at hudson.model.Run.execute(Run.java:1763)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Trying to generate report from following files. Make sure they are valid cucumber report files:
D:\Users\dummy.jenkins\jobs\dummy\builds\98\cucumber-html-reports\target\cucumber-usage.json
D:\Users\dummy.jenkins\jobs\dummy\builds\98\cucumber-html-reports\target\json\cucumber.json.
Please provide me an email if you want me to send the Json file to you.
Thanks
from cucumber-reporting-jenkins.
Attach json file
from cucumber-reporting-jenkins.
Json file attached
from cucumber-reporting-jenkins.
Tired with the most recent version and it works.
from cucumber-reporting-jenkins.
Still facing the same issue, please see error below:
java.lang.NullPointerException
at net.masterthought.cucumber.util.Util.toValidFileName(Util.java:50)
at
net.masterthought.cucumber.json.Feature.setReportFileName(Feature.java:176)
at net.masterthought.cucumber.json.Feature.setMetaData(Feature.java:157)
at net.masterthought.cucumber.ReportParser.setMetadata(ReportParser.java:91)
at
net.masterthought.cucumber.ReportParser.parseJsonResults(ReportParser.java:61)
at
net.masterthought.cucumber.ReportBuilder.generateReports(ReportBuilder.java:51)
at
net.masterthought.jenkins.CucumberReportPublisher.perform(CucumberReportPublisher.java:134)
at
hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
at
hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
at hudson.model.Build$BuildExecution.post2(Build.java:185)
at
hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
at hudson.model.Run.execute(Run.java:1763)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
On Mon, Jun 20, 2016 at 7:29 PM, Damian Szczepanik <[email protected]
wrote:
Tired with the most recent version and it works.
β
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#161 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AOWherjKAnYfjea8m8iYPWD87SDGruSlks5qNtvvgaJpZM4ImNhV
.
from cucumber-reporting-jenkins.
Then you probably attached wrong file.
from cucumber-reporting-jenkins.
I have run another build,attached are cucumber.json and cucumber-usage
json.I am not sure the cucumber usage file is relevant anyway.
On Tue, Jun 21, 2016 at 4:22 PM, Damian Szczepanik <[email protected]
wrote:
Then you probably attached wrong file.
β
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#161 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AOWheuY6qtEmrmZjqneZ1hTmQIfu3dK4ks5qOAGygaJpZM4ImNhV
.
from cucumber-reporting-jenkins.
Hi Damian,
Could you please help debug my NPE?I have seen either you or Kingsley help debug similar issues.
I really need the report to work
from cucumber-reporting-jenkins.
You've been provided source code so you can import the project and try to debug. First suggest to start debugging with standalone version https://github.com/damianszczepanik/cucumber-reporting
Also mind that this issue is not related to NPE - if you read carefully first post. This does not help to track issues ad pull requests.
from cucumber-reporting-jenkins.
Related Issues (20)
- Jenkins - Getting 404 error message when test case try to access captured screenshot during test report creation HOT 1
- Out Of Memory: Heap Space HOT 3
- Jenkins Test Result Trend gone. HOT 1
- com.google.gson.JsonSyntaxException HOT 1
- com.google.gson.JsonSyntaxException jenkins build fails HOT 5
- Error while generating report HOT 7
- cannot display the cucumber reports HOT 2
- Crash when step has no result section HOT 5
- Cucumber Jvm reports are giving java null exception in jenkins HOT 9
- not able to generate cucumber report through jenkins HOT 4
- In the overview-features page, the feature detail page does not match the feature link. HOT 1
- Cucumber report doesnt take variable as path HOT 2
- 404 when opening cucumber report HOT 5
- Missing report result - report was not successfully completed
- Cucumber reports are giving 'Publish Cucumber test result reportβ aborted due to exception : java null exception in jenkins HOT 2
- How to run multi features in Jenkins ? Cucumber HOT 1
- using pytest --cucumberjson HOT 2
- java.lang.NoSuchMethodError: org.apache.commons.io.FileUtils.copyInputStreamToFile HOT 1
- Jenkins Build stalls at cucumber reports creation. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cucumber-reporting-jenkins.