def __init__(self, test_labels, options): ''' Store the server. ''' # Call super super(Task, self).__init__(test_labels, options) # Create the server self.server = Server(ServerConfig(all_config_files(options)))
def __init__(self, test_labels, options): ''' Store the environment configuration. ''' # Call super super(Task, self).__init__(test_labels, options) # Get the environment selenium_driver = options.get('selenium_driver') # Check if an environment is provided if not selenium_driver: # Not provided, raise raise ValueError('please provide a driver environment with the --selenium-driver option') # Get the global environments variable containing the SELENIUM environment global env # Store the environment env = DriverConfig(all_config_files(options)).getenv(selenium_driver)
def __init__(self, test_labels, options): """ Store the environment configuration. """ # Call super super(Task, self).__init__(test_labels, options) # Get the environment selenium_driver = options.get("selenium_driver") # Check if an environment is provided if not selenium_driver: # Not provided, raise raise ValueError("please provide a driver environment with the --selenium-driver option") # Get the global environments variable containing the SELENIUM environment global env # Store the environment env = DriverConfig(all_config_files(options)).getenv(selenium_driver)