Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-12742

Make webdriver screenshots relevant when using After JUnit annotation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.7.3
    • Fix Version/s: 5.8
    • Component/s: Tests

      Description

      Let's say you write a web driver test with a JUnit After annotation to make sure that your test remove any data it has created even if the test fails. That's nice.

      Webdriver takes a screenshot when it fails which is useful to quickly understand why your test failed.

      The problem is when using After annotation, the screenshot is taken at the very end of the test and we only see the logout page.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: