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.1.tar.gz (10.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.1-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: test_base_package-1.0.1.tar.gz
  • Upload date:
  • Size: 10.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.1.tar.gz
Algorithm Hash digest
SHA256 22b3a8a66181673f3a9f04312852892c7a5a5a28ec42f745b5d9cefac1b9162b
MD5 53c971aed516039da3ce2ebdc809a7a9
BLAKE2b-256 54d460f2c74b5dc2203fbb7f1497739836924d2ae658f61cc3dcbdf893484bdc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for test_base_package-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b968b5bf0b1962fde2ee7dddfafe313fd02e97094774cb9353bf30de1c8fdcf0
MD5 3355d9363293e8086415aa021e7914ab
BLAKE2b-256 658f1cae3a2fb8d0cb43cd1c49df83d905d0bd2ab2bc4d4cb6e511fed9975301

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