Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-25966

Add automated test for "Export a large number of pages as XAR"

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      The manual test is here: Export a large number of pages as XAR

      Existing automated coverage

      • XARExportIT#exportXARLotOfSelectedFiles: More actions > Export > XAR modal on a page with 50+ children across tree pagination, everything selected; asserts only the form action and pages/excludes values, not the produced XAR.
      • XARExportIT#exportXARAll: Export as XAR modal with the default selection; asserts the posted form values (xwiki:Foo.%).
      • XARImportIT#exportImportPartialWiki: Downloads a XAR (export action POST) and asserts the ZIP entry names; export started from the Administration Export section, not from the Home page modal.
      • ExportActionTest#exportPartialXAR: Unit test: the export action builds a partial XAR with the requested package properties.

      Missing automated coverage

      • As Admin with "Display Hidden Pages" enabled in the profile preferences, go to the Home page (Main.WebHome) and open More actions > Export > Other formats > XAR with the default selection
      • Submit the export and download the produced XAR (fetch it with the posted form parameters, as XARImportIT#exportXAR does)
      • Open the XAR and assert it contains package.xml and one entry per page of the exported hierarchy, including hidden pages, and that the count matches the pages of the wiki under Home

      Suggested location: xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-test/xwiki-platform-flamingo-skin-test-docker/src/test/it/org/xwiki/flamingo/test/docker/XARExportIT.java

      Found by comparing the most-run manual tests (XWiki 16.x-18.x runs) against the automated tests on master (7c8ae46f525).

      Attachments

        Activity

          People

            vmassol Vincent Massol
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: