STF 介绍

STF是一个挪动设施群控计划的开源实现,原名是 OpenSTF,由 CyberAgent, HeadSpin 以及其余贡献者等反对。起初就由device farm接手了,并改名为 @devicefarmer/stf

装置环境

  • 硬件: Mac Air M1芯片
  • 操作系统版本:Mac Ventura

装置步骤

应用app store 装置xcode

装置brew

拜访 https://brew.sh/ 装置,即

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

装置npm

先装置nvm,而后装置node 8.9.1版本

brew install nvmnvm install 8.9.1brew install python3

装置stf

依照 https://github.com/DeviceFarm... 提供的指引装置,

brew install rethinkdb graphicsmagick zeromq protobuf yasm pkg-config cmakenpm install -g @devicefarmer/stf --python=python2.7

最开始是执行以下命令装置@devicefarmer/stf的,

npm install -g @devicefarmer/stf

然而报错了

Python executable "python" is v3.9.6, which is not supported by gyp

前面通过排查,有人说要加--python=python2.7参数

碰到的其余问题

xcode-select: error

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

解决办法:

1. 装置 Xcode2. 执行 sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

碰到npmERR!

npmERR! fatal: unable to access 'https://github.com/fintechx/swagger-node-runner.git/': LibreSSL SSL_read: error:02FFF03C:system library:func(4095):Operation timed out, errno 60

解决办法也很简略,重试屡次。