其他分享
首页 > 其他分享> > 2021-06-15 好用的STF-Git项目

2021-06-15 好用的STF-Git项目

作者:互联网

好用的STF-Git项目

1. 基于openstf二次开发的群控管理平台

GitHub:https://github.com/EasilyTest/stf

| 本项目根据openstf以及openstf-ios二次开发。同时支持Android/iOS单体
控制以及群体控制。
| 本项目可以兼容Linux/Mac,利用最新开源的tidevice实现wda快速编译运行,不一定需要Mac设备的支持,体验不一样的openstf.

示例图

快速开始

Mac

仅需两步快速安装 (Mac):

  1. 准备一台 Mac 主机;

  2. 安装 brew 以及nodejs,运行以下命令

    	pip3 install -U tidevice  
    	brew uninstall --ignore-dependencies libimobiledevice  
    	brew uninstall --ignore-dependencies usbmuxd  
    	brew install --HEAD usbmuxd  
    	brew unlink usbmuxd  
    	brew link usbmuxd  
    	brew install --HEAD libimobiledevice  
    	brew install --HEAD ideviceinstaller  
    	brew install carthage  
    	brew install socat  
    	brew install graphicsmagick zeromq protobuf yasm pkg-config  
    	brew cask install android-platform-tools  
    
  3. 进入本项目目录,执行 cnpm install 或者 npm install

  4. 如需使用ios接入,配置WebDriverAgent,clone代码,clone完毕后进入目录,执行./Scripts/bootstrap.sh 下载 wda所需依赖库
    安装xcode(版本< 10.3),运行WebDriverAgent

  5. 如运行错误,检查stf doctor

Linux(centos):

  1. 基础环境准备

    	pip3 install -U tidevice  
    	sudo -s  
    	yum update  
    	yum install git  
    	yum install yum  
    	yum -y install gcc patch 
    	yum install gcc-c++  
    	yum install gcc-gfortran  
    	yum install zeromq-devel  
    
  2. 安装 rethinkdb、GraphicsMagick、zeromq pkg-config、yasm、libsodium、protobuf、libimobiledevice、ideviceinstaller
    2.1 安装rethinkdb

    	git clone https://github.com/rethinkdb/rethinkdb.git
    	cd rethinkdb
    	./configure --allow-fetch
    	make -j4
    	make install
    

    2.2 安装GraphicsMagick

    	wget https://iweb.dl.sourceforge.net/project/graphicsmagick/graphicsmagick/1.3.36/GraphicsMagick-1.3.36.tar.gz  
    	tar -zxvf GraphicsMagick-1.3.36.tar.gz  
    	cd GraphicsMagick-1.3.36  
    	./configure --prefix=/usr/local/gm  
    	make  
    	make install  
    

    2.3 安装zeromq

    	wget https://github.com/zeromq/libzmq/releases/download/v4.2.2/zeromq-4.2.2.tar.gz  
    	tar zxvf zeromq-4.2.2.tar.gz  
    	cd zeromq-4.2.2  
    	./configure --prefix=/usr/local/zeromq  
    	make  
    	make install  
    

    2.4 安装pkg-config

    	wget http://pkgconfig.freedesktop.org/releases/pkg-config-0.29.2.tar.gz  
    	tar -zxvf pkg-config-0.29.2.tar.gz  
    	cd pkg-config-0.29.2  
    	./configure --prefix=/usr/local/pkg-config --with-internal-glib  
    	make  
    	make intall  
    

    2.5 安装yasm

    	wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz  
    	tar -zxvf yasm-1.3.0.tar.gz  
    	cd yasm-1.3.0  
    	./configure --prefix=/usr/local/yasm  
    	make  
    	make install  
    

    2.6 安装libsodium

    	wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.18.tar.gz  
    	tar -zxvf libsodium-1.0.18.tar.gz 
    	 cd libsodium-1.0.18
    	./autogen.sh  
    	./configure --prefix=/usr/local/libsodium  
    	make  
    	make install  
    

    2.7 安装protobuf

    	wget https://github.com/google/protobuf/releases/download/v3.5.0/protobuf-cpp-3.5.0.tar.gz  
    	tar -zxvf protobuf-cpp-3.5.0.tar.gz  
    	cd protobuf-3.5.0  
    	./configure --prefix=/usr/local/protobuf  
    	make  
    	make intall 
    

    2.8 软链接

    	ln -s /usr/local/gm/bin/* /usr/local/bin/  
    	ln -s /usr/local/yasm/bin/* /usr/local/bin/  
    	ln -s /usr/local/libsodium/bin/* /usr/local/bin/  
    	ln -s /usr/local/protobuf/bin/* /usr/local/bin/  
    

    2.9 更新/etc/profile

    	export PKG_CONFIG_PATH=/usr/local/pkg-config
    	export PATH=$PKG_CONFIG_PATH:$PATH  
    

    2.10安装libimobiledevice、ideviceinstaller

    	git clone https://github.com/libimobiledevice/libimobiledevice.git  
    	cd libimobiledevice  
    	./autogen.sh --prefix=/opt/local --enable-debug  
    	make  
    	sudo make install  
    	git clone https://github.com/libimobiledevice/ideviceinstaller.git  
    	cd ideviceinstaller  
    	./autogen.sh  
    	make  
    	sudo make install  
    
  3. cd到目录执行cnpm install或者npm install + glup build

相关工具

测试使用版本

2. deploy-stf-docker 在Ubuntu上使用一键操作部署STF主服务器的脚本

deploy-stf-docker
 ├─ adbd.service.template
 ├─nginx.conf.template
 └─deploy_stf.sh

标签:STF,Git,15,--,IP,stf,install,ADDRESS,docker
来源: https://blog.csdn.net/qq_37497758/article/details/117923621