变更描述 | |||
---|---|---|---|
1.0 | 2022-10-08 | 袁帅 | |
2.0 | 2023-04-23 | 袁帅 |
QuecPython产测
- Windows7
- Windows10
- Windows11
适用
git clone --recurse-submodules https://github.com/QuecPython/FactoryTool.git
测试
注意 :测试的 模 块需要 保 证交互 口 不 处于堵 塞 状 态,否 则测试将失 败
测试
导入
测试
# 检测sim卡状态正常 并且驻网状 态为LTE时测试成功 ,否 则返回 失 败测试结果
@staticmethod
def det_signal():
if sim.getStatus() == 1:
if net.getConfig()[0] == 5:
return True
else:
return False
测试
产测
通 过QuecPython的 API接 口 来 获取模 组参数 和 运行状 态通 过访问正在 运行的 业务代 码中的 对象来 获取业务运行情 况通 过调用 业务代 码提供 的 接 口才 测试业务功 能 或 者 硬 件 功 能 通 过QuecPython API接 口 传输配置 文 件 或 者 写 入 产品参 数
该文
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
# 如果上面 方式 安 装 失 败,可 以使用 单独安 装 的 形式
pip install wxpython -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install pypubsub -i https://pypi.tuna.tsinghua.edu.cn/simple
运行
python main.py
编译
# 如果上面 使用 单独安 装 的 形式 ,需要 安 装 一 下 pyinstaller库
pip install pyinstaller -i https://pypi.tuna.tsinghua.edu.cn/simple
# 编译成 exe程 序 ,输出exe目 录在./dist/下
pyinstaller -F -w --win-private-assemblies --icon images/quectel.ico -w ./main.py