工作中因要测试app的稳定性,市场上多用于monkey进行稳定测试,而字节跳动开源了一个基于monkey的稳定性测试工具Fastbot
,使用了一阶段,超级棒.
因为每次都要去输入一堆命令,故写了一个第三方包,主要功能是基于持续几分钟的点击效果
首先是构建包
创建一个包的工程目录:
# \launchProject\setup.py
from setuptools import setup, find_packages
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setup(
name="fastrun",
description="快速启动-android稳定性测试",
version="1.0.2",
author="liFeng",
author_email="960158047@qq.com",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://gitee.com/rising_test/first.git",
classifiers=[