Coder Social home page Coder Social logo

Comments (11)

kingsleyh avatar kingsleyh commented on August 18, 2024

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.

k4124k avatar k4124k commented on August 18, 2024

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.

kingsleyh avatar kingsleyh commented on August 18, 2024

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.

surendrakashyap avatar surendrakashyap commented on August 18, 2024

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.

kingsleyh avatar kingsleyh commented on August 18, 2024

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.

surendrakashyap avatar surendrakashyap commented on August 18, 2024

Thanks! Please drop a note.

from cucumber-reporting.

surendrakashyap avatar surendrakashyap commented on August 18, 2024

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.

kingsleyh avatar kingsleyh commented on August 18, 2024

fixed in pending release

from cucumber-reporting.

surendrakashyap avatar surendrakashyap commented on August 18, 2024

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.

kingsleyh avatar kingsleyh commented on August 18, 2024

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.

surendrakashyap avatar surendrakashyap commented on August 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.