Skip to main content

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

Chinese version

[TOC]

1. Author

Feliciano Long

Zhiyu.Zhou

Statics

2. Supports

Python2 > 2.7 and Python3 (preferred)

3. Installation

Install from PYPI

pip install QiwuGrader

Download source code

  1. 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

  1. (Optional) If Environment Variables is not set correctly, add python executable and pip script to system Path. How to

  2. Install requirements

pip install -r requirements.txt

Download release

Deprecated, please install using pip

Release executable

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

QiwuGrader-1.7.6.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

QiwuGrader-1.7.6-py2.py3-none-any.whl (61.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file QiwuGrader-1.7.6.tar.gz.

File metadata

  • Download URL: QiwuGrader-1.7.6.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.8.0

File hashes

Hashes for QiwuGrader-1.7.6.tar.gz
Algorithm Hash digest
SHA256 0818da9440ca7510bfd8e24a0632076040310c4e8e05cd2910f49ad0038a9a2f
MD5 e64fa080c5440fe550e624d9a1df6555
BLAKE2b-256 1e33336499034a5e58486c29aa0acf221a4e76464dcf1bcbe861d0bd8bdcbca8

See more details on using hashes here.

File details

Details for the file QiwuGrader-1.7.6-py2.py3-none-any.whl.

File metadata

  • Download URL: QiwuGrader-1.7.6-py2.py3-none-any.whl
  • Upload date:
  • Size: 61.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.8.0

File hashes

Hashes for QiwuGrader-1.7.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 af91d0137d3ac35ae86e8b85a0d4f0c1d846baaeffef0b2c2c97bea00d57fbff
MD5 adbb5750bb4923a614867c286a8b16eb
BLAKE2b-256 d80e1eee6f10f1b5a622da0a5e55651e5d8ea503784b2d9b8957ef8d29cd7865

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page