Difference between revisions of "GroupBasedPolicy/Testing"
(Created page with "== Functional Tests ==") |
(→Functional Tests) |
||
Line 1: | Line 1: | ||
== Functional Tests == | == Functional Tests == | ||
+ | The GBP Functional TestSuite is available in Pypi with the pkg name 'gbpfunctests' | ||
+ | |||
+ | README/Instructions to run the run the test: | ||
+ | |||
+ | Assumptions: | ||
+ | 1. Pip Install the package: | ||
+ | '''pip install gbpfunctests''' | ||
+ | |||
+ | 2. The pip install will put this package by default in | ||
+ | '''/usr/lib/python2.7/site-packages/gbpfunctests/''' (for RHEL) | ||
+ | '''/usr/local/lib/python2.7/dist-packages/gbpfunctests/''' (for Ubuntu) | ||
+ | |||
+ | 3. Before the user runs any test,user will source the rc file needed for keystone authentication | ||
+ | |||
+ | Usage: User can run each test-script or entire test-suite('''suite_run.py''') in any of two ways: | ||
+ | 1. If the default location of the package is appended to the $PATH | ||
+ | then executable files can be run from anywhere | ||
+ | 2. The executable can be run from the default location | ||
+ | |||
+ | Test Report: Depending on the location from where the suite('''suite_run.py''') is run, a file named "'''test_reports.txt'''" get created in that location. This comprise the consolidated test results of the suite | ||
+ | Test logs: Every test-script's log file is available at '''/tmp/<test_case_name>.log''' |
Revision as of 20:18, 9 March 2015
Functional Tests
The GBP Functional TestSuite is available in Pypi with the pkg name 'gbpfunctests'
README/Instructions to run the run the test:
Assumptions:
1. Pip Install the package: pip install gbpfunctests
2. The pip install will put this package by default in /usr/lib/python2.7/site-packages/gbpfunctests/ (for RHEL) /usr/local/lib/python2.7/dist-packages/gbpfunctests/ (for Ubuntu)
3. Before the user runs any test,user will source the rc file needed for keystone authentication
Usage: User can run each test-script or entire test-suite(suite_run.py) in any of two ways: 1. If the default location of the package is appended to the $PATH then executable files can be run from anywhere 2. The executable can be run from the default location Test Report: Depending on the location from where the suite(suite_run.py) is run, a file named "test_reports.txt" get created in that location. This comprise the consolidated test results of the suite Test logs: Every test-script's log file is available at /tmp/<test_case_name>.log