• 我安装了 1.2.1 的 ATX 之后链接就会报错提示
    Traceback (most recent call last):
    File "E:/python�ű�/BesideM/12333.py", line 3, in
    d = atx.connect()
    File "C:\Python27\lib\site-packages\atx_init.py", line 83, in connect
    c = cls(connect_url, **kwargs)
    File "C:\Python27\lib\site-packages\atx\drivers\android.py", line 95, in __init
    _
    self.uiauto.healthcheck(unlock=False)
    File "C:\Python27\lib\site-packages\uiautomator2__init
    _.py", line 460, in healthcheck
    raise RuntimeError("Uiautomator started failed.")
    RuntimeError: Uiautomator started failed.

    然后我退回 1.1.2 版本的 ATX。启动软件可以成功,但是用图片定位时会提示
    IOError: uiautomator start failed: Warning: This version of UI Automator is deprecated. New tests should be written using
    UI Automator 2.0 which is available as part of the Android Testing Support Library.
    See https://developer.android.com/training/testing/ui-testing/uiautomator-testing.html
    for more details.
    INSTRUMENTATION_RESULT: shortMsg=java.lang.IllegalStateException
    INSTRUMENTATION_RESULT: longMsg=UiAutomationService android.accessibilityservice.IAccessibilityServiceClient$Stub$Proxy@1165e8calready registered!
    INSTRUMENTATION_CODE: 0

  • 之后我找了另一个方法,起来后另一个要运行的 JOB 结束后把 Server KILL 了,不过这样就是 jenkins 上都是红色,不太好看

  • 非常感谢,的确可以启动 server。但是我想问个问题。如果是用这个方法启动的 server 的情况下 CMD 会一直卡在这一步。如何使用 jenkins 启动后再继续其他脚本呢?