buffaloleo143 / airtest_runner Goto Github PK
View Code? Open in Web Editor NEW采用python多进程,实现多设备并发运行批量的airtest脚本
采用python多进程,实现多设备并发运行批量的airtest脚本
[03:23:33][DEBUG]<airtest.core.android.adb> C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe devices
[03:23:34][DEBUG]<airtest.core.android.adb> C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -s "Android:///172.16.1.16:55554 get-state
Traceback (most recent call last):
File "E:\airtest\github\02\airtest_runner-master\airtest_runner-master\utils.py", line 117, in MyWrapper
return func(*args,**kwargs)
File "E:\airtest\github\02\airtest_runner-master\airtest_runner-master\runner.py", line 166, in RunScript
oCase = NewCase(fPy, sLogDir, sDeviceNum)
File "E:\airtest\github\02\airtest_runner-master\airtest_runner-master\runner.py", line 142, in NewCase
oCase.Init(sLogDir, sPyFileName)
File "E:\airtest\github\02\airtest_runner-master\airtest_runner-master\runner.py", line 34, in Init
self.m_oDev = connect_device(sConn)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\airtest\core\api.py", line 63, in connect_device
dev = init_device(platform, uuid, **params)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\airtest\core\api.py", line 33, in init_device
dev = cls(uuid, **kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\airtest\core\android\android.py", line 38, in init
self.adb = ADB(self.serialno, server_addr=host)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\airtest\core\android\adb.py", line 40, in init
self.connect()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\airtest\core\android\adb.py", line 237, in connect
if self.serialno and ":" in self.serialno and (force or self.get_status() != "device"):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\airtest\core\android\adb.py", line 274, in get_status
raise AdbError(stdout, stderr)
airtest.core.error.AdbError: stdout[] stderr[error: unknown host service
]
ERROR:root:stdout[] stderr[error: unknown host service
]
Traceback (most recent call last):
File "main.py", line 26, in
main()
File "main.py", line 22, in main
return Run(lAirScripts, lDevices)
File "main.py", line 10, in Run
return runner.CreatePools(lAirScripts, lDevices, sPatchTag)
File "E:\airtest\github\02\airtest_runner-master\airtest_runner-master\runner.py", line 197, in CreatePools
return Finish(sLogDir)
File "E:\airtest\github\02\airtest_runner-master\airtest_runner-master\runner.py", line 121, in Finish
with open(sCombineTxt, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'E:\airtest\github\02\airtest_runner-master\airtest_runner-master\logs_root\20200618152333\log.txt'
ModuleNotFoundError: No module named 'poco.drivers.cocosjs'运行后提示该信息,但是我已经pip 安装了 poco ,使用的是python3.7
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.