Difference between revisions of "Sahara/UItests"
(Savanna Dashboard Selenium Tests) |
m (Sergey Lukjanov moved page Savanna/UItests to Sahara/UItests: Savanna project was renamed due to the trademark issues.) |
||
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
===Main goal of Selenium Tests:=== | ===Main goal of Selenium Tests:=== | ||
− | Selenium tests for Savanna Dashboard designed to check the quality of plug-in Savanna Dashboard for the Horizon. | + | Selenium tests for Savanna Dashboard designed to check the quality of plug-in [https://github.com/openstack/savanna-dashboard Savanna Dashboard] for the [https://github.com/openstack/horizon Horizon]. |
− | |||
=== How to run UI tests: === | === How to run UI tests: === | ||
− | It 's assumed that the savanna and horizon is already installed and running. | + | It 's assumed that the savanna and horizon is already installed and running.<br /> |
− | Information for installation and start of savanna and horizon can be found on a savanna site in tabs Savanna Installation Guide and Savanna UI Installation Guide. | + | Information for installation and start of savanna and horizon can be found on a savanna site <br /> |
− | Go to savanna dashboard path. | + | in tabs Savanna Installation Guide and Savanna UI Installation Guide.<br /> |
− | Create config file for selenium tests - `savannadashboard/tests/configs/config.py`. | + | Go to savanna dashboard path.<br /> |
− | You can take a look at the sample config file - `savannadashboard/tests/configs/config.py.sample`. | + | Create config file for selenium tests - `savannadashboard/tests/configs/config.py`.<br /> |
− | All values used in `savannadashboard/tests/configs/parameters.py` file are | + | You can take a look at the sample config file - `savannadashboard/tests/configs/config.py.sample`.<br /> |
− | defaults, so, if they are applicable for your environment then you can skip | + | All values used in `savannadashboard/tests/configs/parameters.py` file are<br /> |
− | config file creation. | + | defaults, so, if they are applicable for your environment then you can skip<br /> |
− | Install virtual framebuffer X server for X Version 11 (Xvfb): | + | config file creation.<br /> |
− | ''sudo apt-get -y install xvfb'' | + | Install virtual framebuffer X server for X Version 11 (Xvfb):<br /> |
− | Install Firefox: | + | ''sudo apt-get -y install xvfb''<br /> |
− | ''sudo add-apt-repository ppa:ubuntu-mozilla-security/ppa | + | Install Firefox:<br /> |
− | sudo apt-get update | + | ''sudo add-apt-repository ppa:ubuntu-mozilla-security/ppa''<br /> |
− | sudo apt-get install firefox libstdc++5'' | + | ''sudo apt-get update''<br /> |
− | To run ui tests you should use the corresponding tox env: `tox -e tests`. | + | ''sudo apt-get install firefox libstdc++5''<br /> |
− | If need to run only one test module, use: | + | To run ui tests you should use the corresponding tox env: `tox -e tests`.<br /> |
− | ''tox -e tests -- -a tags='<module_name>''' | + | If need to run only one test module, use:<br /> |
− | <module_name> may be equal 'cluster', 'cluster_template', 'image_registry', 'node_group_template' or 'image_registry' | + | ''tox -e tests -- -a tags='<module_name>'''<br /> |
− | + | <module_name> may be equal 'cluster', 'cluster_template', 'image_registry', 'node_group_template' or 'image_registry'<br /> | |
=== Coverage: === | === Coverage: === |
Latest revision as of 15:41, 7 March 2014
Main goal of Selenium Tests:
Selenium tests for Savanna Dashboard designed to check the quality of plug-in Savanna Dashboard for the Horizon.
How to run UI tests:
It 's assumed that the savanna and horizon is already installed and running.
Information for installation and start of savanna and horizon can be found on a savanna site
in tabs Savanna Installation Guide and Savanna UI Installation Guide.
Go to savanna dashboard path.
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.
Install virtual framebuffer X server for X Version 11 (Xvfb):
sudo apt-get -y install xvfb
Install Firefox:
sudo add-apt-repository ppa:ubuntu-mozilla-security/ppa
sudo apt-get update
sudo apt-get install firefox libstdc++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' or 'image_registry'
Coverage:
- Clusters
- Cluster templates
- Node group templates
- Image registry
- Data sources
- Job binaries
- Jobs
- Job executions