跳转到: 导航, 搜索

GroupBasedPolicy/Testing

功能测试

GBP 功能测试套件可在 pypi 上以 'gbpfunctests' 包名获取,用于按需运行。

在 devstack 安装后,请执行以下操作

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
       3. You may re-run any individual testcase, execute 'python <testcase file name which comprise the testcase>'
  
Test Report: Depending on the location from where the suite(suite_run.py) is run, a file  named "test_results.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