dbdff464d4
Renamed tox virtualenv for UI tests from 'tests'(incorrect name for tox plug-in) to 'uitests' Fixed minor notes in patch-set: https://review.openstack.org/#/c/56235/14 Change-Id: If29d598e05c6ec6b957103d524b429d5cb97e812
55 lines
1.7 KiB
ReStructuredText
55 lines
1.7 KiB
ReStructuredText
Savanna Dashboard Selenium Tests
|
|
=====================================
|
|
|
|
|
|
Main goal of Selenium Tests
|
|
----------
|
|
|
|
Selenium tests for Savanna Dashboard are designed to check the correctness of the Savanna Dashboard Horizon plug-in.
|
|
|
|
|
|
How to run UI tests:
|
|
----------
|
|
|
|
It's assumed that savanna and horizon are already installed and running.
|
|
|
|
Information about installation and start of savanna and horizon can be found on the savanna site
|
|
http://docs.openstack.org/developer/savanna/#user-guide
|
|
in tabs Savanna Installation Guide and Savanna UI Installation Guide.
|
|
|
|
1. Go to savanna dashboard path.
|
|
2. Create config file for selenium tests - `savannadashboard/tests/configs/config.py`.
|
|
You can take a look at the sample config file - `savannadashboard/tests/configs/config.py.sample`.
|
|
All values used in `savannadashboard/tests/configs/parameters.py` file are
|
|
defaults, so, if they are applicable for your environment then you can skip
|
|
config file creation.
|
|
|
|
3. Install virtual framebuffer X server for X Version 11 (Xvfb):
|
|
sudo apt-get -y install xvfb
|
|
|
|
4. Install Firefox:
|
|
sudo add-apt-repository ppa:ubuntu-mozilla-security/ppa
|
|
sudo apt-get update
|
|
sudo apt-get install firefox libstdc++5
|
|
|
|
5. To run ui tests you should use the corresponding tox env: `tox -e tests`.
|
|
If need to run only one test module, use:
|
|
|
|
tox -e tests -- -a tags='<module_name>'
|
|
|
|
<module_name> may be equal 'cluster', 'cluster_template', 'image_registry', 'node_group_template', 'image_registry', 'vanilla', 'hdp'
|
|
It's full list of actual modules.
|
|
|
|
|
|
Coverage:
|
|
----------
|
|
|
|
-Clusters
|
|
-Cluster templates
|
|
-Node group templates
|
|
-Image registry
|
|
-Data sources
|
|
-Job binaries
|
|
-Jobs
|
|
-Job executions
|