cloudstack/test/selenium
John Bampton d74f64a2e1
Use lowercase HTTP header field names so we are compatible with HTTP/2 (#7006)
2023-01-23 11:17:54 +01:00
..
browser Enable Flake8 rule W391 (#6606) 2022-11-13 11:00:07 +01:00
common Enable Flake8 rule W391 (#6606) 2022-11-13 11:00:07 +01:00
cspages Enable Flake8 rule W391 (#6606) 2022-11-13 11:00:07 +01:00
cstests Enable Flake8 rule W391 (#6606) 2022-11-13 11:00:07 +01:00
lib Enable Flake8 rule W391 (#6606) 2022-11-13 11:00:07 +01:00
smoke Use lowercase HTTP header field names so we are compatible with HTTP/2 (#7006) 2023-01-23 11:17:54 +01:00
ReadMe.txt merge master 2013-05-11 15:28:43 +05:30

ReadMe.txt

##############################################

Questions? Post'em @ dev@cloudstack.apache.org

##############################################

This files contains following:

1) Installation requirements
2) Testing pre-requisites
3) Running the Tests and Generating the report
##############################################



##########################################################################################################################################

1) Installation Requirements
---------------------------


1) Firefox depending on your OS (Good to have Firebug and Selenium IDE for troubleshooting and dev work)


2) Install Python 2.7.


3) Now Open CMD/Terminal and type all of following

- pip install pycrypto (Installs Pycrypto)
- pip install paramiko (Install paramiko)
- pip install unittest-xml-reporting (Install XML Test Runner)
- pip install -U selenium (Installs Selenium)

4) Get PhoantomJS for your OS from http://phantomjs.org/

- PhantomJS will run selenium test in headless mode. Follow the instruction on PhantomJS.org.
- Make sure the executable is in PATH. (TIP: Drop it in Python27 folder :-))

5) Now get the HTMLTestRunner for nice looking report generation.
- http://tungwaiyip.info/software/HTMLTestRunner.html
- Download and put this file into Lib of your python installation.


##########################################################################################################################################

2) Test Prerequisites
---------------------

- Download and install CS. /cwiki.apache.org has links to Installation Guide and API reference.
- Log into the management server and Add a Zone. (Must be Advance Zone and Hypervisor type must be Xen)


##########################################################################################################################################

3) Running the Test and Generating the report
---------------------------------------------

- Folder smoke contains main.py
- main.py is the file where all the tests are serialized.
- main.py supports HTML and XML reporting. Please refer to end of file to choose either.
- Typical usage is:  python main.py 10.1.1.10 >> result.xml for XML Reporting
- And python main.py 10.1.1.10 >> result.html for HTML Reporting.
- 10.1.1.10 (your management server IP) is an argument required for main.

##########################################################################################################################################