手动执行这个命令看看是什么输出: [代码]adb shell am instrument -w -r -e class [代码][代码]'com.tencent.mm.atstub.atserver.StubRunner#testStartServer'[代码] [代码]com.tencent.mm.atstub.[代码][代码]test[代码][代码]/android[代码][代码].support.[代码][代码]test[代码][代码].runner.AndroidJUnitRunner[代码]
minimu自动化,报错uiautomator screen failed是什么意思?ERROR 2019-11-11 16:40:26,605 uidevice.py screen_shot 214 uiautomator screen failed Traceback (most recent call last): File "c:\python37\lib\site-packages\minium\native\lib\at\core\uidevice.py", line 211, in screen_shot res = self.jd.request_at_device("screen", [float(scale), quality, max_idle]) File "c:\python37\lib\site-packages\minium\native\lib\at\core\javadriver.py", line 338, in request_at_device return self.request_action(self.ACTION_AT_DEVICE, method, params) File "c:\python37\lib\site-packages\minium\native\lib\at\core\javadriver.py", line 326, in request_action return self.request_java(action, params) File "c:\python37\lib\site-packages\minium\native\lib\at\core\javadriver.py", line 397, in request_java return self.do_request(action, http_params, **kwargs) File "c:\python37\lib\site-packages\minium\native\lib\at\core\basedriver.py", line 174, in do_request ret = self.request(method.lower(), url, http_params, timeout=timeout, **kwargs) File "c:\python37\lib\site-packages\minium\native\lib\at\core\basedriver.py", line 182, in request self._check_env() File "c:\python37\lib\site-packages\minium\native\lib\at\core\basedriver.py", line 167, in _check_env raise RuntimeError(u"远程服务开启失败,或者提前被中断, %d", id(self))RuntimeError: ('远程服务开启失败,或者提前被中断, %d', 195398512)
2019-11-11可以看下下单操作是如何校验的,也许你的input组件绑定的键盘事件并不是bindinput
mininum编辑,输入框不外显值,后期提交验证问题?下单操作,输入了name,phone,icard 提交的的时候提示了“请输入姓名”,我们会检验是否输入的,这种情况怎么办 [图片] [图片]
2019-11-06如这里的input代码实例:https://developers.weixin.qq.com/miniprogram/dev/component/input.html 在调用minium的trigger方法实际是直接触发page.js里面的bindKeyInput方法,并不会显示到wxml上,所以你debug之后看到的内容还是原来的。
minium框架小程序,.e.trigger()赋值无效?2号和3号都注销掉,1号能正常执行, e.trigger("bindinput", {"inner_text": "123"})语句无效,不能赋值。。。。555 调试发现,值还是以前的“请输入真实姓名” [图片]
2019-11-06https://developers.weixin.qq.com/community/develop/doc/0006ecab058f10b28c692e36951800真机相关的问题麻烦打开debug日志,然后提供详细日志。
mininum编辑,真机运行,self.native.input_text("456")方法报错?[代码]我的页面是h5的[代码] [代码] [代码] [代码]self.app.get_current_page().get_elements("input.content")[1].click()[代码] self.native.input_text("456")[图片] 错误堆栈Traceback (most recent call last): File "c:\python37\lib\unittest\case.py", line 59, in testPartExecutor yield File "c:\python37\lib\unittest\case.py", line 615, in run testMethod() File "E:\minium\dujiaprogram-test\TestCase\dj_group_singleresourcetest.py", line 28, in test_dj_group_singleresource self.native.input_text("456") File "c:\python37\lib\site-packages\minium\native\minative\androidnative.py", line 65, in input_text self.at.e.edit_text().enter(text,is_click=False) File "c:\python37\lib\site-packages\minium\native\lib\at\core\element.py", line 635, in enter return self.action("setText", [text, is_clear_text, is_click]) File "c:\python37\lib\site-packages\minium\native\lib\at\core\element.py", line 476, in action return self.jd.request_ui_selector(self._selectors, method, params) File "c:\python37\lib\site-packages\minium\native\lib\at\core\javadriver.py", line 391, in request_ui_selector return self.do_request(action, http_params) File "c:\python37\lib\site-packages\minium\native\lib\at\core\basedriver.py", line 174, in do_request ret = self.request(method.lower(), url, http_params, timeout=timeout, **kwargs) File "c:\python37\lib\site-packages\minium\native\lib\at\core\basedriver.py", line 182, in request self._check_env() File "c:\python37\lib\site-packages\minium\native\lib\at\core\basedriver.py", line 167, in _check_env raise RuntimeError(u"远程服务开启失败,或者提前被中断, %d", id(self)) RuntimeError: ('远程服务开启失败,或者提前被中断, %d', 198740736)
2019-11-05小程序的input组件涉及到native操作,ide上目前还没有实现native相关的方法。建议直接用trigger函数,可以参考:https://git.weixin.qq.com/minitest/miniprogram-demo-test/blob/master/componenttest.py
mininum编辑,定位元素,input赋值无效?self.app.get_current_page().get_elements("input.content")[0].click() self.native.input_text("hisherlock")为什么我这样写,不能输入文字呢, 好像.click()没定位到元素?? [图片] [图片]
2019-11-04这个日志看不到报错的原因,config.json文件加上{"debug_mode":"debug"}可以看到详细的报错信息
mininum连接真机运行报错?连接真机运行报错 [图片]
2019-11-04有shadow-root意味着是自定义组件,请检查你的这个元素是不是在自定义组件里面。 [图片]
mininum编辑,定位元素,小程序类名,使用get_emement()方法定位不对?[图片]
2019-11-04可以把脚本代码和wxml节点的截图贴上来看看是什么问题
mininum编辑,绑定事件怎么触发,是哪个?除了getelement()还设有哪个方法是直接触发绑定事件的? 我现在getelement()方法使用是定位不到元素,求其他方法。。。。。
2019-11-04您好,能否贴一下demo的代码和suite.json?
[Minium]使用minium的miniruntest执行用例时报错?Windows系统 不使用suite配置文件直接执行命令miniruntest报错 [图片] config.json配置文件如下 { "debug_mode": "debug", "project_path": "C:\\Users\\Administrator\\test", "enable_app_log": true, "platform": "ide", "close_ide": false, "test_port": 9420, "no_assert_capture": false, "use_push": true, "dev_tool_path":"D:\\Program Files\\微信web开发者工具\\cli.bat", "remote_connect_timeout": 180, "device_desire":{} } 2.使用suite配置文件执行miniruntest报错 D:\code\MiniumDemo>miniruntest -s ./suite.json -g Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\Scripts\miniruntest-script.py", line 11, in <module> load_entry_point('minium==0.0.2', 'console_scripts', 'miniruntest')() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\lib\site-packages\minium-0.0.2-py3.7.egg\minium\framework\loader.py", line 100, in main tests=load_from_suite(path,suite_path) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\lib\site-packages\minium-0.0.2-py3.7.egg\minium\framework\loader.py", line 28, in load_from_suite module_case_info_list=case_inspect.load_module(case_path) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\lib\site-packages\minium-0.0.2-py3.7.egg\minium\framework\case_inspect.py", line 72, in load_module mod=import_module(module_name) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\lib\site-packages\minium-0.0.2-py3.7.egg\minium\framework\case_inspect.py", line 20, in import_module mod=__import__(module_name) ModuleNotFoundError: No module named 'venv.Lib'
2019-09-25请问安卓客户端装的是微信测试包吗?现在要用微信测试包才行。
「Minium」连接安卓真机总是提示remote timeout怎么办?参照文档FAQ中检查了开发者工具并没有打开打开真机调试窗口,开发者公共库选择的也是>2.7.3的版本,仍然显示超时。我想问一下怎么样才能避免这个问题,连接真实安卓设备执行用例。 现象: 运行用例时,安卓设备上能够自动打开了相应的小程序,但是控制台总是提示Exception: receive from remote timeout, id:XXX,最终用例超时执行失败。 [图片] [图片]
2019-09-09