当前位置:网站首页>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
看完今天的分享对你是不是有所启发呢,有任何想法都欢迎大家后台私信阿常,一起探讨交流

。
边栏推荐
- url相关知识点
- ES6 what amazing writing methods have you used
- Security assurance is based on software life cycle - networkpolicy application
- strcmp、strstr、memcpy、memmove的实现
- Istio IV fault injection and link tracking
- 线程阻塞的三种情况。
- 深度学习基础----GNN谱域和空域 (不断完善更新积累)
- 在centos中安装mysql5.7.36
- 论文研读--Masked Generative Distillation
- What is a spin lock? A spin lock means that when a thread attempts to acquire a lock, if the lock has been occupied by other threads, it will always cycle to detect whether the lock has been released,
猜你喜欢

目标检测:速度和准确性比较(Fater R-CNN,R-FCN,SSD,FPN,RetinaNet和YOLOv3)

Literature reading (245) roller

Machine learning (Zhou Zhihua) Chapter 6 notes on Support Vector Learning

strcmp、strstr、memcpy、memmove的实现

MVC模型:日历系统

Understanding of "image denoising using an improved generic advantageous network with Wasserstein distance"

在centos中安装mysql5.7.36

How to effectively conduct the review meeting (Part 1)?

基于NoneBot2的qq机器人配置记录

Clickhouse分布式集群搭建
随机推荐
第六章 支持向量机
【Utils】CookieUtil
【Util】redis工具类:把redis的value序列化器修改为GenericJackson2JsonRedisSerializer,就支持返回值为对象或集合了
Security assurance is based on software life cycle -istio authorization mechanism
安全保障基于软件全生命周期-NetworkPolicy应用
strcmp、strstr、memcpy、memmove的实现
Four ways to create thread pools
什么是自旋锁 自旋锁是指当一个线程尝试获取某个锁时,如果该锁已被其他线程占用,就一直循环检测锁是否被释放,而不是进入线程挂起或睡眠状态。 /** * 为什么用自旋锁:多个线程对同一个变量
regular expression
QT自制软键盘 最完美、最简单、跟自带虚拟键盘一样
[lvgl events] event code
Install mysql5.7.36 in CentOS
Multi level cache scheme
MVC model: calendar system
DXF reading and writing: Chinese description of dimension style group codes
Machine learning (Zhou Zhihua) Chapter 6 notes on Support Vector Learning
Discrete logarithm problem (DLP) & Diffie Hellman problem (DHP)
Read how to deploy highly available k3s with external database
Security assurance is based on software life cycle - networkpolicy application
LeetCode 0143. 重排链表