Class FormcycleProvisioner

    • Constructor Detail

      • FormcycleProvisioner

        public FormcycleProvisioner​(de.xima.e2e.test_harness_selenium.environment.api.IE2EEnvironment<IFormcycleEnvironmentLifecycleState> environment)
        Creates a new provisioner for a formcycle app environment.
        Parameters:
        environment - E2E environment for the formcycle app.
    • Method Detail

      • combine

        public IFormcycleAppState combine​(Iterable<IFormcycleProvisionAction> actions)
                                   throws de.xima.e2e.test_harness_selenium.common.exception.TestCaseSetupFailedException
        Description copied from interface: IFormcycleProvisioner
        Runs multiple setup actions and returns the combined result.
        Specified by:
        combine in interface IFormcycleProvisioner
        Parameters:
        actions - Actions to run.
        Returns:
        Context with data about the state of the formcycle app after the setup.
        Throws:
        de.xima.e2e.test_harness_selenium.common.exception.TestCaseSetupFailedException - When any of the actions failed.
      • createNewDefaultClient

        public IFormcycleAppState createNewDefaultClient​(IExternalClientServices services)
                                                  throws de.xima.e2e.test_harness_selenium.common.exception.TestCaseSetupFailedException
        Description copied from interface: IFormcycleProvisioner
        Creates a new default tenant with default settings, similar to how a new tenant would be created in the UI.
        Specified by:
        createNewDefaultClient in interface IFormcycleProvisioner
        Parameters:
        services - External services to use for the new tenant.
        Returns:
        Context with data about the created tenant.
        Throws:
        de.xima.e2e.test_harness_selenium.common.exception.TestCaseSetupFailedException - When the tenant could not be created.
      • createSystem

        public IFormcycleAppState createSystem()
                                        throws de.xima.e2e.test_harness_selenium.common.exception.TestCaseSetupFailedException
        Description copied from interface: IFormcycleProvisioner
        Ensures the formcycle system is up and running, but does not create any tenants.
        Specified by:
        createSystem in interface IFormcycleProvisioner
        Returns:
        Context with data about the performed setup.
        Throws:
        de.xima.e2e.test_harness_selenium.common.exception.TestCaseSetupFailedException - When the system could not be prepared.
      • importClient

        public IFormcycleAppState importClient​(URI pathToExportDir,
                                               IExternalClientServices services)
                                        throws de.xima.e2e.test_harness_selenium.common.exception.TestCaseSetupFailedException
        Description copied from interface: IFormcycleProvisioner
        Reads a tenant export file and creates a new tenant with the data from that export file.
        Specified by:
        importClient in interface IFormcycleProvisioner
        Parameters:
        pathToExportDir - Path to the directory containing the tenant export.
        services - External services to use for the new tenant.
        Returns:
        Context with data about the imported data.
        Throws:
        de.xima.e2e.test_harness_selenium.common.exception.TestCaseSetupFailedException - When the tenant could not be imported.
      • importProject

        public IFormcycleAppState importProject​(URI pathToExportDir,
                                                Long tenantId,
                                                IExternalClientServices services)
                                         throws de.xima.e2e.test_harness_selenium.common.exception.TestCaseSetupFailedException
        Description copied from interface: IFormcycleProvisioner
        Reads a project export file, creates a new tenant and import the project contained in the export file.
        Specified by:
        importProject in interface IFormcycleProvisioner
        Parameters:
        pathToExportDir - Either a URI pointing to the project export file itself, or a path to the directory containing the project export file named project-export.zip.
        tenantId - ID of the tenant where to create the project. When null, a new tenant is created.
        services - External services to use for the new tenant.
        Returns:
        Context with data about the imported data.
        Throws:
        de.xima.e2e.test_harness_selenium.common.exception.TestCaseSetupFailedException - When the project could not be imported.
      • installClientPlugin

        public IFormcycleAppState installClientPlugin​(URI pathToPluginDir,
                                                      Long tenantId,
                                                      Properties properties)
                                               throws de.xima.e2e.test_harness_selenium.common.exception.TestCaseSetupFailedException
        Description copied from interface: IFormcycleProvisioner
        Installs a plugin in the running formcycle application.
        Specified by:
        installClientPlugin in interface IFormcycleProvisioner
        Parameters:
        pathToPluginDir - Either a URI pointing to the JAR file itself, or a URI pointing to the directory with the plugin.json descriptor.
        tenantId - ID of the tenant scope where the plugin should be installed. When null, a new tenant is created.
        properties - Optional properties for the plugin.
        Returns:
        Context with data about the imported plugin.
        Throws:
        de.xima.e2e.test_harness_selenium.common.exception.TestCaseSetupFailedException - When the plugin could not be installed.