Comments (7)
I have no idea and information you provided are not very helpful
from cucumber-reporting-jenkins.
I think the cucumber plugin version 2.0.0 is not compatible with jenkins 1.516. So i downgraded the version of the cucumber reports plugin to 0.2.0. The other jars i am using in my pom are
cucumber-core 1.2.0
cucumber-html 0.2.3
cucumber-java 1.2.0
cucumber-junit 1.2.0
cucumber-jvm-deps 1.0.3
Now i am getting the following exception while generating the report:
[CucumberReportPublisher] Generating HTML reports
[CucumberReportPublisher] there was an error generating the reports: java.lang.NullPointerException
net.masterthought.cucumber.ReportBuilder.getBuildStatus(ReportBuilder.java:199)
net.masterthought.jenkins.CucumberReportPublisher.perform(CucumberReportPublisher.java:142)
hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776)
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:960)
hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726)
hudson.model.Run.execute(Run.java:1601)
hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:486)
hudson.model.ResourceController.execute(ResourceController.java:88)
hudson.model.Executor.run(Executor.java:241)
Build step 'Publish cucumber results as a report' changed build result to FAILURE
Finished: FAILURE
from cucumber-reporting-jenkins.
FYI...There is only one json file produced in the target directory and it is valid as i checked it
from cucumber-reporting-jenkins.
Please find the json below:
[
{
"id": "date-validation-on-transactions",
"description": "",
"name": "Date validation on transactions",
"keyword": "Feature",
"line": 1,
"elements": [
{
"id": "date-validation-on-transactions;1-opt-trades-with-all-expirydate-before-settlementdate.",
"description": "",
"name": "1 opt trades with all ExpiryDate before SettlementDate.",
"keyword": "Scenario",
"line": 3,
"steps": [
{
"result": {
"duration": 4365812000,
"status": "passed"
},
"name": "a clean database",
"keyword": "Given ",
"line": 5,
"match": {
"location": "SRFileUploadStepdefs.a_clean_database()"
}
},
{
"result": {
"duration": 7604000,
"status": "passed"
},
"name": "I have All SR Roles package and account mode",
"keyword": "And ",
"line": 7,
"match": {
"location": "DateValidationStepdefs.i_have_All_SR_Roles_package_and_account_mode()"
}
},
{
"result": {
"duration": 1219016000,
"status": "passed"
},
"name": "I send below file on SR.FILE.UPLOAD",
"keyword": "When ",
"line": 9,
"match": {
"location": "UploadUtilsStepdefs.I_send_below_file_on_FileUpload_Queue(FeatureParams\u003e)"
},
"rows": [
{
"cells": [
"fileFormat",
"fileName",
"filePath"
],
"line": 10
},
{
"cells": [
"Excel",
"Excel_ExpiryDate_TEST.xlsx",
"/com/sr/sds/test/excel/"
],
"line": 11
}
]
},
{
"result": {
"duration": 3863486000,
"status": "passed"
},
"name": "the transaction should have no errors",
"keyword": "Then ",
"line": 14,
"match": {
"location": "DateValidationStepdefs.the_transaction_should_have_no_error(FeatureParams\u003e)"
},
"rows": [
{
"cells": [
"custRefNumber",
"accountCode"
],
"line": 15
},
{
"cells": [
"GHERXT-OPT-01",
"000001"
],
"line": 16
}
]
},
{
"result": {
"duration": 4777771000,
"status": "passed"
},
"name": "a clean database",
"keyword": "Then ",
"line": 18,
"match": {
"location": "SRFileUploadStepdefs.a_clean_database()"
}
}
],
"type": "scenario"
}
],
"uri": "features/com/sr/sds/sdt/validation/date/DateValidationScenarios.feature"
}
]
from cucumber-reporting-jenkins.
I can generate report from above JSON. Don't downgrade because older versions are not supported
from cucumber-reporting-jenkins.
I am also facing the NullPointerException issue with version 0.0.23 with jenkins version 1.516.
Can you please tell me which version of cucumber report plugin works with jenkins 1.516?
from cucumber-reporting-jenkins.
@damianszczepanik Version 2.0.0 of the plugin with jenkins 1.516 gives the exception in my original post.
FATAL: org.apache.commons.io.FileUtils.copyInputStreamToFile(Ljava/io/InputStream;Ljava/io/File;)V
java.lang.NoSuchMethodError:
I am not in a position to upgrade the jenkins version since it is shared across projects.
Can you please let me know what is the issue with version 2.0.0 with jenkins 1.516?
Is there a workaround because neither version 0.0.23 nor version 2.0.0 is working for me?
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
- HTTP ERROR 404 Problem accessing /job/Project_Name/cucumber-html-reports/. Reason:Not Found HOT 16
- 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.