pip_.zip/pip install --ignore-installed --no-user --prefix /private/var/folders/km/8hs4jth149jbtyzq3j66c68h0000gn/T/pip-build-env-twbzbepb/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel pycairo Check the logs for full command output.
Collecting ioscreen
Using cached ioscreen-1.0.0.dev9-py3-none-any.whl (24 kB)
Using cached ioscreen-1.0.0.dev4-py3-none-any.whl (22 kB)
ERROR: Cannot install ioscreen==1.0.0.dev4, ioscreen==1.0.0.dev9 and ioscreen==1.1.0.dev9 because these package versions have conflicting dependencies.
The conflict is caused by:
ioscreen 1.1.0.dev9 depends on PyGObject==3.38.0
ioscreen 1.0.0.dev9 depends on PyGObject==3.38.0
ioscreen 1.0.0.dev4 depends on PyGObject==3.38.0
To fix this you could try to:
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
You should consider upgrading via the '/usr/local/opt/python@3.9/bin/python3.9 -m pip install --upgrade pip' command.
pc 的自动化测试是怎么做的呀- -
好吧,没有帮到你
报告长啥样 可以看下吗 楼主~
通用->辅助功能->语音 开启
https://testerhome.com/topics/25388,可以参考一下这个解决方案,原理是相通的。
看一下 docker 里 tcdevice 这个 model 里的日志。然后再具体分析
容器内路径:/apps/tcdevices/log/tcdevices_error.log
xcode9.3 下载第三方插件报错 *** Fetching AEXML
*** Fetching Fuzi
*** Fetching SwiftyJSON
*** Fetching CocoaLumberjack
*** Fetching swifter
*** Fetching Nimble
*** Checking out Nimble at "v8.0.1"
*** Checking out swifter at "1.3.3"
*** Checking out CocoaLumberjack at "3.5.2"
*** Checking out SwiftyJSON at "5.0.0"
*** Checking out Fuzi at "2.0.2"
*** Checking out AEXML at "4.4.0"
*** xcodebuild output can be found in /var/folders/tp/13rlp0c911j63gnchcbk9hch0000gn/T/carthage-xcodebuild.oqTt8k.log
*** Building scheme "AEXML macOS" in AEXML.xcodeproj
Build Failed
Task failed with exit code 65:
/usr/bin/xcrun xcodebuild -project /Users/wangshaoce/Fastmonkey/Fastmonkey/XCTestWD-master/Carthage/Checkouts/AEXML/AEXML.xcodeproj -scheme AEXML\ macOS -configuration Release -derivedDataPath /Users/wangshaoce/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3.1_9E501/AEXML/4.4.0 ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/tp/13rlp0c911j63gnchcbk9hch0000gn/T/AEXML SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/wangshaoce/Fastmonkey/Fastmonkey/XCTestWD-master/Carthage/Checkouts/AEXML)
This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/tp/13rlp0c911j63gnchcbk9hch0000gn/T/carthage-xcodebuild.oqTt8k.log
Cartfile 文件内容如下:
github "glock45/swifter" == 1.3.3
github "SwiftyJSON/SwiftyJSON"
github "lovexiaov/Fuzi"
github "tadija/AEXML"
github "CocoaLumberjack/CocoaLumberjack"
github "Quick/Nimble"
命令:adb shell CLASSPATH=/sdcard/monkey.jar:/sdcard/framework.jar exec app_process /system/bin tv.panda.test.monkey.Monkey -p com.yangle.xiaoyuzhou --running-minutes 2 --uiautomatordfs --throttle 500 -v -v >/Users/wangshaoce/testlog/monkeylog/monkeyout.txt 2>/Users/wangshaoce/testlog/monkeylog/monkeyerr.txt &
monkeyerr 收集到到 error 为:
[Maxim] *** ERROR // : null root node returned by UiTestAutomationBridge(1 times), use default events generator.
[Maxim] *** ERROR // : null root node returned by UiTestAutomationBridge(1 times), use default events generator.
[Maxim] *** ERROR // : null root node returned by UiTestAutomationBridge(2 times), use default events generator.
[Maxim] *** ERROR // : null root node returned by UiTestAutomationBridge(3 times), use default events generator.
[Maxim] *** ERROR // : null root node returned by UiTestAutomationBridge(4 times), use default events generator.
[Maxim] *** ERROR // : null root node returned by UiTestAutomationBridge(5 times), use default events generator.
[Maxim] *** ERROR // : null root node returned by UiTestAutomationBridge(6 times), use default events generator.
[Maxim] *** ERROR // : null root node returned by UiTestAutomationBridge(7 times), use default events generator.
[Maxim] *** ERROR // : null root node returned by UiTestAutomationBridge(8 times), use default events generator.
[Maxim] *** ERROR // : null root node returned by UiTestAutomationBridge(9 times), use default events generator.
[Maxim] *** ERROR // : null root node returned by UiTestAutomationBridge(10 times), use default events generator.
[Maxim] *** ERROR // : null root node returned by UiTestAutomationBridge(11 times), use default events generator.
[Maxim] *** ERROR // : null root node returned by UiTestAutomationBridge(12 times), use default events generator.
[Maxim] *** ERROR // : null root node returned by UiTestAutomationBridge(13 times), use default events generator.
[Maxim] *** ERROR // : null root node returned by UiTestAutomationBridge(14 times), use default events generator.
[Maxim] *** ERROR // : null root node returned by UiTestAutomationBridge(15 times), use default events generator.
[Maxim] *** ERROR // : null root node returned by UiTestAutomationBridge(16 times), use default events generator.
[Maxim] *** ERROR // : null root node returned by UiTestAutomationBridge(1 times), use default events generator.
[Maxim] *** ERROR // : null root node returned by UiTestAutomationBridge(2 times), use default events generator.
[Maxim] *** ERROR // : null root node returned by UiTestAutomationBridge(3 times), use default events generator.
[Maxim] *** ERROR // : null root node returned by UiTestAutomationBridge(4 times), use default events generator.
[Maxim] *** ERROR // : null root node returned by UiTestAutomationBridge(5 times), use default events generator.
[Maxim] *** ERROR // : null root node returned by UiTestAutomationBridge(6 times), use default events generator.
[Maxim] *** ERROR // : null root node returned by UiTestAutomationBridge(7 times), use default events generator.
未能准确收集到报错信息,请问 如何解决 已加楼主 q
你好,这边执行后提示没有效果,不知道是哪边出了问题。代码如下
import unittest
import uiautomator2 as u2
import time
import uiautomator2.ext.htmlreport as htmlreport
class ypp(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.u = u2.connect_usb('192.168.2.35')
cls.u.healthcheck() # 解锁屏幕并启动 uiautomator 服务
hrp = htmlreport.HTMLReport(cls.u, 'report')
hrp.patch_click()
# cls.u.disable_popups(True) # 允许自动处理弹出框
cls.u.make_toast("测试开始", 3)
@classmethod
def tearDownClass(cls):
cls.u.make_toast("测试结束", 3)
cls.u.app_stop_all()
cls.u.service(
"uiautomator").stop() # 停止 uiautomator 守护程序,允许其他测试框架如 appium 运行
def setUp(self):
self.d = self.u.session("com.yitantech.gaigai") # restart app
time.sleep(5) # 等待首页广告结束
def tearDown(self):
pass
def login(self): # 登录
self.d(resourceId = "com.yitantech.gaigai:id/b3b").click()
self.d(resourceId = "com.yitantech.gaigai:id/d_").click()
self.d(resourceId = "com.yitantech.gaigai:id/d_").set_text("15050314133")
self.d(resourceId = "com.yitantech.gaigai:id/bp").click()
self.d(resourceId = "com.yitantech.gaigai:id/d_").set_text("xiaowang52")
if name == 'main':
unittest.main()