You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
В уроке приведена одна из команд
val packages = adbServer.performShell("pm list packages")
Assert.assertTrue(device.targetContext.packageName in packages.first())
Однако при попытке её выполнить, в логах теста выводится:
"com.kaspersky.kaspresso.internal.exceptions.AdbServerException:
AdbServer. The command=pm list packages was performed with timeout exception."
В консоле выводится:
INFO 26/09/2023 11:59:52.833 desktop=Desktop-21720 device=emulator-5554 message: The received command to execute: AdbCommand(body=shell pm list packages)
INFO 26/09/2023 12:01:52.843 desktop=Desktop-21720 device=emulator-5554 message: The executed command: AdbCommand(body=shell pm list packages). The result: CommandResult(status=TIMEOUT, description=Command execution timeout (120 sec) overhead, serviceInfo=The command was executed on desktop=Desktop-21720)
Код, указанный выше, был запущен из ветки "TECH-tutorial-results", класс AdbTest.kt.
Также есть класс DeviceServerSampleTest.kt , в котором приведён аналогичный тест
val command = "pm list packages ${device.targetContext.packageName}"
val result = adbServer.performShell(command)
assertTrue("package:${device.targetContext.packageName}" in result.first())
Данный код выполняется БЕЗ ошибок
The text was updated successfully, but these errors were encountered:
Describe the bug
https://kasperskylab.github.io/Kaspresso/ru/Tutorial/Working_with_adb/#adb_1
Урок 4 "Выполнение adb-команд"
В уроке приведена одна из команд
val packages = adbServer.performShell("pm list packages")
Assert.assertTrue(device.targetContext.packageName in packages.first())
Однако при попытке её выполнить, в логах теста выводится:
"com.kaspersky.kaspresso.internal.exceptions.AdbServerException:
AdbServer. The command=pm list packages was performed with timeout exception."
В консоле выводится:
INFO 26/09/2023 11:59:52.833 desktop=Desktop-21720 device=emulator-5554 message: The received command to execute: AdbCommand(body=shell pm list packages)
INFO 26/09/2023 12:01:52.843 desktop=Desktop-21720 device=emulator-5554 message: The executed command: AdbCommand(body=shell pm list packages). The result: CommandResult(status=TIMEOUT, description=Command execution timeout (120 sec) overhead, serviceInfo=The command was executed on desktop=Desktop-21720)
Код, указанный выше, был запущен из ветки "TECH-tutorial-results", класс AdbTest.kt.
Также есть класс DeviceServerSampleTest.kt , в котором приведён аналогичный тест
val command = "pm list packages ${device.targetContext.packageName}"
val result = adbServer.performShell(command)
assertTrue("package:${device.targetContext.packageName}" in result.first())
Данный код выполняется БЕЗ ошибок
The text was updated successfully, but these errors were encountered: