Class FormcycleEnvironments


  • public final class FormcycleEnvironments
    extends Object
    Main entry point for creating and working with formcycle E2E test environments. Such an environment consists of a servlet container and a fully configured formcycle web app.
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • configureConfigBuilderWithDefaults

        public static void configureConfigBuilderWithDefaults​(IFormcycleEnvironmentConfigBuilder builder)
                                                       throws Exception
        Applies the defaults for a standard formcycle app to the builder.
        Parameters:
        builder - Builder to configure.
        Throws:
        Exception - When the builder could not be configured.
      • configureE2EEnvironment

        public static void configureE2EEnvironment​(de.xima.e2e.test_harness_selenium.environment.api.IE2EEnvironmentConfigBuilder<IFormcycleEnvironmentLifecycleState> builder,
                                                   IFormcycleEnvironmentConfig config)
                                            throws Exception
        Configures a builder for running a formcycle app in the E2E test environment.
        Parameters:
        builder - Builder to configure.
        config - Configuration for the formcycle app.
        Throws:
        Exception - When the builder could not be configured.
      • newDefaultConfig

        public static IFormcycleEnvironmentConfig newDefaultConfig​(URI defaultWarFile)
                                                            throws Exception
        Creates a new configuration with the defaults for a standard formcycle app already applied.
        Parameters:
        defaultWarFile - WAR file to use when no override via a system property was specified.
        Returns:
        A new config with the formcycle default applied.
        Throws:
        Exception - When the configuration could not be created.
      • newDefaultConfigBuilder

        public static IFormcycleEnvironmentConfigBuilder newDefaultConfigBuilder​(URI defaultWarFile)
                                                                          throws Exception
        Creates a new configuration builder with the defaults for a standard formcycle app already applied.
        Parameters:
        defaultWarFile - WAR file to use when no override via a system property was specified.
        Returns:
        A new builder with the formcycle default applied.
        Throws:
        Exception - When the builder could not be configured.
      • newDefaultEnvironment

        public static de.xima.e2e.test_harness_selenium.environment.api.IE2EEnvironment<IFormcycleEnvironmentLifecycleState> newDefaultEnvironment​(URI defaultWarFile)
                                                                                                                                            throws Exception
        Creates a new environment with the defaults for a standard formcycle app already applied.
        Parameters:
        defaultWarFile - WAR file to use when no override via a system property was specified.
        Returns:
        A new environment with the formcycle defaults applied.
        Throws:
        Exception - When the environment could not be created.
      • newEnvironment

        public static de.xima.e2e.test_harness_selenium.environment.api.IE2EEnvironment<IFormcycleEnvironmentLifecycleState> newEnvironment​(IFormcycleEnvironmentConfig config)
                                                                                                                                     throws Exception
        Parameters:
        config - Configuration for the environment.
        Returns:
        Creates and starts a new environment with gthe given configuration.
        Throws:
        Exception - When the environment could not be created or started.
      • newProvisioner

        public static IFormcycleProvisioner newProvisioner​(de.xima.e2e.test_harness_selenium.environment.api.IE2EEnvironment<IFormcycleEnvironmentLifecycleState> environment)
        Creates a new provisioner for setting up the formcycle system before a test case can be run.
        Parameters:
        environment - Current environment with the formcycle app to set up.
        Returns:
        A provisioner for the given environment.
      • newQueryExecutor

        public static IFormcycleQueryExecutor newQueryExecutor​(de.xima.e2e.test_harness_selenium.environment.api.IE2EEnvironment<IFormcycleEnvironmentLifecycleState> environment)
        Creates a new query executor for retrieving data from a running formcycle system.
        Parameters:
        environment - Current environment with the formcycle app to set up.
        Returns:
        A query executor for the given environment.
      • newUriManager

        public static IFormcycleUriManager newUriManager​(de.xima.e2e.test_harness_selenium.environment.api.IE2EEnvironment<IFormcycleEnvironmentLifecycleState> environment,
                                                         FormcycleSetupResult setupResult)
        Creates a URI manager for formcycle URLs with the results of a certain setup result.
        Parameters:
        environment - Current environment with the formcycle app to test.
        setupResult - Setup result obtained by a provisioner.
        Returns:
        A URI manager for the given setup result.