分布式系統的功能和性能測試框架:Zopkio
Zopkio是專為支持大規模的性能和功能測試的一個測試框架。
基本用法
Use the zopkio main script:
zopkio testfile
Zopkio takes several optional arguments:
--test-only [TEST_LIST [TEST_LIST ...]] run only the named tests to help debug broken tests --machine-list [MACHINE_LIST [MACHINE_LIST ...]] mapping of logical host names to physical names allowing the same test suite to run on different hardware, each argument is a pair of logical name and physical name separated by a = --config-overrides [CONFIG_OVERRIDES [CONFIG_OVERRIDES ...]] config overrides at execution time, each argument is a config with its value separated by a =. This has the highest priority of all configs --output-dir OUTPUT_DIR Specify the output directory for logs and test results. By default, Zopkio will write to the current directory.
Alternatively you can import zopkio in your code and run specific tests:
from zopkio.testrunner import TestRunner test_runner = TestRunner(testfile, tests, config_overrides) test_runner.run()
利用 Zopkio 進行測試
Zopkio provides the ability to write tests that combine performance and functional testing across a distributed service or services. Writing tests using Zopkio should be nearly as simple as writing tests in xUnit or Nose etc. A test suite will consist of a single file specifying four required pieces:
- A deployment file
- One or more test files
- A dynamic configuration file
- A config directory
For simplicity in the first iteratation this is assumed to be json or a python file with a dictionary called test.
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!