当前位置:网站首页>MiniTest--小程序自动化测试框架
MiniTest--小程序自动化测试框架
2022-07-28 13:19:00 【程序员阿常】
读者提问:
小程序自动化测试框架有推荐的吗 ?
阿常回答:
有,MiniTest。
官网地址:
https://minitest.weixin.qq.com
小程序测试示例:
https://git.weixin.qq.com/minitest/miniprogram-demo-test
阿常碎碎念:
目前小程序的体量越来越大,相关的框架和组件库越来越多,对于测试能力要求也越来越高。业内同行基于Chrome DevTools Protocol开发了很多小程序相关的测试工具,这些工具都有以下缺点:
只能在Android端上运行。小程序实际是一个跨平台的产品(IDE,Android和IOS),测试的平台覆盖不足。
兼容性问题。小程序底层运行的内核多样化(x5,原生webview内核等等),对应的调试端口不一定能够打开。
只能做UI相关的测试。小程序架构上分为渲染层和逻辑层,这些框架对于逻辑层上面的测试限制较大。
MiniTest官方
而 minium 除了以上缺点都没有之外,还支持以下更多特性
支持一套脚本,iOS & Android & 模拟器,三端运行
提供丰富的页面跳转方式,看不到也能去得到
可以获取和设置小程序页面数据,让测试不止点点点
可以直接触发小程序元素绑定事件
支持往 AppSerive 注入代码片段执行
可以调用部分 wx 对象上的接口
支持 Mock wx 对象上的接口
支持 Hook wx 对象上的接口
通过 suite 方式管理用例,config 管理运行设备
...
MiniTest官方
暂不支持
H5页面的调试
真机调试2.0
MiniTest
看完今天的分享对你是不是有所启发呢,有任何想法都欢迎大家后台私信阿常,一起探讨交流

。
边栏推荐
- Security assurance is based on software life cycle - networkpolicy application
- Master several common sorting - Select Sorting
- IP black and white list
- 【Utils】ServletUtil
- 在centos中安装mysql5.7.36
- DXF reading and writing: Chinese description of dimension style group codes
- Solve the problem that uniapp wechat applet canvas cannot introduce fonts
- TS literacy method - Basic chapter
- [lvgl events] Application of events on different components (I)
- RSA用私钥加密数据公钥解密数据(不是签名验证过程)
猜你喜欢

Security assurance is based on software life cycle -istio authorization mechanism

Socket class understanding and learning about TCP character stream programming

安全保障基于软件全生命周期-Istio的授权机制

LeetCode 105.从前序与中序遍历序列构造二叉树 && 106.从中序与后序遍历序列构造二叉树

Slam thesis collection

83. (cesium home) how the cesium example works

【服务器数据恢复】HP StorageWorks系列服务器RAID5两块盘离线的数据恢复

strcmp、strstr、memcpy、memmove的实现

Daily question - Scholarship

IP黑白名单
随机推荐
Target detection: speed and accuracy comparison (fater r-cnn, r-fcn, SSD, FPN, retinanet and yolov3)
Verification code brute force cracking test [easy to understand]
关于栈的理解以及实际应用场景
【Utils】ServletUtil
【Utils】FastDFS工具类
盘点操作URL中常用的几个高效API
每日一题——奖学金
Docker deploys Mysql to realize remote connection [easy to understand]
Understand the principle behind the virtual list, and easily realize the virtual list
论文研读--Masked Generative Distillation
IntersectionObserver交叉观察器
Power amplifier and matching network learning
Postgresql14 installation and master-slave configuration
redis哨兵机制
Poj1860 currency exchange solution
Master several common sorting - Select Sorting
Duplicate data in leetcode (442) array
Vite configuring path aliases in the project
安全保障基于软件全生命周期-NetworkPolicy应用
在centos中安装mysql5.7.36