Qiwu auto test tool, supports accuracy/pressure tests for knowledge base, QA API and server backend
Project description
QiwuGrader
Qiwu auto test tool, supports accuracy / pressure
tests for knowledge base, QA API and server backend
[TOC]
1. Author
Feliciano Long
Zhiyu.Zhou
2. Supports
Python2 > 2.7 and Python3 (preferred)
3. Installation
Install from PYPI
pip install QiwuGrader
Download source code
- For Windows users please download (Mac users could skip this step)
https://www.python.org/ftp/python/2.7.15/python-2.7.15.msi
-
(Optional) If Environment Variables is not set correctly, add python executable and pip script to system Path. How to
-
Install requirements
pip install -r requirements.txt
Download release
Deprecated, please install using pip
4. Run
last two parameters are ignorable
Run from module
qiwugrader [testcase] [session number] [test duration]
or
python -m qiwugrader.app [testcase] [session number] [test duration]
Run from source
python qiwugrader/app.py [testcase] [session number] [test duration]
5. Usage
single session test
test one case:
qiwugrader ./testcases/test1.yml
test multiple cases:
qiwugrader ./testcases/test1.yml ./testcases/test2.yml
multiple session test (multi threading)
Use multiple threads to test, in this mode only one CPU is used.
start 10 sessions in 5 seconds
qiwugrader ./testcases/test3.yml 10 5
print_conversation
switch is suggested to turn off in multiple session test to make report more readable
multiple session test (multi processing)
Use multiple processes to test, in this mode the program will start logical CPU number processes (each assigned session number DIV CPU number
tasks)
Similar to multi threading test, this mode will be enabled when session count larget than 1000 and start interval less than 0.1s
start 1200 sessions in 60 seconds
qiwugrader ./testcases/test4.yml 1200 60
6. Configuration
Examples are under /testcases
folder
Check test1
(full explanation) and test2
(minimum test case) for knowledge tests, test3
(json request / QA dialogue) and test4
(form request / knowledge backend) for api test
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for QiwuGrader-1.7.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c56ad9d0804fa436d365e164875a80a19e78b6a8f774ce1c10ded4959c0f7a7d |
|
MD5 | 8ef0f424ba26e6810657dc685d1f49d5 |
|
BLAKE2b-256 | a85ea64ae6dba4880eabc0fa8ce87cd0cdbb84c2023ef9267bb9b3563a67b09b |