小程序云测试
[图片] [图片] 然后写了个断言当前页面是否是期望页面,断言通过和未通过的时候都没有截图,始终只截了默认的setup和teardown的图片 没有截图相关的报错,只有断言的 [图片] [图片] [图片]
文件结构如下: -- test -testDemo1.py -testDemo2.py 执行命令: minitest -m test.testDemo1 -c config.json -g 但这样只能执行一个,我想一次命令执行test文件夹下的所有用例文件,应该如何写?
[图片][图片]
https://minitest.weixin.qq.com/#/minium/Python/introduction/quick_start?id=%e5%bf%85%e8%a6%81%e7%9a%84%e7%9f%a5%e8%af%86 ValueError: trial format not collect [图片] 环境检查如下: 9420端口之前打开了,再运行就提示已经开启 [图片][图片]
用pytest做单条用例调试时,报这个错怎么解决[图片]
"path/to/cli" auto --project "path/to/project" --auto-port 9420 执行上面的命令时候,报错: 错误 Error: 登录用户不是该小程序的开发者
我想在做微信小程序自动化测试的时候,抓取在测试过程中访问的某一接口响应数据,有没有解决办法实现了,怎么实现
input test123以后想要提交保存,加上with_confirm=True后就会异常报错,如果不加下一步点击提交的时候也会报错异常 minium.framework.exception.MiniCommandError: e.stopPropagation is not a function [图片] [图片]
升级原有的Minium+云测自动化方案,让编写自动化用例更高效
微信小程序,wxss,webview引擎,请问尺寸单位vmin和vmax在各机型上都支持吗? 我需要vmin来解决横屏字体放大的问题。谢谢!
minium-version:1.5.3 背景:jenkins搭建在windows本地,minitest命令写在run.py文件中,在本地cmd使用python run.py运行正常 问题表现:使用jenkins直接运行python run.py(运行的是git pull的代码),或者cd到项目路径F:\llw_code\llw_uiauto(本地项目路径)下后再python run.py会报错:initialize-error: Error: ENOENT: no such file or directory, open 'C:\WINDOWS\system32\config\systemprofile\AppData\Local\微信开发者工具\User Data\3e5d725bf5abbd2bfd7bc047ee989e46\Default\.cli' (不太明白为什么会去这个路径下找啥,IDE工具在D盘,且已经配置到config文件),然后说IDE未安装:minium.framework.exception.MiniLaunchError: [error] Please ensure that the IDE has been properly installed 不太理解jenkins中cd到项目下运行和直接在项目下运行为何会有不同的结果,都是用的本地环境 [图片] [图片] config.json配置文件的内容: [图片]
Minium有支持的JavaScript版本吗,或者怎么在JavaScript中使用呀?不是miniprogram-automator,Minium有很多功能在automator都没有,不能满足自动化需要
1、在 canvas 画布上使用touch_start、 touch_move、touch_end 事件,在开发者工具可以绘制 真机无法绘制?
最好录成短视频让大家看,响应潮流么
一些在minium自动化中常用到的方法封装
在执行完20多Case之后开始出现page destroyed,然后后续的Case也无法正常获取元素 可以确认的是小程序源代码本身在测试期间没有任何改动 [E 2024-01-18 18:46:23,428 minium.Conn8160 connection#657 __on_message] [5b345e7d-424b-4bc6-b1f2-dad416199a88]: page destroyed [E 2024-01-18 18:46:23,694 minium.Conn8160 connection#657 __on_message] [f953fc68-2cd9-4750-acbf-acaa4ad8588f]: page destroyed [E 2024-01-18 18:46:23,954 minium.Conn8160 connection#657 __on_message] [2f518df0-d5d3-427b-8ec0-04cc236eb598]: page destroyed [E 2024-01-18 18:46:24,221 minium.Conn8160 connection#657 __on_message] [42384ff6-17b3-4466-b1b2-a26f042891dd]: page destroyed [E 2024-01-18 18:46:24,483 minium.Conn8160 connection#657 __on_message] [913b325a-f29d-4e88-8ece-5718a53d5c42]: page destroyed [E 2024-01-18 18:46:24,748 minium.Conn8160 connection#657 __on_message] [6127e0d3-ebb2-48c2-9efe-83e4a9946a43]: page destroyed [E 2024-01-18 18:46:25,015 minium.Conn8160 connection#657 __on_message] [de9e6ba0-4668-44f2-9917-4a747a13d223]: page destroyed [E 2024-01-18 18:46:25,277 minium.Conn8160 connection#657 __on_message] [d2a1c5b3-205b-4dd7-9ebc-458b346102f6]: page destroyed [E 2024-01-18 18:46:25,540 minium.Conn8160 connection#657 __on_message] [6560d4f0-d4d7-49e5-b18c-e39e70362b36]: page destroyed [E 2024-01-18 18:46:25,806 minium.Conn8160 connection#657 __on_message] [46ea5a8e-42a3-4c42-96e9-2bc94d320492]: page destroyed [E 2024-01-18 18:46:26,070 minium.Conn8160 connection#657 __on_message] [a088849d-bca9-41e8-8220-6a37ea8fc84c]: page destroyed [E 2024-01-18 18:46:26,334 minium.Conn8160 connection#657 __on_message] [72801f16-0271-4504-b93f-e8b3a82f37d4]: page destroyed [E 2024-01-18 18:46:26,597 minium basedef#134 tap] 找不到该元素//text[contains(@class,'iconfont sp_weapp_iconguanbi1')],无法点击!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [E 2024-01-18 18:46:26,600 minium.Conn8160 connection#657 __on_message] [9ea3ddbe-df11-4d89-860c-20a31b48ea5f]: page destroyed [E 2024-01-18 18:46:26,861 minium.Conn8160 connection#657 __on_message] [47390b46-0057-4580-a8d4-be5de56b622e]: page destroyed [E 2024-01-18 18:46:27,124 minium.Conn8160 connection#657 __on_message] [9c6688a1-a93f-4aee-b148-c27a7ad84288]: page destroyed [E 2024-01-18 18:46:27,390 minium.Conn8160 connection#657 __on_message] [172bf0b2-1eb0-4076-8e5c-f2f5298d23e9]: page destroyed [E 2024-01-18 18:46:27,649 minium.Conn8160 connection#657 __on_message] [e8891d09-6047-42f6-8354-b84ca16d7f1e]: page destroyed [E 2024-01-18 18:46:27,917 minium.Conn8160 connection#657 __on_message] [a4cb36a1-e78a-4aac-8e94-49e76765241f]: page destroyed [E 2024-01-18 18:46:28,180 minium.Conn8160 connection#657 __on_message] [7b2d825e-15a3-4879-a00c-5aecf09d97b9]: page destroyed [E 2024-01-18 18:46:28,436 minium.Conn8160 connection#657 __on_message] [91ee9842-a28e-4d9c-b449-c89609f87a51]: page destroyed [E 2024-01-18 18:46:28,704 minium.Conn8160 connection#657 __on_message] [bc4aad24-1d69-4a5b-b6ae-6523f27b52ed]: page destroyed [E 2024-01-18 18:46:28,966 minium.Conn8160 connection#657 __on_message] [80bfcb3f-f084-4700-9dc7-6d559c6832af]: page destroyed [E 2024-01-18 18:46:29,235 minium.Conn8160 connection#657 __on_message] [1598b8a8-c22b-4552-bafc-00f6519e0b6a]: page destroyed
代码如下: # self.get_element("content-loading >>> part-item") 这里能取到5条元素, # 当想获取part-item下text[text() ='0do15b']的元素时就会报找不到当前元素的错误 # 因为text() ='0do15b'在第3个part-item元素下,而self.get_element("content-loading >>> part-item")默认取第一个 ```python self.get_element("content-loading >>> part-item").get_element("text", innert_text"0do15b") ```
minium展示的teardown和setup图片不正确
如下图,使用"//text[text()='0c2hxx']"有的时候会找不到元素\ [图片] 补充代码: def element_is_exists(self, element, max_timeout=15): self.mini.logger.info(f"目前在断言元素{element}") for i in range(3): ele = self.page.wait_for(element, max_timeout=max_timeout) if ele: return self.page.element_is_exists(element, max_timeout=max_timeout) self.app.logger.error(f"找不到该元素{element},超过重试次数") return False
images中有2张截图[图片], 但是报告中没有截图[图片], 请问会是什么原因呢?报告路径是使用的默认路径, 运行测试的命令用的是minitest -s suite.json -c config.json -g 生成报告的命令用的是python -m http.server -d .\outputs\
云测官方企业微信群
欢迎大家进群交流
[图片]
project.config.json中这个信息有问题,尝试变更开发者工具中基础库的版本,然后检查这个地方有没有变成有意义的 x.y.z的形式