L&D series: OpenSTF in 2023
Learning and Development chapter 25.
DISCLAIMER: I’m using MacBook Pro M1.
INSTALLATION
You can install the requirements here. I’m using nodejs ≥ 16.x.x and it’s fine (for now).
Instant command:
brew install rethinkdb graphicsmagick zeromq protobuf yasm pkg-config cmake
npm install -g @devicefarmer/stf
RUNNING
rethinkdb --bind all --http-port 1234
stf local
We can use https://github.com/tmux/tmux to detach the screen view and then close it.
Make sure to check the installation is success by stf doctor
.
USER INTERFACE
By default, we can run both real device and simulator from OpenSTF.
iOS STF
Since I don’t own any iOS devices, but it also seems easy to start the iOS device farm.
See the requirements here.
Clone the repo with this method.
git clone --recurse-submodules https://github.com/DeviceFarmer/ios-minicap.git
cd ios-minicap
git submodule init
git submodule update
Do not forget to connect your device before run command ./build.sh
. After that then run ./run.sh
also continue with this
cd example
npm install
node app.js
Open http://localhost:9002 in browser to see the iOS STF UI.