我正在尝试使用Appium(npm版本)为Android应用程序设置自动化测试,但我一直收到错误
[UiAutomator2] Did not get confirmation UiAutomator2 deleteSession worked; Error was: UnknownError: An unknown server-side error occurred while processing the command. Original error: Trying to proxy a session command without session id
[UiAutomator2] Unable to remove port forward 'Error executing adbExec. Original error: 'Command '/usr/local/android-sdk/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp\:8200' exited with code 1'; Stderr: 'error: listener 'tcp:8200' not found'; Code: '1''
我已经浏览了谷歌多年,但是能够找到任何实际上对我有用的解决方案,到目前为止共有50个失败的版本.
如果我在我的本地机器上运行命令它工作正常但在travis内我很遗憾没有这样的运气.我是设置appium的新手,所以它可能是一些不太理解的东西.
分配:
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
提前致谢.
我试图将@validator注入我的服务,但LiipFunctionalTestBundle在注入时会覆盖该服务.
admin.image_service:
class: AdminBundle\Service\ImageService
arguments: ["@validator", "@doctrine.orm.admin_entity_manager", "@image_storage_filesystem"]
Run Code Online (Sandbox Code Playgroud)
哪会导致错误
必须是Symfony\Component\Validator\Validator\RecursiveValidator的实例,给出Liip\FunctionalTestBundle\Validator\DataCollectingValidator的实例
运行php bin/console debug:容器结果
liip_functional_test.validator:Liip\FunctionalTestBundle\Validator\DataCollectingValidator
验证器:"liip_functional_test.validator"的别名
有没有办法解决这个问题,而不是删除liip并重构我的所有测试?