Jump to: navigation, search

Difference between revisions of "Sahara/UItests"

(Main goal of Selenium Tests:)
(How to run UI tests:)
Line 3: Line 3:
  
 
=== 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 in tabs Savanna Installation Guide and Savanna UI Installation Guide.<br />
Go to savanna dashboard path.
+
Go to savanna dashboard path.<br />
Create config file for selenium tests - `savannadashboard/tests/configs/config.py`.
+
Create config file for selenium tests - `savannadashboard/tests/configs/config.py`.<br />
You can take a look at the sample config file - `savannadashboard/tests/configs/config.py.sample`.
+
You can take a look at the sample config file - `savannadashboard/tests/configs/config.py.sample`.<br />
All values used in `savannadashboard/tests/configs/parameters.py` file are
+
All values used in `savannadashboard/tests/configs/parameters.py` file are<br />
defaults, so, if they are applicable for your environment then you can skip
+
defaults, so, if they are applicable for your environment then you can skip<br />
config file creation.
+
config file creation.<br />
Install virtual framebuffer X server for X Version 11 (Xvfb):
+
Install virtual framebuffer X server for X Version 11 (Xvfb):<br />
''sudo apt-get -y install xvfb''
+
''sudo apt-get -y install xvfb''<br />
Install Firefox:
+
Install Firefox:<br />
 
''sudo add-apt-repository ppa:ubuntu-mozilla-security/ppa
 
''sudo add-apt-repository ppa:ubuntu-mozilla-security/ppa
 
sudo apt-get update
 
sudo apt-get update
Line 21: Line 21:
 
''tox -e tests -- -a tags='<module_name>'''
 
''tox -e tests -- -a tags='<module_name>'''
 
<module_name> may be equal 'cluster', 'cluster_template', 'image_registry', 'node_group_template' or 'image_registry'
 
<module_name> may be equal 'cluster', 'cluster_template', 'image_registry', 'node_group_template' or 'image_registry'
 
  
 
=== Coverage: ===
 
=== Coverage: ===

Revision as of 13:56, 20 November 2013

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