Skip to main content

通用后台分布式测试库 集成多种测试工具及整合各种后台命令

Project description

Dt4test

A library for distributed big data system test

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


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.2.5.tar.gz (5.4 MB view details)

Uploaded Source

Built Distribution

dt4test-0.2.5-py3-none-any.whl (5.7 MB view details)

Uploaded Python 3

File details

Details for the file dt4test-0.2.5.tar.gz.

File metadata

  • Download URL: dt4test-0.2.5.tar.gz
  • Upload date:
  • Size: 5.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.5

File hashes

Hashes for dt4test-0.2.5.tar.gz
Algorithm Hash digest
SHA256 5424090647e337d8f74649d87a683581a6a0a20fd7ea2d470af52ce2b36900c9
MD5 4c61b7cbe140f88253388e9a9f7ec0fc
BLAKE2b-256 7cfe0275b6351a6ab7d72986be0b60b4a695c265bb57c63dd7a9f508021286a8

See more details on using hashes here.

File details

Details for the file dt4test-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: dt4test-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 5.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.5

File hashes

Hashes for dt4test-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 34a3126bcc61373aef96bbda17e37e4174b7bd7e22ef4f498a2772e23510736e
MD5 da54760cf6b5ad75d69eebf50471249e
BLAKE2b-256 41bd3c1516332f2ed24b6e859360aff3b452a0234c5ce29d87c7b6f250687e0e

See more details on using hashes here.

Supported by

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