open-MAT installation deployment

open-MAT installation deployment

1. Installation JDK
PS: Note that configure the environment variables
2. Installation NDK
PS: Note that configure the environment variables

3. Install minicap
A. Https://github.com/openstf/minicap.git
git submodule the init
git submodule Update
b. Compiler executable files and dynamic link libraries
modified to add jni / Application.mk under android version minicap home directory [APP_PLATFORM : = Android-25]
ndk version was using too high (> 16) to be modified as follows:
due to Android OS abandon turned Clang compiler GCC, the GCC NDK will be removed, it is recommended to use Clang compile your program.
Applicaiton.mk modified in configuration
1> APP_STL:. = Gnustl_static to APP_STL: = _ C ++ static
2> Delete NDK_TOOLCHAIN or NDK_TOOLCHAIN_VERSION.
Run command [ndk-build NDK_PROJECT_PATH = NDK_APPLICATION_MK = / jni / Application.mk APP_BUILD_SCRIPT.. =. / jni / Android.mk] compiling
compiled executable file in the current directory inside libs
. If the current link has the actual device, operable c [./run.sh autosize -t] to test
4. installation minitouch
git clone https://github.com/openstf/minitouch
cd minitouch
git submodule init
git submodule update
ndk-buil
5. 安装node, appiunm, Selenium
wget https://nodejs.org/dist/v9.3.0/node-v9.3.0-linux-x64.tar.xz
tar -xvf node-v9.3.0-linux-x64.tar.xz
ln -s ~/node-v9.3.0-linux-x64/bin/node /usr/bin/node
ln -s ~/node-v9.3.0-linux-x64/bin/npm /usr/bin/npm
npm install -g appium
pip install selenium

6. Installation MAT-Open
A. Git clone https://github.com/fengyca/open-MAT
B. Python dependencies related to the installation requirements incomplete information, direct operation, what is missing pretend
c. Install Celery Redis Nginx
D. Review the configuration information
to modify the file /MAT/apps/appcrawler/templates/myframe.html233 row, 284 rows var wst = new WebSocket ( "ws : // servicesIP: {{mtsp}}"); replaced servicesIP IP server
to modify the file / MAT / apps / appcrawler / deviceYaml.yml, according to the conventional file format, you have to modify the information of a mobile device connected MAT end
of the third step generating execution file into MiniCap / MAP / apps / appcrawler / minicap / libs / lower , save the new folder, a folder named [android-23]
If the resolution of the acquisition device failure, need to manually modify /MAP/apps/appcrawler/views.py 193 rows, the WindowsSize, replaced by actual values
e. start
start nginx
start redis-server [redis-server /path/open-MAT/MAT/redis.conf ]
promoter uwsgi [uwsgi --ini /path/open-MAT/django_uwsgi.ini]
The next boot item celery root [MAT worker celery -A 30 -C -l Debug]
PS: Docker deployment environment need to configure the ports

Guess you like

Origin www.cnblogs.com/zgq123456/p/12640248.html
Recommended