Giter VIP home page Giter VIP logo

dt4test's Introduction

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()

dt4test's People

Contributors

mawentao119 avatar

Watchers

 avatar Vivek Naik avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.