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

Rework server functional tests

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2025.x
    • Component/s: Tests
    • Release Notes Summary:
      Reworked functional tests to remove Selenium WebDriver from the dependencies.
    • Tags:
    • Upgrade notes:
      Hide

      Selenium WebDriver was completely removed from the stack:

      • The few functional tests remaining on the server and some packages were reworked to rely on a HTTP client.
      • No more browser tests nor screenshots in case of failure.

      The nuxeo-functional-tests module was moved from server to ftests.

      Removed the following dependencies:

      <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-api</artifactId>
      </dependency>
      <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-support</artifactId>
      </dependency>
      <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-firefox-driver</artifactId>
      </dependency>
      <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-ie-driver</artifactId>
      </dependency>
      <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-chrome-driver</artifactId>
      </dependency>
      <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>htmlunit-driver</artifactId>
      </dependency>
      <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>htmlunit</artifactId>
      </dependency>
      <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-server-standalone</artifactId>
      </dependency>
      <dependency>
        <groupId>net.jsourcerer.webdriver</groupId>
        <artifactId>JSErrorCollector</artifactId>
      </dependency>
      <dependency>
        <groupId>net.lightbody.bmp</groupId>
        <artifactId>browsermob-proxy</artifactId>
      </dependency>
      

      Removed the following Java packages in nuxeo-functional-tests:

      org.nuxeo.functionaltests.contentView
      org.nuxeo.functionaltests.drivers
      org.nuxeo.functionaltests.forms
      org.nuxeo.functionaltests.fragment
      org.nuxeo.functionaltests.pages
      org.nuxeo.functionaltests.proxy
      org.nuxeo.functionaltests.shibboleth
      

      and most of the classes in the org.nuxeo.functionaltests package.

      Most of the removed code was used for JSF UI, which is no more released in 2025.

      Show
      Selenium WebDriver was completely removed from the stack: The few functional tests remaining on the server and some packages were reworked to rely on a HTTP client. No more browser tests nor screenshots in case of failure. The nuxeo-functional-tests module was moved from server to ftests . Removed the following dependencies: <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-api</artifactId> </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-support</artifactId> </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-firefox-driver</artifactId> </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-ie-driver</artifactId> </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-chrome-driver</artifactId> </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>htmlunit-driver</artifactId> </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>htmlunit</artifactId> </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-server-standalone</artifactId> </dependency> <dependency> <groupId>net.jsourcerer.webdriver</groupId> <artifactId>JSErrorCollector</artifactId> </dependency> <dependency> <groupId>net.lightbody.bmp</groupId> <artifactId>browsermob-proxy</artifactId> </dependency> Removed the following Java packages in nuxeo-functional-tests : org.nuxeo.functionaltests.contentView org.nuxeo.functionaltests.drivers org.nuxeo.functionaltests.forms org.nuxeo.functionaltests.fragment org.nuxeo.functionaltests.pages org.nuxeo.functionaltests.proxy org.nuxeo.functionaltests.shibboleth and most of the classes in the org.nuxeo.functionaltests package. Most of the removed code was used for JSF UI, which is no more released in 2025.
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #122, nxplatform #123
    • Story Points:
      5

      Description

      With Nuxeo JSF UI not being maintained and released for the LTS 2025, we can rework how functional tests are done within the Nuxeo Server.

      First, the nuxeo-functional-tests can be cleaned up by removing all classes strictly related to the Nuxeo JSF UI package.

      Then, we can either:

      • upgrade the current Selenium/Webdriver stack to a newer version
      • or change the way we are doing functional tests in the Nuxeo Server by using more recent libraries.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: