Skip to content

[Allure report] For deleteSuccessful option set to true in stepByStepReport - passed test cases in Allure still have screenshots attached #1494

Closed

Description

@AdamOakman

What are you trying to achieve?

Only successful test cases should have screenshots attached in Allure report.

What do you get instead?

Every single test case and step (including passed) has a screenshot attached in Allure report.

Provide test source code if related

Details

  • CodeceptJS version: 2.0.4
  • NodeJS Version: docker
  • Operating System: docker
  • Protractor
  • Configuration file:
    plugins: {
        screenshotOnFail: {
            enabled: true,
            fullPageScreenshots: false
        },
        allure: {
            enabled: true
        },
        autoDelay: {
            enabled: true,
            delayBefore: 100,
            delayAfter: 150
        },
        stepByStepReport: {
            enabled: true,
        }
    },

deleteSuccessful option set to true by default according to documentation

Activity

  1. kobenguyent commented on Feb 8, 2019

    @kobenguyent
    Collaborator
     * ##### Allure Reports
     *
     * If Allure plugin is enabled this plugin attaches each saved screenshot to allure report.
     *
     *
    
  2. changed the title [-][Allure report] For deleteSuccessful option set to false in stepByStepReport - passed test cases in Allure still have screenshots attached[/-] [+][Allure report] For deleteSuccessful option set to truein stepByStepReport - passed test cases in Allure still have screenshots attached[/+] on Feb 8, 2019
  3. changed the title [-][Allure report] For deleteSuccessful option set to truein stepByStepReport - passed test cases in Allure still have screenshots attached[/-] [+][Allure report] For deleteSuccessful option set to true in stepByStepReport - passed test cases in Allure still have screenshots attached[/+] on Feb 8, 2019
  4. AdamOakman commented on Feb 8, 2019

    @AdamOakman
    Author

    @peterngtr Sorry. My bad. I corrected issue summary and description. I had "deleteSuccessful option set to true by default" on my mind because that's how this works I think. Passed test cases and steps inside Allure still have screenshots attached in this case.

  5. kobenguyent commented on Feb 8, 2019

    @kobenguyent
    Collaborator

    So I think currenty, either test passed or failed when you have allure with stepByStep enabled, screenshots are always attached to allure. :)

  6. AdamOakman commented on Feb 8, 2019

    @AdamOakman
    Author

    That's how it is! Shouldn't we make them attached for passed tests only? if below configuration happens
    stepByStepReport: { deleteSuccessful: true, enabled: true }

  7. kobenguyent commented on Feb 8, 2019

    @kobenguyent
    Collaborator

    That combination, I guess yes, a PR is always welcome. :)

  8. kobenguyent commented on Feb 9, 2019

    @kobenguyent
    Collaborator

    @AdamOakman so, screenshotOnFail is enabled by default, you don't need to add this in your config.

    also, I pushed a PR to handle this nicely. More details you can find it here #1496

  9. AdamOakman commented on Feb 14, 2019

    @AdamOakman
    Author

    Thank you @peterngtr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions