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.0.tar.gz (10.7 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.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: test_base_package-1.0.0.tar.gz
  • Upload date:
  • Size: 10.7 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.0.tar.gz
Algorithm Hash digest
SHA256 6c55ac6c0adbe8b528fec94c98dc83b306bbe3cf75b4464c63cb94fce92371c2
MD5 798fc1ba89c3fbd425d1ebfdcbf408c4
BLAKE2b-256 cf43645715ef3a590dc7c4d9ec4d2ac51f22e88148e4611460e354153f598dfd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for test_base_package-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 47e687e23c4dc7a7236a629af45897feb3eb14eee2b60c9e76bd3d6e2f03385a
MD5 e6274332d5a6de2e07a2a7b3c1192eb7
BLAKE2b-256 6085fe0b70fdf93d5326719e8c91e88f2f0448d8ed1abbc4c0c86d58a6b66a2c

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