easilytest / stf Goto Github PK
View Code? Open in Web Editor NEWBatch control based on STF support Mac/Linux,基于stf二次开发群控管理平台,支持Mac,Linux部署,一机多控
License: Other
Batch control based on STF support Mac/Linux,基于stf二次开发群控管理平台,支持Mac,Linux部署,一机多控
License: Other
What is the issue or idea you have?
ios 物理机刚接上可正常的显示及操控, 但是过一阵子再点Use会无法显示画面, 返回设备清单并没借用成功
Please provide the steps to reproduce the issue.
What is the expected behavior?
是否有机制可以定时去重新build wda
idevicescreenshot -u 00008020-001E21243431002E 00008020-001E21243431002E.png
Could not connect to screenshotr! 启动报错。
这个截图的是否可以替换成tidevice screenshot screenshot.jpg
目前我可以在容器里面使用tidevice跑ios的自动化了,现在想Linux上的stf上能查看ios的手机,这样怎么做呢?
node 8.9.1 npm 5.5.1 mac 系统11.1
在stf 目录下 cnpm insatll 完成依赖安装后,使用stf doctor 命令查看环境,报错
dyld: lazy symbol binding failed: Symbol not found: _zmq_version
Referenced from: /Users/ly/de/ti/stf/node_modules/_zmq@2.15.3@zmq/build/Release/zmq.node
Expected in: flat namespace
在bin目录下执行:./stf local --public-ip 192.168.15.180
(node版本用8.x, 10.x , 11.x都试过)
报:
YError: Invalid third argument. Expected string but received function.
at argumentTypeError (/Users/caro/EasilyTest/stf/node_modules/yargs/build/index.cjs:163:11)
at parsed.optional.forEach.optional (/Users/caro/EasilyTest/stf/node_modules/yargs/build/index.cjs:145:17)
at Array.forEach ()
at argsert (/Users/caro/EasilyTest/stf/node_modules/yargs/build/index.cjs:138:25)
at Object.version (/Users/caro/EasilyTest/stf/node_modules/yargs/build/index.cjs:2501:9)
at Object. (/Users/caro/EasilyTest/stf/lib/cli/index.js:45:4)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Module.require (internal/modules/cjs/loader.js:723:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object. (/Users/caro/EasilyTest/stf/lib/cli/please.js:2:1)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
2021-04-28T00:02:44.990Z INF/util:procutil 83769 [*] Forking "/Users/caro/EasilyTest/stf/lib/cli migrate"
YError: Invalid third argument. Expected string but received function.
at argumentTypeError (/Users/caro/EasilyTest/stf/node_modules/yargs/build/index.cjs:163:11)
at parsed.optional.forEach.optional (/Users/caro/EasilyTest/stf/node_modules/yargs/build/index.cjs:145:17)
at Array.forEach ()
at argsert (/Users/caro/EasilyTest/stf/node_modules/yargs/build/index.cjs:138:25)
at Object.version (/Users/caro/EasilyTest/stf/node_modules/yargs/build/index.cjs:2501:9)
at Object. (/Users/caro/EasilyTest/stf/lib/cli/index.js:45:4)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:877:12)
at internal/main/run_main_module.js:21:11
/Users/caro/EasilyTest/stf/node_modules/yargs/build/index.cjs:2772
throw err;
^
TypeError: ProtoBuf.loadProtoFile is not a function
at Object. (/Users/caro/EasilyTest/stf/lib/wire/index.js:5:21)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Module.require (internal/modules/cjs/loader.js:723:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object. (/Users/caro/EasilyTest/stf/lib/wire/util.js:3:12)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Module.require (internal/modules/cjs/loader.js:723:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object. (/Users/caro/EasilyTest/stf/lib/db/api.js:9:16)
at Module._compile (internal/modules/cjs/loader.js:816:30)
/Users/caro/EasilyTest/stf/node_modules/bluebird/js/main/promise.js:680
throw e;
^
ExitError: Exit code "1"
at ChildProcess. (/Users/caro/EasilyTest/stf/lib/util/procutil.js:49:23)
at ChildProcess.emit (events.js:193:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:255:12)
What is the issue or idea you have?
Does it only happen on a specific device? Please run adb devices -l
and paste the corresponding row.
Please provide the steps to reproduce the issue.
What is the expected behavior?
Do you see errors or warnings in the stf local
output? If so, please paste them or the full log here.
Please run stf doctor
and paste the output here.
求nodejs版本
我就不提pr了,大佬改一下吧,要是能吧画质调整改出来的话,就更好了,感谢大佬开源
I would like to propose https://github.com/openatx/facebook-wda integration to replace all wda commands or wda proxy apis
npm ERR! SyntaxError: EOL while scanning string literal
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
npm ERR! gyp ERR! stack at ChildProcess.onCpExit (/Users/gawinwong/work/wda-multi-control/stf/node_modules/node-gyp/lib/configure.js:345:16)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:512:28)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm ERR! gyp ERR! System Darwin 21.6.0
npm ERR! gyp ERR! command "/usr/local/Cellar/node/19.8.0/bin/node" "/Users/gawinwong/work/wda-multi-control/stf/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /Users/gawinwong/work/wda-multi-control/stf/node_modules/bufferutil
npm ERR! gyp ERR! node -v v19.8.0
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
启动命令:
/usr/local/bin/node /home/data/new-stf/stf/lib/cli ios-device --serial 7af03b61f78ee26b4ec6186846b693e83cbedcfb --type device --provider localhost.localdomain --screen-port 6100 --connect-port 6101 --vnc-port 6102 --public-ip 10.0.242.17 --group-timeout 900 --storage-url http://localhost:7100/ --wda-port 6103 --mjpeg-port 6104 --wda-remote-port 8100 --wda-mjpeg-remote-port 9100 --screen-jpeg-quality 80 --screen-ping-interval 30000 --screen-ws-url-pattern ws://${publicIp}:${publicPort} --connect-url-pattern ${publicIp}:${publicPort} --heartbeat-interval 10000 --boot-complete-timeout 60000 --vnc-initial-size 600x800 --mute-master never --wda-path /home/data/new-stf/stf/WebDriverAgent/ --connect-sub tcp://127.0.0.1:7114 --connect-push tcp://127.0.0.1:7116
我把libimobiledevice 代码里都替换成tidevice命令了。
./stf doctor 检查没问题
2021-06-16T08:19:56.067Z INF/cli:doctor 164990 [] OS Arch: x64
2021-06-16T08:19:56.069Z INF/cli:doctor 164990 [] OS Platform: linux
2021-06-16T08:19:56.070Z INF/cli:doctor 164990 [] OS Platform: 3.10.0-1160.21.1.el7.x86_64
2021-06-16T08:19:56.070Z INF/cli:doctor 164990 [] Using Node 6.17.1
2021-06-16T08:19:56.098Z INF/cli:doctor 164990 [] Using ZeroMQ 4.3.2
2021-06-16T08:19:56.123Z INF/cli:doctor 164990 [] Using ADB 1.0.31
2021-06-16T08:19:56.124Z INF/cli:doctor 164990 [] Using ProtoBuf 3.11.2
2021-06-16T08:19:56.125Z INF/cli:doctor 164990 [] Using GraphicsMagick 1.3.34
2021-06-16T08:19:56.125Z INF/cli:doctor 164990 [*] Using RethinkDB 2.4.0
启动报错:./stf local --public-ip 10.0.242.17
2021-06-16T08:15:59.041Z INF/db 164378 [*] Connecting to 127.0.0.1:28015
../lib/cli websocket
选项:
-h, --help Show help. [布尔]
-V, --version Show version. [布尔]
--connect-push, -c App-side ZeroMQ PULL endpoint to connect to. [数组] [必需]
--connect-sub, -u App-side ZeroMQ PUB endpoint to connect to. [数组] [必需]
--port, -p The port to bind to. [数字] [默认值: 7110]
--secret, -s The secret to use for auth JSON Web Tokens. Anyone who
knows this token can freely enter the system if they want,
so keep it safe. [字符串] [必需]
--ssid, -i The name of the session ID cookie.
[字符串] [默认值: "ssid"]
--storage-url, -r URL to the storage unit. [字符串] [必需]
Each option can be be overwritten with an environment variable by converting the
option to uppercase, replacing dashes with underscores and prefixing it with
STF_WEBSOCKET_
(e.g. STF_WEBSOCKET_STORAGE_URL
).
Unexpected token ...
2021-06-16T08:15:59.114Z FTL/cli:local 164321 [*] Child process had an error ExitError: Exit code "1"
at ChildProcess. (/home/data/new-stf/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:219:12)
bower cached https://github.com/angular/bower-angular.git#1.8.0
bower validate 1.8.0 against https://github.com/angular/bower-angular.git#>=1.2.1
bower ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/chieffancypants/angular-hotkeys.git", exit code of #128 fatal: 无法访问 'https://github.com/chieffancypants/angular-hotkeys.git/':LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
Additional error details:
fatal: 无法访问 'https://github.com/chieffancypants/angular-hotkeys.git/':LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
✖ Install fail! RunScriptError: Run "sh -c bower install --allow-root && not-in-install && gulp build || in-install" error, exit code 1
RunScriptError: Run "sh -c bower install --allow-root && not-in-install && gulp build || in-install" error, exit code 1
at ChildProcess.proc.on.code (/Users/oxx/.nvm/versions/node/v8.12.0/lib/node_modules/cnpm/node_modules/runscript/index.js:96:21)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:915:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
npminstall version: 3.28.0
npminstall args: /Users/oxx/.nvm/versions/node/v8.12.0/bin/node /Users/oxx/.nvm/versions/node/v8.12.0/lib/node_modules/cnpm/node_modules/npminstall/bin/install.js --fix-bug-versions --china --userconfig=/Users/oxx/.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://registry.nlark.com
使用cnpm install 和npm install 安装失败
使用vpn 并在命令行开启代理
是我的vpn环境导致的吗?
What is the issue or idea you have?
最近 2 天安装好像遇到里面 Issue1 #1 的问题,
我遇到差不多的报错,Issue1 的作者说有些依赖没下全,本人小白,不知道哪里查哪些依赖没下全,如何重新下载?
Please provide the steps to reproduce the issue.
执行npm install
gulp build
的完整日志在:
https://github.com/JaminZhang/stf/blob/master/logs/stf-install-log.sh
主要报错是在执行 gulp build
如下图:
[188] ./~/lodash/lodash.js 543 kB {1} {3} {5} [built]
[275] ./res/app/components/stf/util/common/index.js 276 bytes {1} {3} {5} [built]
[276] ./res/app/components/stf/util/common/common-service.js 6.21 kB {1} {3} {5} [built]
[578] ./res/auth/mock/scripts/signin/index.js 476 bytes {5} [built]
[579] ./res/auth/mock/scripts/signin/signin.css 950 bytes {5} [built]
[580] ./~/css-loader!./res/auth/mock/scripts/signin/signin.css 1.71 kB {5} [built]
[581] ./res/auth/mock/scripts/signin/signin.pug 2.39 kB {5} [built]
[582] ./res/auth/mock/scripts/signin/signin-controller.js 1.23 kB {5} [built]
chunk {6} entry/commons.entry.js (entry/commons.entry.js) 0 bytes [rendered]
ERROR in ./res/app/app.js
Module not found: Error: Cannot resolve module 'angular' in /root/stf/res/app
@ ./res/app/app.js 6:2-20
ERROR in ./res/auth/mock/scripts/entry.js
Module not found: Error: Cannot resolve module 'angular' in /root/stf/res/auth/mock/scripts
@ ./res/auth/mock/scripts/entry.js 4:2-20
ERROR in ./res/auth/ldap/scripts/entry.js
Module not found: Error: Cannot resolve module 'angular' in /root/stf/res/auth/ldap/scripts
@ ./res/auth/ldap/scripts/entry.js 4:2-20
ERROR in ./res/app/app.js
Module not found: Error: Cannot resolve module 'angular-route' in /root/stf/res/app
@ ./res/app/app.js 7:2-26
ERROR in ./res/auth/mock/scripts/entry.js
Module not found: Error: Cannot resolve module 'angular-route' in /root/stf/res/auth/mock/scripts
@ ./res/auth/mock/scripts/entry.js 5:2-26
ERROR in ./res/auth/ldap/scripts/entry.js
Module not found: Error: Cannot resolve module 'angular-route' in /root/stf/res/auth/ldap/scripts
@ ./res/auth/ldap/scripts/entry.js 5:2-26
ERROR in ./res/app/app.js
Module not found: Error: Cannot resolve module 'angular-touch' in /root/stf/res/app
@ ./res/app/app.js 8:2-26
ERROR in ./res/auth/mock/scripts/entry.js
Module not found: Error: Cannot resolve module 'angular-touch' in /root/stf/res/auth/mock/scripts
@ ./res/auth/mock/scripts/entry.js 6:2-26
Please run stf doctor
and paste the output here.
root@ubuntu-18-04:~/stf# ./bin/stf -V
3.4.1
root@ubuntu-18-04:~/stf# ./bin/stf doctor
2023-03-18T13:45:39.235Z INF/cli:doctor 79766 [*] OS Arch: x64
2023-03-18T13:45:39.236Z INF/cli:doctor 79766 [*] OS Platform: linux
2023-03-18T13:45:39.236Z INF/cli:doctor 79766 [*] OS Platform: 4.15.0-206-generic
2023-03-18T13:45:39.237Z INF/cli:doctor 79766 [*] Using Node 8.9.0
2023-03-18T13:45:39.255Z INF/cli:doctor 79766 [*] Using ZeroMQ 4.2.5
2023-03-18T13:45:39.267Z INF/cli:doctor 79766 [*] Using ProtoBuf 3.0.0
2023-03-18T13:45:39.267Z INF/cli:doctor 79766 [*] Using GraphicsMagick 1.3.28
2023-03-18T13:45:39.268Z INF/cli:doctor 79766 [*] Using ADB 1.0.39
2023-03-18T13:45:39.279Z INF/cli:doctor 79766 [*] Using RethinkDB 2.4.3~0bionic
有没有大佬 把这个项目容器化 快速部署哇
What is the issue or idea you have?
Does it only happen on a specific device? Please run adb devices -l
and paste the corresponding row.
Please provide the steps to reproduce the issue.
What is the expected behavior?
Do you see errors or warnings in the stf local
output? If so, please paste them or the full log here.
Please run stf doctor
and paste the output here.
这个支持ios设备吗?有什么版本需求没?越狱或者是13.0以上,git挺不错的,有其他详细的文档或者教程之类的?
What is the issue or idea you have?
Does it only happen on a specific device? Please run adb devices -l
and paste the corresponding row.
Please provide the steps to reproduce the issue.
What is the expected behavior?
Do you see errors or warnings in the stf local
output? If so, please paste them or the full log here.
Please run stf doctor
and paste the output here.
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether gcc and cc understand -c and -o together... yes
./configure: line 4594: AC_PROG_LIBTOOL: command not found
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libusbmuxd... no
configure: error: Package requirements (libusbmuxd-2.0 >= 2.0.2) were not met:
No package 'libusbmuxd-2.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables libusbmuxd_CFLAGS
and libusbmuxd_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
What is the issue or idea you have?
Does it only happen on a specific device? Please run adb devices -l
and paste the corresponding row.
Please provide the steps to reproduce the issue.
What is the expected behavior?
Do you see errors or warnings in the stf local
output? If so, please paste them or the full log here.
Please run stf doctor
and paste the output here.
wda要对应作者git上的,别瞎装就能正常跑了。。。
在mac12上一直连不上设备,总是准备中,又断开,日志如下:
2022-06-20T08:49:10.068Z INF/ios-provider 87441 [] Found device "cce2466fb8875215670f22970a0a5c01bd909209" (device)
2022-06-20T08:49:10.130Z INF/reaper 87439 [reaper001] Device "cce2466fb8875215670f22970a0a5c01bd909209" is present
2022-06-20T08:49:10.298Z INF/ios-provider 87441 [] Registered device "cce2466fb8875215670f22970a0a5c01bd909209"
2022-06-20T08:49:10.718Z INF/ios-device:support:push 87464 [cce2466fb8875215670f22970a0a5c01bd909209] Sending output to "tcp://127.0.0.1:7116"
2022-06-20T08:49:10.721Z INF/ios-device 87464 [cce2466fb8875215670f22970a0a5c01bd909209] Preparing device
(node:87464) Warning: N-API is an experimental feature and could change at any time.
2022-06-20T08:49:11.348Z INF/ios-device:support:sub 87464 [cce2466fb8875215670f22970a0a5c01bd909209] Receiving input from "tcp://127.0.0.1:7114"
2022-06-20T08:49:11.349Z INF/ios-device:support:sub 87464 [cce2466fb8875215670f22970a0a5c01bd909209] Subscribing to permanent channel "ALL"
2022-06-20T08:49:11.353Z INF/ios-device:plugins:display 87464 [cce2466fb8875215670f22970a0a5c01bd909209] Reading display info
dyld[87464]: missing symbol called
2022-06-20T08:49:12.175Z WRN/ios-provider 87441 [] Device worker "cce2466fb8875215670f22970a0a5c01bd909209" was killed with signal SIGABRT, assuming deliberate action and not restarting
2022-06-20T08:49:12.176Z INF/ios-provider 87441 [] Cleaning up device worker "cce2466fb8875215670f22970a0a5c01bd909209"
2022-06-20T08:49:12.177Z INF/ios-provider 87441 [] Device worker "cce2466fb8875215670f22970a0a5c01bd909209" has retired
2022-06-20T08:49:12.177Z INF/ios-provider 87441 [*] remove the device cce2466fb8875215670f22970a0a5c01bd909209 frome devicelist
stf doctor如下
2022-06-20T08:53:50.568Z INF/cli:doctor 87934 [] OS Arch: x64
2022-06-20T08:53:50.570Z INF/cli:doctor 87934 [] OS Platform: darwin
2022-06-20T08:53:50.570Z INF/cli:doctor 87934 [] OS Platform: 21.5.0
2022-06-20T08:53:50.570Z INF/cli:doctor 87934 [] Using Node 8.9.3
2022-06-20T08:53:50.585Z INF/cli:doctor 87934 [] Using ZeroMQ 4.3.4
2022-06-20T08:53:50.599Z ERR/cli:doctor 87934 [] ADB is not installed (adb
is missing)
2022-06-20T08:53:50.600Z INF/cli:doctor 87934 [] Using ProtoBuf 3.17.3
2022-06-20T08:53:50.600Z INF/cli:doctor 87934 [] Using GraphicsMagick 1.3.36
2022-06-20T08:53:50.622Z INF/cli:doctor 87934 [*] Using RethinkDB 2.4.1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.