Comments (11)
Hi
Your post did not give me a lot of context around your issue - so I'm guessing what you mean is that the cucumber-reporting didn't generate an html report that included part of the json you have pasted below? Please could you paste your full json file into the diagnostic tool and send me the link so I can investigate: http://cucumber-reporting.masterthought.net/
Thanks
--Kingsley
On 21 Mar 2013, at 03:34, MIC [email protected] wrote:
part of json report, like this:
{
"result": {
"duration": 6215536732,
"status": "passed"
},
"name": "在360综合搜索中搜索"Error"",
"keyword": "当",
"line": 26,
"match": {
"arguments": [
{
"val": "Error",
"offset": 12
}
],
"location": "360Search_Steps.groovy:24"
},
"output": [
"some text display on report!"
]
}—
Reply to this email directly or view it on GitHub.
from cucumber-reporting.
cucumber allow to write text to report.
like this:
(Scenario)sr.write("some text display on report!");
then i got the json report like this:
[{"id":"测试中文","description":"调戏各种搜索网站","name":"测试中文","keyword":"功能","line":2,"elements":[{"id":"测试中文;360综合搜索","tags":[{"name":"@360SO","line":6}],"description":"","name":"360综合搜索","keyword":"场景大纲","line":7,"steps":[{"name":"在360综合搜索中搜索"\u003c搜索词\u003e"","keyword":"当","line":8},{"name":"360搜索结果显示的第一条结果为"\u003c结果\u003e"","keyword":"那么","line":9}],"examples":[{"id":"测试中文;360综合搜索;","description":"","name":"","keyword":"例子","line":10,"rows":[{"id":"测试中文;360综合搜索;;1","cells":["搜索词","结果"],"line":11},{"id":"测试中文;360综合搜索;;2","cells":["百度文库","百度文库"],"line":12},{"id":"测试中文;360综合搜索;;3","cells":["Google","Google"],"line":13}]}],"type":"scenario_outline"},{"id":"测试中文;360综合搜索;;2","tags":[{"name":"@360SO","line":6}],"description":"","name":"360综合搜索","keyword":"场景大纲","line":12,"steps":[{"result":{"duration":7149570066,"status":"passed"},"name":"在360综合搜索中搜索"百度文库"","keyword":"当","line":8,"match":{"arguments":[{"val":"百度文库","offset":12}],"location":"360Search_Steps.groovy:24"},"output":["some text display on report!"],"matchedColumns":[0]},{"result":{"duration":359381853,"status":"passed"},"name":"360搜索结果显示的第一条结果为"百度文库"","keyword":"那么","line":9,"match":{"arguments":[{"val":"百度文库","offset":17}],"location":"360Search_Steps.groovy:35"},"output":["\u003cdiv\u003esome other text\u003c/div\u003e"],"matchedColumns":[1]}],"type":"scenario"},{"id":"测试中文;360综合搜索;;3","tags":[{"name":"@360SO","line":6}],"description":"","name":"360综合搜索","keyword":"场景大纲","line":13,"steps":[{"result":{"duration":5016132499,"status":"passed"},"name":"在360综合搜索中搜索"Google"","keyword":"当","line":8,"match":{"arguments":[{"val":"Google","offset":12}],"location":"360Search_Steps.groovy:24"},"output":["some text display on report!"],"matchedColumns":[0]},{"result":{"duration":305000604,"status":"passed"},"name":"360搜索结果显示的第一条结果为"Google"","keyword":"那么","line":9,"match":{"arguments":[{"val":"Google","offset":17}],"location":"360Search_Steps.groovy:35"},"output":["\u003cdiv\u003esome other text\u003c/div\u003e"],"matchedColumns":[1]}],"type":"scenario"}],"uri":"abcd.feature","comments":[{"value":"# language: zh-CN","line":1}]}]
from cucumber-reporting.
Ah I understand now. I will add this in the next release - which will be early next week
Sent from my iPad
On 22 Mar 2013, at 02:41, MIC [email protected] wrote:
cucumber allow to write text to report.
like this:(Scenario)sr.write("some text display on report!");
then i got the json report like this:
[{"id":"测试中文","description":"调戏各种搜索网站","name":"测试中文","keyword":"功能","line":2,"elements":[{"id":"测试中文;360综合搜索","tags":[{"name":"@360SO","line":6}],"description":"","name":"360综合搜索","keyword":"场景大纲","line":7,"steps":[{"name":"在360综合搜索中搜索"\u003c搜索词\u003e"","keyword":"当","line":8},{"name":"360搜索结果显示的第一条结果为"\u003c结果\u003e"","keyword":"那么","line":9}],"examples":[{"id":"测试中文;360综合搜索;","description":"","name":"","keyword":"例子","line":10,"rows":[{"id":"测试中文;360综合搜索;;1","cells":["搜索词","结果"],"line":11},{"id":"测试中文;360综合搜索;;2","cells":["百度文库","百度文库"],"line":12},{"id":"测试中文;360综合搜索;;3","cells":["Google","Google"],"line":13}]}],"type":"scenario_outline"},{"id":"测试中文;360综合搜索;;2","tags":[{"name":"@360SO","line":6}],"description":"","name":"360综合搜索","keyword":"场景大纲","line":12,"steps":[{"result":{"duration":7149570066,"status":"passed"},"name":"在360综合搜索中搜索"百度文库"","keyword":"当","line":8,"match":{"arguments":[{"val":"百度文库","offset":12}],"location":"360Search_Steps.groovy:24"},"output":["some text display on report!"],"matchedColumns":[0]},{"result":{"duration":359381853,"status":"passed"},"name":"360搜索结果显示的第一条结果为"百度文库"","keyword":"那么","line":9,"match":{"arguments":[{"val":"百度文库","offset":17}],"location":"360Search_Steps.groovy:35"},"output":["\u003cdiv\u003esome other text\u003c/div\u003e"],"matchedColumns":[1]}],"type":"scenario"},{"id":"测试中文;360综合搜索;;3","tags":[{"name":"@360SO","line":6}],"description":"","name":"360综合搜索","keyword":"场景大纲","line":13,"steps":[{"result":{"duration":5016132499,"status":"passed"},"name":"在360综合搜索中搜索"Google"","keyword":"当","line":8,"match":{"arguments":[{"val":"Google","offset":12}],"location":"360Search_Steps.groovy:24"},"output":["some text display on report!"],"matchedColumns":[0]},{"result":{"duration":305000604,"status":"passed"},"name":"360搜索结果显示的第一条结果为"Google"","keyword":"那么","line":9,"match":{"arguments":[{"val":"Google","offset":17}],"location":"360Search_Steps.groovy:35"},"output":["\u003cdiv\u003esome other text\u003c/div\u003e"],"matchedColumns":[1]}],"type":"scenario"}],"uri":"abcd.feature","comments":[{"value":"# language: zh-CN","line":1}]}]—
Reply to this email directly or view it on GitHub.
from cucumber-reporting.
Hi King,
I am using (Scenario)sr.write("TEXT"); quite a bit but unfortunatelly JSON report does not show- TEXT in Jenkins while viewing the data via report plugin. Is this fix done? Is there any work-around? Would the fix need reploy of cumber-jenkins plugin in Jenkins or can I manage this at project POM level? Is there any work-around? I can not use "embedding" since it won't support only images not "text or XML.
I would really appreciate your response, I am pushing Cucumber firm-wide and "reporting" and seeing artifact data is big part of "selling point" to non-tech users.
Thanks a lot in advance for your help.
from cucumber-reporting.
hi - I haven't finished the fix yet - but I will try to release at the weekend with the fix - you will have to take another cucumber-jenkins plugin when I release it. But you should be able to upgrade via the jenkins update centre when its ready.
--K
On 10 Apr 2013, at 14:31, surendrakashyap [email protected] wrote:
Hi King,
I am using (Scenario)sr.write("TEXT"); quite a bit but unfortunatelly JSON report does not show- TEXT in Jenkins while viewing the data via report plugin. Is this fix done? Is there any work-around? Would the fix need reploy of cumber-jenkins plugin in Jenkins or can I manage this at project POM level? Is there any work-around? I can not use "embedding" since it won't support only images not "text or XML.
I would really appreciate your response, I am pushing Cucumber firm-wide and "reporting" and seeing artifact data is big part of "selling point" to non-tech users.
Thanks a lot in advance for your help.
—
Reply to this email directly or view it on GitHub.
from cucumber-reporting.
Thanks! Please drop a note.
from cucumber-reporting.
I will be looking for your note this weekend so I can send my Jenkins admin to update the plugin. I would hate right write work-around. What do I have to become contributor to this effort? I would love to see the cucumber reporting in sync with JSONFormatter of cucumber-jvm. Good reporting is the only way for firm-wide adoptation. Thanks again for great work.
from cucumber-reporting.
fixed in pending release
from cucumber-reporting.
Thanks, I am not fully educated on release process for git, will it be available for download by Sunday night? if so I will send a note to Jenkins team to apply update.
Thanks
Sent from my iPhone
On Apr 13, 2013, at 6:26 PM, Kingsley Hendrickse [email protected] wrote:
fixed in pending release
—
Reply to this email directly or view it on GitHub.
from cucumber-reporting.
Hi version 0.0.21 has been released now
Sent from my iPad
On 14 Apr 2013, at 01:16, surendrakashyap [email protected] wrote:
Thanks, I am not fully educated on release process for git, will it be available for download by Sunday night? if so I will send a note to Jenkins team to apply update.
Thanks
Sent from my iPhone
On Apr 13, 2013, at 6:26 PM, Kingsley Hendrickse [email protected] wrote:
fixed in pending release
—
Reply to this email directly or view it on GitHub.
—
Reply to this email directly or view it on GitHub.
from cucumber-reporting.
Thank you, I appreciate a lot. I have requested Jenkins team to apply, Monday I am hoping to review report with management, I hope patch is applied, I would like to display additional XML as additional artifact into cucumber JSON report.
Thx again, looks like you worker all weekend.
Sent from my iPhone
On Apr 14, 2013, at 3:32 PM, Kingsley Hendrickse [email protected] wrote:
Hi version 0.0.21 has been released now
Sent from my iPad
On 14 Apr 2013, at 01:16, surendrakashyap [email protected] wrote:
Thanks, I am not fully educated on release process for git, will it be available for download by Sunday night? if so I will send a note to Jenkins team to apply update.
Thanks
Sent from my iPhone
On Apr 13, 2013, at 6:26 PM, Kingsley Hendrickse [email protected] wrote:
fixed in pending release
—
Reply to this email directly or view it on GitHub.
—
Reply to this email directly or view it on GitHub.
—
Reply to this email directly or view it on GitHub.
from cucumber-reporting.
Related Issues (20)
- Not able to see cucumber-html reporting after execution the tests HOT 5
- Build Execution Date on horizontal axis HOT 3
- Error: Action failed with "The process '/usr/bin/git' failed with exit code 1" HOT 1
- Cucumber fails build report with 0 tests HOT 1
- Qualifier missing from the report-feature html HOT 1
- Not able to log in cucumber-reporting HOT 1
- Failed to parse plugin descriptor for net.masterthought:cucumber-reporting:5.7.6 HOT 1
- Generate Cucumber Report with Tags Excluded HOT 1
- Reporting url changed HOT 3
- Maven cucumber reporting stopped working on update to Selenium 4.14.1 from Selenium 4.13.0 HOT 2
- How to add execution duration at scenario level in cucumber reports HOT 3
- JSON File Limit HOT 1
- Cucumber html report screen is blur and couldn't able to access the report HOT 1
- Update Qualifiers in reports when cucumber json output has information on OS and devices HOT 9
- Karate framework cannot deserialize cucumber json.feature file
- How to customize json report generated by cucumber to feed it to this cucumber-reporting tool HOT 3
- How to merge 2 json files into one html report HOT 2
- Any Options to Disabled of Hide Animations on Dashboard Screen ?
- LICENSE error reported by Snyk scan HOT 2
- Is it possible to not create html file for each tag on the project? HOT 1
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.