我们目前正在使用 Webdriver、appium 和用 Python 编写的测试在 Cordova 中测试带有 WKWebView 引擎的 iOS(12.2 和更高版本)混合应用程序。
所以这里有一个问题:有人知道 XCUITest(appium 使用它来访问 iOS 设备并操作应用程序)或 appium 本身是否会在 WebContent 进程(由于 WKWebView 使用,目前是应用程序的一部分)上产生额外的负载)考试期间?
以下是有关该问题的一些详细信息:
在手动测试期间,WebContent 进程在应用启动时显示 ~600mb。在测试期间,内存消耗平均增长到 850mb 和 750mb(大约花费了 3 个小时)。
同时,在自动化测试期间,相同的 Webcontent 进程在应用启动时显示约 600mb。内存消耗在测试期间平均增长到 1Gb 和 800mb(大约花费了 1 小时),直到最终应用程序崩溃。
这个过程实际上是用 XCode 跟踪的。
我是 iOS 测试的新手,但也许其他人也有类似的东西。
这里使用的功能发送到 appium:
"autoWebview": True,
"clearSystemFiles": True,
"automationName": "Appium",
"platformName": iOS,
"platformVersion": 12.2,
"nativeWebScreenshot": True,
"newCommandTimeout": 1814400,
"autoAcceptAlerts": True,
"app": *****,
"orientation": "LANDSCAPE",
"fullReset": config.full_reset,
"xcodeOrgId": config.xcode_org_id, "xcodeSigningId": config.xcode_signing_id,
"automationName": "XCUITest",
"wdaStartupRetries": 5,
"startIWDP": True,
"webkitResponseTimeout": 90000,
"shouldUseSingletonTestManager": False,
"resetOnSessionStartOnly": False,
"devicePlatform": "iOS"