通用后台分布式测试库 集成多种测试工具及整合各种后台命令
Project description
Dt4test
A library for distributed big data system test
Introduction ( main purpose )
- TestCase running environment
- TestCase viewing and tune
- Assistance libs of network, container and data generator
- Support monitor and warnning system
- Offer period running task
- Support performance test plan and execution
- Unified test report generation
- Bigdata components client
- Bigdata components startup and revoke
Installation
pip install dt4test
Get started
- use
dt
comman
***********dt4test client***************
Log file:/data1/dollarkv4/test_dir/output/dt4test.log
Module Logger:可以通过传入log文件名,指定log文件,如果没有 ${PROJECT_DIR}环境变量,则放在 /tmp 目录下面
Module Network:网络服务的公共库
Module Base:基础的公共函数
Module JsonP:处理复杂json的类,主要是用于查询,基于jmespath:https://jmespath.org/tutorial.html
Module ConfigIni:INI 格式的配置文件的处理,get ,set ,if exists
Module CaseRunner:Run Test Case
- import modules
from dt4test import network
host = "yourshost.com:8081"
payload = {"bid":"110", "model_name":"test_model"}
path = "/master/querybid"
res = network.send_get_request(host, path, payload)
assert(res.status_code == 200)
print(res.content)
Get All Apis
from dt4test import network
network.help()
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
dt4test-0.3.3.tar.gz
(5.4 MB
view details)
Built Distribution
File details
Details for the file dt4test-0.3.3.tar.gz
.
File metadata
- Download URL: dt4test-0.3.3.tar.gz
- Upload date:
- Size: 5.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06ffa7a4f5c50cc96d0a8517e93c7b3ce5610ba2809874b3e6347bcaa7ef09ba |
|
MD5 | 0dd550866cf91f53be163b632c131645 |
|
BLAKE2b-256 | a46925dea020886798c7b40e7bb19fb3c4069022221b327bb6115097f44a87e7 |
File details
Details for the file dt4test-0.3.3-py3-none-any.whl
.
File metadata
- Download URL: dt4test-0.3.3-py3-none-any.whl
- Upload date:
- Size: 5.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 785c1cd51e3124ee1c5c1bd6b1a73af2d9e43e07b88526dd951c0419812ebdb8 |
|
MD5 | 6050ae2f7cde08910b24cfb11f7f0ddc |
|
BLAKE2b-256 | 5c06a29a3aaed5034013e90a6c2984da20da36c09e870e5d3c8ba8307fd38bb1 |