Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scenario data lost when using multiple reporting plugins #1349

Closed
mkopec3 opened this issue Feb 25, 2019 · 5 comments
Closed

Scenario data lost when using multiple reporting plugins #1349

mkopec3 opened this issue Feb 25, 2019 · 5 comments
Labels

Comments

@mkopec3
Copy link

mkopec3 commented Feb 25, 2019

Expected behavior

When using html-report & json-report reporting plugins together, json-report should contain scenarios data, like that:

"scenarios": [
                                {
                                        "scenarioHeading": "Vowel counts in single word",
                                        "tags": [
                                                "single word"
                                        ],
                                        "executionTime": 0,
                                        "executionStatus": "pass",
                                        "contexts": [
                                                {
                                                        "itemType": "step",
                                                        "stepText": "Vowels in English language are \"aeiou\".",
                                                        "table": null,
                                                        "beforeStepHookFailure": null,
                                                        "afterStepHookFailure": null,
                                                        "result": {
                                                                "status": "pass",
                                                                "stackTrace": "",
                                                                "screenshot": "",
                                                                "errorMessage": "",
                                                                "executionTime": 0,
                                                                "skippedReason": "",
                                                                "messages": [
                                                                        "Given vowels are aeiou"
                                                                ],
                                                                "errorType": "assertion"
                                                        }
                                                }
                                        ]

Actual behavior

No scenarios section within json-report, when it is used together with html-report plugin

Steps to reproduce

  1. mkdir /tmp/gauge_report_issue && cd /tmp/gauge_report_issue
  2. gauge init python
  3. Set manifest.json as below:
{
  "Language": "python",
  "Plugins": [
    "html-report",
    "json-report"
  ]
}
  1. gauge run specs/
  2. less reports/json-report/result.json <-- Here you can observe that there're no scenario data in the report

When you disable html-report in manifest.json like that:

{
  "Language": "python",
  "Plugins": [
    "json-report"
  ]
}

and run "gauge run specs/" again, result.json will be generated properly

Gauge version

mkopec3@sabian:~$ gauge -v
Gauge version: 1.0.5
Commit Hash: 9c38118

Plugins
-------
flash (0.0.1)
html-report (4.0.7)
json-report (0.2.2)
python (0.3.5)
screenshot (0.0.1)
xml-report (0.2.1)
@nehashri
Copy link
Contributor

nehashri commented Feb 27, 2019

requires getgauge/xml-report#16

@gaugebot
Copy link

gaugebot bot commented Mar 1, 2019

The fix should be available in nightly >= 1-3-2019

@mkopec3
Copy link
Author

mkopec3 commented Mar 2, 2019

Hi, I can't find nightly-1-3-2019 build anywhere :(
Could you tell me from where it can be downloaded?
Anyway, thank you for the quick response on this issue 👍

@NivedhaSenthil
Copy link
Member

Thanks for pointing it out, I could see the nightly is not generated because of some build issues. Will be updating the nightly version soon once fixed.

@Debashis9012
Copy link
Contributor

Json report contains are correctly displaying without loosing any data. This issue has been verified and found fixed. Tested with the below version.

Gauge version: 1.0.5.nightly-2019-03-20
Commit Hash: 7aaf683
Plugins
-------
python (0.3.6.nightly-2019-02-14)
html-report (4.0.8.nightly-2019-03-08)
java (0.7.2.nightly-2019-03-24)
json-report (0.3.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

4 participants