请问想要调用的函数有参数要怎么处理 调用的函数的类似这种有参数的 test: function (e) { log.info(e.test) }
[Minium]使用minium自带的unittest?2个问题: 怎么使用minium自带的unittest?像python一样,开始时就导入:import unittest还是怎样? 用了官方作者说的方法,比如:先使 input 输入框处在聚焦状态,也就是先点击一下 input 标签,然后再调用 minium.Native().input_text("xxxx"),但是执行代码的时候报错:AttributeError: module 'minium' has no attribute 'Native'
2019-10-14suite.json { "pkg_list": [ { "pkg": "TestSuite.*", "case_list": [ "test_air" ] } ] }demo.py import minium import time class FirstTest(minium.Minium,minium.MiniTest): def test_air(self): miniprogram = self.app #获取小程序实例 miniprogram.go_home()
[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