- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
在测试用例中运行超过 70-80 条测试线时,它会显示“socket hang up error”或“ESOCKETTIMEDOUT”。测试突然停止执行测试代码,假设 15-20 分钟后它给出了错误。
如果我制作 2 个单独的测试用例,每个测试用例有 60 行,那么它们都会成功完成而不会出现任何错误,但是如果我合并两个测试用例并运行一个有 120 行的测试用例,那么它通常会在 70-第 80 行。同样,如果我在顶部注释掉 10 行,那么测试用例会运行到第 80-90 行,然后再次停止。
我无法找出实际问题是什么。对我来说这似乎是一个 appium 问题。我已经尝试更新 appium 和 katalon studio 但问题仍然存在,也在不同的 android 设备上进行了测试。
> com.kms.katalon.core.exception.StepFailedException: Cannot swipe on
> device. (Root cause: org.openqa.selenium.WebDriverException: An
> unknown server-side error occurred while processing the command.
> Original error: Could not proxy command to remote server. Original
> error: Error: ESOCKETTIMEDOUT Build info: version: '3.141.59',
> revision: 'e82be7d358', time: '2018-11-14T08:25:53' System info: host:
> 'Subhajits-MacBook-Air.local', ip: '192.168.29.5', os.name: 'Mac OS
> X', os.arch: 'x86_64', os.version: '10.14.5', java.version:
> '1.8.0_181' Driver info:
> com.kms.katalon.core.appium.driver.SwipeableAndroidDriver Capabilities
> {app: /Users/iamsubho2/Downloads/..., appPackage:
> com.lc_seenit.elsie_dev, autoGrantPermissions: true, automationName:
> uiautomator2, databaseEnabled: false, desired: {app:
> /Users/iamsubho2/Downloads/..., autoGrantPermissions: true,
> automationName: uiautomator2, deviceName: OnePlus ONEPLUS A5000
> (Andr..., fullReset: false, newCommandTimeout: 1800, noReset: true,
> platform: ANDROID, platformName: android, platformVersion: 9, udid:
> 3d999502}, deviceApiLevel: 28, deviceManufacturer: OnePlus,
> deviceModel: ONEPLUS A5000, deviceName: 3d999502, deviceScreenDensity:
> 380, deviceScreenSize: 1080x1920, deviceUDID: 3d999502, fullReset:
> false, javascriptEnabled: true, locationContextEnabled: false,
> networkConnectionEnabled: true, newCommandTimeout: 1800, noReset:
> true, pixelRatio: 2.375, platform: ANDROID, platformName: Android,
> platformVersion: 9, statBarHeight: 57, takesScreenshot: true, udid:
> 3d999502, viewportRect: {height: 1863, left: 0, top: 57, width: 1080},
> warnings: {}, webStorageEnabled: false} Session ID:
> dc1a58af-f530-45b0-afad-6587fb500e00 at
> org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
> at
> org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
> at
> org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
> at
> org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
> at
> io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)
> at
> org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
> at
> io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
> at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
> at
> io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
> at
> com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.execute(SwipeableAndroidDriver.java:1)
> at
> io.appium.java_client.PerformsTouchActions.performTouchAction(PerformsTouchActions.java:41)
> at io.appium.java_client.TouchAction.perform(TouchAction.java:187)
> at
> com.kms.katalon.core.mobile.helper.MobileCommonHelper.swipe(MobileCommonHelper.java:37)
> at
> com.kms.katalon.core.mobile.keyword.builtin.SwipeKeyword$_swipe_closure1.doCall(SwipeKeyword.groovy:76)
> at
> com.kms.katalon.core.mobile.keyword.builtin.SwipeKeyword$_swipe_closure1.call(SwipeKeyword.groovy)
> at
> com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:21)
> at
> com.kms.katalon.core.mobile.keyword.builtin.SwipeKeyword.swipe(SwipeKeyword.groovy:71)
> at
> com.kms.katalon.core.mobile.keyword.builtin.SwipeKeyword.execute(SwipeKeyword.groovy:66)
> at
> com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:56)
> at
> com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.swipe(MobileBuiltInKeywords.groovy:153)
> at
> com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$swipe$1.call(Unknown
> Source) at PreBuild1.run(PreBuild1:194) at
> com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194) at
> com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
> at
> com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:342)
> at
> com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:333)
> at
> com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:312)
> at
> com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:304)
> at
> com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:238)
> at
> com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114)
> at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown
> Source) at
> TempTestCase1560160422043.run(TempTestCase1560160422043.groovy:21) )
> at
> com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:48)
> at
> com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.stepFailed(MobileKeywordMain.groovy:40)
> at
> com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:23)
> at
> com.kms.katalon.core.mobile.keyword.builtin.SwipeKeyword.swipe(SwipeKeyword.groovy:71)
> at
> com.kms.katalon.core.mobile.keyword.builtin.SwipeKeyword.execute(SwipeKeyword.groovy:66)
> at
> com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:56)
> at
> com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.swipe(MobileBuiltInKeywords.groovy:153)
> at
> com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$swipe$1.call(Unknown
> Source) at PreBuild1.run(PreBuild1:194) at
> com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194) at
> com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
> at
> com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:342)
> at
> com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:333)
> at
> com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:312)
> at
> com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:304)
> at
> com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:238)
> at
> com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114)
> at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown
> Source) at
> TempTestCase1560160422043.run(TempTestCase1560160422043.groovy:21)
> Caused by: org.openqa.selenium.WebDriverException: An unknown
> server-side error occurred while processing the command. Original
> error: Could not proxy command to remote server. Original error:
> Error: ESOCKETTIMEDOUT Build info: version: '3.141.59', revision:
> 'e82be7d358', time: '2018-11-14T08:25:53' System info: host:
> 'Subhajits-MacBook-Air.local', ip: '192.168.29.5', os.name: 'Mac OS
> X', os.arch: 'x86_64', os.version: '10.14.5', java.version:
> '1.8.0_181' Driver info:
> com.kms.katalon.core.appium.driver.SwipeableAndroidDriver Capabilities
> {app: /Users/iamsubho2/Downloads/..., appPackage:
> com.lc_seenit.elsie_dev, autoGrantPermissions: true, automationName:
> uiautomator2, databaseEnabled: false, desired: {app:
> /Users/iamsubho2/Downloads/..., autoGrantPermissions: true,
> automationName: uiautomator2, deviceName: OnePlus ONEPLUS A5000
> (Andr..., fullReset: false, newCommandTimeout: 1800, noReset: true,
> platform: ANDROID, platformName: android, platformVersion: 9, udid:
> 3d999502}, deviceApiLevel: 28, deviceManufacturer: OnePlus,
> deviceModel: ONEPLUS A5000, deviceName: 3d999502, deviceScreenDensity:
> 380, deviceScreenSize: 1080x1920, deviceUDID: 3d999502, fullReset:
> false, javascriptEnabled: true, locationContextEnabled: false,
> networkConnectionEnabled: true, newCommandTimeout: 1800, noReset:
> true, pixelRatio: 2.375, platform: ANDROID, platformName: Android,
> platformVersion: 9, statBarHeight: 57, takesScreenshot: true, udid:
> 3d999502, viewportRect: {height: 1863, left: 0, top: 57, width: 1080},
> warnings: {}, webStorageEnabled: false} Session ID:
> dc1a58af-f530-45b0-afad-6587fb500e00 at
> org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
> at
> org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
> at
> org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
> at
> org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
> at
> io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)
> at
> org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
> at
> io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
> at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
> at
> io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
> at
> com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.execute(SwipeableAndroidDriver.java:1)
> at
> io.appium.java_client.PerformsTouchActions.performTouchAction(PerformsTouchActions.java:41)
> at io.appium.java_client.TouchAction.perform(TouchAction.java:187)
> at
> com.kms.katalon.core.mobile.helper.MobileCommonHelper.swipe(MobileCommonHelper.java:37)
> at
> com.kms.katalon.core.mobile.keyword.builtin.SwipeKeyword$_swipe_closure1.doCall(SwipeKeyword.groovy:76)
> at
> com.kms.katalon.core.mobile.keyword.builtin.SwipeKeyword$_swipe_closure1.call(SwipeKeyword.groovy)
> at
> com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:21)
> ... 16 more
预期的结果是所有测试用例都应该完成而不显示该错误。
最佳答案
重新安装 Appium 包似乎是最可能的方法:
adb uninstall io.appium.uiautomator2.server
adb uninstall io.appium.uiautomator2.server.test
adb uninstall io.appium.unlock
adb uninstall io.appium.settings
发现于 GitHub .
关于android - 在单个测试用例中运行超过 70-80 条测试线时,它显示 “socket hang up error” 或 "ESOCKETTIMEDOUT",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56524385/
我使用这个 cmd 应用程序 https://github.com/tokland/youtube-upload 上传 50 个视频后,我收到此错误: [RequestError] Server re
尝试将 docker 容器提交到镜像时出现错误: [root@dockerregistry /]# docker commit da4180ab1536 dockerregistry:5000/myi
我只是想知道这样做会更好吗: if((fd = open(filename, O_RDWR)) == -1) { fprintf(stderr, "open [ %s ]\n", strerror(e
我在我的开发机器(单个笔记本)中使用 Elasticsearch 1.4.4。一切都设置为默认值,因为我从未更改过任何设置。 当我启动它时,我通常会收到以下消息: [2015-10-27 09:38:
我收到错误 Lock wait timeout exceeded;尝试重新启动事务。这是什么原因,如何解决?仅供引用:MySQL 配置文件中的 innodb_lock_wait_timeout = 1
我对 Slack 中的 block 功能有疑问。有人设法构建 3 列而不是 2 列吗? 我凭直觉尝试了以下代码,但它不起作用: { "blocks": [ {
div 中的内容超过由 css 决定的固定大小。 #fixeddiv { position: fixed; margin: auto; max-height: 300px
我想将 EditText 字段限制为 150 个字符,我可以很容易地做到这一点。但是,当用户试图超过该限制时,我还需要通过键入(即第 151 个字符)或粘贴超过 150 个字符来提醒用户。 解决这个问
我目前正在使用此代码并排记录两个窗口: ffmpeg -f gdigrab -framerate 30 -i title="" -f gdigrab -framerate 30 -i title=""
我在几个包含长字符串的单元格上使用嵌套的 SUBSTITUE 函数,并定期更新 SUBSTITUE fx,这导致我将其复制并粘贴到所有需要它的单元格中。问题是,我的 SUBSTITUTE 列表会随着时
我创建了一个标题 div,如下所示:
Here is the demo link 您怎么看,页面中只有 8 个广告可见,但我有 14 个广告。我已阅读有关广告限制的信息 here但不明白是不是我的情况?有人可以给我确切的答案,为什么我看不
我的非常简单的算法 - C 中的快速排序有问题。它非常有效(随机化大约 0.1 秒并检查列表是否已排序)但是当我想要对超过 500k 的元素进行排序时它会崩溃。不幸的是,我需要对它们进行更多排序,因为
我成功解决了一个关于 Hackerrank 的问题,它通过了所有测试用例,但我得到了一个错误,超过了时间限制。我猜如果我优化我的代码它会工作,但我想不出任何方法来使我的代码更有效率。 问题是: 对大小
你会如何用 包围下面的文字3 个反引号 ```使用 tpope 的 Vim Surround . 我所能做的就是 1 个反引号 使用 S`在视觉模式下: 最佳答案 这不是你问的,但这可以在没有环绕的情
我目前有一个模拟账户。我正在尝试为我的雇主使用 SwifType 制作 POC。我们有一个非常大的数据库,每 1 小时索引一次,并创建一个 JSON 文件。我认为与 Elastic 的集成将非常容易,
我为一个大约有 100 到 120 名成员的小型组织维护网站。 每个月,我们都会发送一封电子邮件,通知我们的成员我们将在即将举行的 session 中讨论的主题。 我正在尝试使用我们的网站为我们提供一
这个问题已经有答案了: How to automatically input an array formula as string with more than 255 characters in l
我有一个在 JBoss 6.1 中运行的 JSF 应用程序,它使用内部Tomcat Servlet 容器。 我已经通过apache commons文件上传实现了上传。我想防止上传过大的文件并设置了属性
当我尝试在 PyMySQL 上执行查询时,出现以下错误: pymysql.err.InternalError: (1205, 'Lock wait timeout exceeded; try rest
我是一名优秀的程序员,十分优秀!