1.安裝參考
- 官網(wǎng)https://github.com/openstf/stf
- WEB 端批量移動(dòng)設(shè)備管理控制工具 STF 的環(huán)境搭建和運(yùn)行 https://testerhome.com/topics/2988
STF的官網(wǎng)要求:
Node.js >= 6.9 (latest stable version preferred)
ADB properly set up
RethinkDB >= 2.2
GraphicsMagick (for resizing screenshots)
ZeroMQ libraries installed
Protocol Buffers libraries installed
yasm installed (for compiling embedded libjpeg-turbo)
pkg-config so that Node.js can find the libraries
第一安裝啟動(dòng)后報(bào)錯(cuò):
FTL/cli:local 2637 [*] Child process had an error ExitError: Exit code "1"
at ChildProcess.<anonymous> (/home/qian/下載/Appium/nodejs/lib/node_modules/stf/lib/util/procutil.js:49:23)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12
在官網(wǎng)上查找后是因?yàn)闆]有STF的master,懷疑是因?yàn)闆]有開代理的原因。后來開代理重新安裝后,就可以正常使用。然后因?yàn)橹匦掳惭b的原因。導(dǎo)致Bower沒有安裝成功,最后發(fā)現(xiàn)要清理緩存,才能正確安裝。
重新安裝Bower的方法
使用STF
- 啟動(dòng)rethinkDB 指定端口和緩沖大小啟動(dòng):rethinkdb --bind all --cache-size 8192 --http-port 8090
- stf local
待填