smart-test-ti / SoloX

💯SoloX - Real-time collection tool for Android/iOS performance data.(Android性能测试android performance\iOS性能测试ios performance\移动端性能测试mobile performance\APP性能测试app performance\app性能测试工具)
https://smart-test-ti.github.io/solox
MIT License
994 stars 177 forks source link

APM类里调用devicesCheck时,参数名与定义不一致,导致报错 #138

Closed wangkangreg closed 1 year ago

wangkangreg commented 1 year ago

apm.py中init方法中调用devicesCheck时参数名与方法定义不一致,导致报错 image

Traceback (most recent call last): apm = APM(pkgName='com.haokan.pictorial',deviceId='f42c133',platform='Android', surfaceview=True) File "D:\dev\python\Python39\lib\site-packages\solox\public\apm.py", line 336, in init d.devicesCheck(pf=self.platform, id=self.deviceId, pkg=self.pkgName) TypeError: Devices.devicesCheck() got an unexpected keyword argument 'pf'

修改成与定义一致后,可以正常运行 d.devicesCheck(platform=self.platform, deviceid=self.deviceId, pkgname=self.pkgName)