Skip to main content

python 自动化测试基础包

Project description

test_base_package自动化测试基础包,其中包括ui自动化和api接口自动化部分(暂未集成),由于test_base_package基础包集成了当前自动化测试的一些主流第三方库 ,测试人员可以通过test_base_package基础包快速的搭建自己的自动化测试框架。

一、安装

pip install test-base-package

二、使用示例

1、test_base_package 基础集成cli命令testpkg,可以使用testpkg命令进行初始化测试项目,测试模块详细命令请使用testpkg -h 查看。

2、命令详情

positional arguments:
  project_name          项目名称为必填项
  {1,2}                 测试用例类型: 1、ui自动化测试。 2、api自动化测试。

options:
  -h, --help            show this help message and exit
  --case_name CASE_NAME
                        测试用例模块为选填项

3、初始化项目命令

testpkg project_name 1

4、初始化项目结构

├─project_name
    ├─cases
    │      __init__.py
    │
    ├─logs
    ├─pages
    │   __init__.py
    │
    ├─screenshots
    ├─__init__.py
    ├─config.py
    ├─conftest.py
    ├─pytest.ini
    ├─requirements.txt
    ├─runner.py

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

test_base_package-1.0.4.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

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

test_base_package-1.0.4-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file test_base_package-1.0.4.tar.gz.

File metadata

  • Download URL: test_base_package-1.0.4.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for test_base_package-1.0.4.tar.gz
Algorithm Hash digest
SHA256 1fb01db042ff4bd7dfc49c8087307147832a47fb0fdfe19630d25f0bf1c82679
MD5 a4f8d692a5130c86806230477a69860f
BLAKE2b-256 baa66cf883b4aa72b2348f4d76a47454f66a057f0efa24317b061f34000942cf

See more details on using hashes here.

File details

Details for the file test_base_package-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for test_base_package-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f1ea5ae24029bcd84c598014945dde04b5d6742da409ea8efca61b301f3c103b
MD5 cc7ba2e944c05bbf564af80db2e9ada6
BLAKE2b-256 66fb9a2ebab50499972397f4ef65d9b012d656ddea835e83ae2319ecf29c5f7d

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