可以参考https://github.com/nikosch86/stf-poc 来搭建 stf。这个是以一台机器搭建 stf master 和 stf provider.如果需要再配置一个 stf provider 可以参考,通过.env 文件配置变量
version: "2"
services:
    android-provider1:
      image: ${STF_IMAGE}
      restart: unless-stopped
      command: >
        node runcli.js provider --name provider1
        --connect-sub tcp://${PUBLIC_IP}:7250
        --connect-push tcp://${PUBLIC_IP}:7270
        --storage-url "http://${PUBLIC_IP}/"
        --min-port 7400
        --max-port 7700
        --heartbeat-interval 3000
        --adb-host ${SLAVE_IP}
        --adb-port 5037
        --group-timeout 3600
        --allow-remote
        --no-cleanup
        --connect-url-pattern "${SLAVE_IP}:<%= publicPort %>"
        --screen-ws-url-pattern "ws://${SLAVE_IP}:<%= publicPort %>/d/provider1/<%= serial %>/<%= publicPort %>/"
      volumes:
        - ./runcli.js:/app/runcli.js
      depends_on: 
        - adb-server
      ports:
        - "7400-7700:7400-7700"
      logging:
        driver: "json-file"
        options:
            max-size: "500m"
            max-file: "2"
    adb-server:
        image: ${ADB_IMAGE}
        restart: unless-stopped
        container_name: adbd
        privileged: true
        ports:
          - "5037:5037"
        volumes:
          - "/dev/bus/usb:/dev/bus/usb"
可以看看大佬的文章,上面写了 2 种主流的方案
https://juejin.cn/post/6844903486241374221
什么时候出个抢红包就更棒了
可以简历发过来试试看,目前都要 3-4 年以上工作经验的。
有的,你把简历发到我邮箱吧。
没有话术,我也是个大头兵。仅从个人的角度来选择加入一家公司
感兴趣可以投一份简历,我们相互了解一下。
朝九晚六。 更多还是看是否满足自己职业规划的预期
不清楚,不用站队,做好自己的事情就好。
stf provider 中的--screen-reset 用来控制是否返回桌面。 需要配置的话在启动的时候配置 stf provider --no-screen-reset
--screen-reset           Go back to home screen and reset screen rotation when
                           user releases device. Negate with --no-screen-reset.
                                                           [布尔] [默认值: true]

只需要在 slave 的配置上配置如下,SLAVE_IP 是你的 slave 的 ip 地址
--connect-url-pattern "${SLAVE_IP}:<%= publicPort %>"
如果还不可以的话加上
--adb-host SLAVE_IP
--adb-port 5037
这个只能获取当前的 android 系统的屏幕,如何获取投屏出去的屏幕呢。比如爱奇艺中的视频投屏到电视上,如何确定投屏出去是正确的呢?