Skip to main content

automation test helper

Project description

该项目封装了测试人员写自动化代码的常用功能作为装饰器, 目标是能让测试人员更关注业务逻辑的实现,隐藏和业务逻辑无关的细节。 GitHub地址:https://github.com/thcpc/cjen

Release 1.0.1

get_mapping, put_mapping, post_mapping, delete_mapping, upload_mapping 增加json_clazz参数,作用同operate.json.factory

Release 1.0.2

    1. 修改metaMysql 没有数据时,是警告信息而不是错误信息
    1. 方便批量检查,增加了 context["cursor"]

Release 1.0.2b

    1. 修改了创建metaMysql后,直接释放数据库连接池(临时修改方案)

Release 1.0.3

    1. 上传的文件支持sql

Release 1.0.4

    1. 修改了文件的判断

Release 1.0.4.1b

    1. 测试http请求的写日志文件

Release 1.0.4.2b

    1. fix a bug

Release 1.0.5

    1. 增加了http请求的日志文件

Release 1.0.5.2

    1. 增加了封装操作步骤

Release 1.0.5.3

    1. 修复了文件下载日志的bug 和对是否是文件下载的判断

Release 1.0.5.4

    1. 取消了文件下载请求响应的日志

Release 1.0.5.5

    1. 增加了Step的装饰器

Release 1.0.5.6

    1. bug:不管step是否运行都会注册到BigTangerine 修复:调用接口时才会注册到BigTangerine中

Release 1.0.5.7

    1. scenario 中的step 都应该使用相同的service, 所以在构造函数中增加了service参数,同时兼容以前的方法

Release 1.0.5.8

    1. 取消FormData中,文件作为必填项

Release 1.0.5.9

    1. 修复了upload 会修改service中的全局headers

Release 1.0.6.0

    1. 增加了测试装饰器

Release 1.0.6.1

    1. 在Scenario中增加了测试用例的注册机制

Release 1.0.6.2

    1. 修复一些低级错误

Release 1.0.7

    1. 针对 mysql 增加可通过函数参数传递查询参数,而不是一定需要通过上下文传递

Release 1.0.16

    1. 增加是否打印日志的标志,以免IO占完,导致文件读取变慢

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

cjen-1.0.16.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

cjen-1.0.16-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file cjen-1.0.16.tar.gz.

File metadata

  • Download URL: cjen-1.0.16.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for cjen-1.0.16.tar.gz
Algorithm Hash digest
SHA256 f68101d8670e05a76cd70a867c937dcbd25244e64c7f459c560bbec1e1f1782c
MD5 02155d44f81f40f22da1e99d6180f3ec
BLAKE2b-256 529661f45648d0566b909a2ec34e7d9b1261c5d91bd54c81ff4b343774b2f236

See more details on using hashes here.

File details

Details for the file cjen-1.0.16-py3-none-any.whl.

File metadata

  • Download URL: cjen-1.0.16-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for cjen-1.0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 e1f76f5ceea3fac21ccc74daf0501b7f7f2b2d2521a033f2a69470d7cdeccee1
MD5 e4a6a8fbbb158aaf5a2c05a74ae78895
BLAKE2b-256 352b78fa4a6a810880e7d0374b0c4fd8bb7e201df3ab0d87d485d766c1d6485c

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