/ripe-rainbow

Automation test framework for the RIPE domain

Primary LanguagePythonApache License 2.0Apache-2.0

RIPE Rainbow

Bringing happiness to the RIPE world through testing 🌈

RIPE Rainbow is a simple automation test framework for the RIPE world.

Installation

pip install ripe-rainbow

Execution

rainbow

Configuration

Name Type Default Description
LEVEL str INFO Controls the verbosity level of the attached logger.
SILENT bool False If the test execution should run under silent mode (no stdout from logs).
FILTER str None The filter regex to be used by some of the loaders.
DRIVER str selenium The driver to be used for the interactive mode.
TIMEOUT int 15 The timeout in seconds to be used by default for interactions under the interactive testing mode.
REPEAT int 1 The number of times to repeat the execution of the tests.
TESTS_PATH str . The base path to be used in the loading of the test cases.
PROVISION bool True If the provision operations should be performed.
STACKTRACES bool False If "stacktrace" log should be stored on failure of tests.
STACKTRACES_PATH bool . The base path to be used to save the stacktraces log.
SCREENSHOTS bool False If screenshots should be save on failure of tests.
SCREENSHOTS_PATH bool . The base path to be used to save the screenshots.
STORE_LOGS bool False If the log files from the multiple logs should be store in case of test failure.
LOGS_PATH bool . The base path to be used to save the log files on failure.
SEL_SECURE bool False If the Selenium engine should be executed under a secure approach (should be slower).
SEL_BROWSER str chrome The browser engine that is going to be used by Selenium (eg: chrome, firefox).
SEL_BROWSER_CACHE bool True If the Selenium driver should be with browser cache enabled.
SEL_FIX_PATH bool True If the Selenium driver should try to fix the environment path.
SEL_MAXIMIZED bool False If the Selenium driver should be started in "maximized" (window) mode.
SEL_HEADLESS bool False If the Selenium driver should be started in "headless" (window) mode.
SEL_DEVICE str None If a specific device should be emulated by changing some internal settings (eg: user-agent in usage), possible values include: iphone10, nexus5
SEL_WINDOW_SIZE str 1920x1080 Resolution (in pixels) that the Selenium driver will use for the window.
SEL_PIXEL_RATIO int 1 The pixel ratio that the Selenium driver will use, should be used mostly for device testing.
SEL_MOBILE_EMULATION bool False If the Selenium driver should use the mobile emulation mode (available for Chrome).
SEL_SERVICE_ARGS list [] List of command line args to be passed to the driver service that interacts with the browser.
SEL_POLL_FREQUENCY float None The frequency (in seconds) to run the busy waiting polling operation on the Selenium wait operation.
RIPE_ID_USERNAME str None The username to be used for the RIPE ID authentication.
RIPE_ID_PASSWORD str None The password to be used for the RIPE ID authentication.
Name Type Default Description
RIPE_SUFFIX str None If defined the RIPE product URLs are suffixed with this value (eg: sbx implies https://ripe-pulse-sbx.platforme.com).
RIPE_CORE_URL str http://localhost:8080 The base URL to the RIPE Core instance to be used for tests.
CORE_URL str http://localhost:8080 Same as RIPE_CORE_URL.
RIPE_CORE_USERNAME str root The username of an admin user to be used to access RIPE Core, it is also used in the provision operation.
CORE_USERNAME str root Same as RIPE_CORE_USERNAME.
RIPE_CORE_PASSWORD str root The password of an admin user to be used to access RIPE Core, it is also used in the provision operation.
CORE_PASSWORD str root Same as RIPE_CORE_PASSWORD.
RIPE_RETAIL_URL str http://localhost:8080 The base URL to the RIPE Retail instance to be used for tests.
RETAIL_URL str http://localhost:8080 Same as RIPE_RETAIL_URL.
RIPE_RETAIL_USERNAME str root The username of an admin user to be used to access RIPE Retail, it is also used in the provision operation.
RETAIL_USERNAME str root Same as RIPE_RETAIL_USERNAME.
RIPE_RETAIL_PASSWORD str root The password of an admin user to be used to access RIPE Retail, it is also used in the provision operation.
RETAIL_PASSWORD str root Same as RIPE_RETAIL_PASSWORD.
RETAIL_URL str http://localhost:8080 Same as RIPE_RETAIL_URL.
RIPE_PULSE_URL str http://localhost:3000 The base URL to the RIPE Pulse instance to be used for tests.
PULSE_URL str http://localhost:3000 Same as RIPE_PULSE_URL.
RIPE_COPPER_URL str http://localhost:3000 The base URL to the RIPE Copper instance to be used for tests.
COPPER_URL str http://localhost:3000 Same as RIPE_COPPER_URL.
RIPE_UTIL_VUE_URL str http://localhost:3000 The base URL to the RIPE Util Vue instance to be used for tests.
UTIL_VUE_URL str http://localhost:3000 Same as RIPE_UTIL_VUE_URL.
RIPE_WHITE_URL str http://localhost:3000 The base URL to the RIPE White instance to be used for tests.
WHITE_URL str http://localhost:3000 Same as RIPE_WHITE_URL.

License

RIPE Rainbow is currently licensed under the Apache License, Version 2.0.

Build Automation

Build Status Build Status GitHub Coverage Status PyPi Status License