• 我这边一台 OPPO A83,安装过程中的这个安装也是识别不出来。

  • 请问是安装 apk 和安装确认一起进行是吗?

  • 好的,谢谢了。

  • app-inspector:66:44 [master] pid:424 undefined
    (node:424) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: >> app-inspector:66:44 [master] pid:424 undefined

  • seirradeMac:~ hack$ app-inspector -u bb5e64f1c4663afce48181d8033ef20a1a0086bd

    port: 5678 was occupied, changed port: 5680
    xctest-client start with port: 8900
    WebDriverAgent version: 1.1.6
    app-inspector:66:44 [master] pid:24427 Error: connect ECONNREFUSED 127.0.0.1:8900
    at Object.exports._errnoException (util.js:1018:11)
    at exports._exceptionWithHostPort (util.js:1041:20)
    at TCPConnectWrap.afterConnect as oncomplete
    (node:24427) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: >> app-inspector:66:44 [master] pid:24427 Error: connect ECONNREFUSED 127.0.0.1:8900
    at Object.exports._errnoException (util.js:1018:11)
    at exports._exceptionWithHostPort (util.js:1041:20)
    at TCPConnectWrap.afterConnect as oncomplete

  • 比如 live photo,我想长按,要怎么实现。
    API 操作的有更详细的文档吗

  • 请加我入群,我想学习。

  • QQ 群搜索不到。。。

  • Macaca-Java 版入门指南 at 2017年04月06日
  • clydeiMac:~ cly$ stf local --public-ip 192.168.28.2 --allow-remote
    INF/util:procutil 10270 [] Forking "/usr/local/lib/node_modules/stf/lib/cli.js migrate"
    INF/db 10271 [
    ] Connecting to 127.0.0.1:28015
    INF/db:setup 10271 [] Database "stf" already exists
    INF/db:setup 10271 [
    ] Table "users" already exists
    INF/db:setup 10271 [] Table "accessTokens" already exists
    INF/db:setup 10271 [
    ] Table "vncauth" already exists
    INF/db:setup 10271 [] Table "devices" already exists
    INF/db:setup 10271 [
    ] Table "logs" already exists
    INF/db:setup 10271 [] Index "users"."adbKeys" already exists
    INF/db:setup 10271 [
    ] Index "accessTokens"."email" already exists
    INF/db:setup 10271 [] Index "vncauth"."response" already exists
    INF/db:setup 10271 [
    ] Index "vncauth"."responsePerDevice" already exists
    INF/db:setup 10271 [] Index "devices"."owner" already exists
    INF/db:setup 10271 [
    ] Index "devices"."present" already exists
    INF/db:setup 10271 [] Waiting for index "users"."adbKeys"
    INF/db:setup 10271 [
    ] Waiting for index "accessTokens"."email"
    INF/db:setup 10271 [] Waiting for index "vncauth"."response"
    INF/db:setup 10271 [
    ] Waiting for index "vncauth"."responsePerDevice"
    INF/db:setup 10271 [] Waiting for index "devices"."owner"
    INF/db:setup 10271 [
    ] Waiting for index "devices"."present"
    INF/db:setup 10271 [] Index "devices"."providerChannel" already exists
    INF/db:setup 10271 [
    ] Waiting for index "devices"."providerChannel"
    INF/db:setup 10271 [] Index "users"."adbKeys" is ready
    INF/db:setup 10271 [
    ] Index "accessTokens"."email" is ready
    INF/db:setup 10271 [] Index "vncauth"."responsePerDevice" is ready
    INF/db:setup 10271 [
    ] Index "vncauth"."response" is ready
    INF/db:setup 10271 [] Index "devices"."providerChannel" is ready
    INF/db:setup 10271 [
    ] Index "devices"."present" is ready
    INF/db:setup 10271 [] Index "devices"."owner" is ready
    INF/util:procutil 10270 [
    ] Forking "/usr/local/lib/node_modules/stf/lib/cli.js triproxy app001 --bind-pub tcp://127.0.0.1:7111 --bind-dealer tcp://127.0.0.1:7112 --bind-pull tcp://127.0.0.1:7113"
    INF/util:procutil 10270 [] Forking "/usr/local/lib/node_modules/stf/lib/cli.js triproxy dev001 --bind-pub tcp://127.0.0.1:7114 --bind-dealer tcp://127.0.0.1:7115 --bind-pull tcp://127.0.0.1:7116"
    INF/util:procutil 10270 [
    ] Forking "/usr/local/lib/node_modules/stf/lib/cli.js processor proc001 --connect-app-dealer tcp://127.0.0.1:7112 --connect-dev-dealer tcp://127.0.0.1:7115"
    INF/util:procutil 10270 [] Forking "/usr/local/lib/node_modules/stf/lib/cli.js processor proc002 --connect-app-dealer tcp://127.0.0.1:7112 --connect-dev-dealer tcp://127.0.0.1:7115"
    INF/util:procutil 10270 [
    ] Forking "/usr/local/lib/node_modules/stf/lib/cli.js reaper reaper001 --connect-push tcp://127.0.0.1:7116 --connect-sub tcp://127.0.0.1:7111"
    INF/util:procutil 10270 [] Forking "/usr/local/lib/node_modules/stf/lib/cli.js provider --name clydeiMac.local --min-port 7400 --max-port 7700 --connect-sub tcp://127.0.0.1:7114 --connect-push tcp://127.0.0.1:7116 --group-timeout 900 --public-ip 192.168.28.2 --storage-url http://localhost:7100/ --adb-host 127.0.0.1 --adb-port 5037 --vnc-initial-size 600x800 --allow-remote"
    INF/util:procutil 10270 [
    ] Forking "/usr/local/lib/node_modules/stf/lib/cli.js auth-mock --port 7120 --secret kute kittykat --app-url http://192.168.28.2:7100/"
    INF/util:procutil 10270 [] Forking "/usr/local/lib/node_modules/stf/lib/cli.js app --port 7105 --secret kute kittykat --auth-url http://192.168.28.2:7100/auth/mock/ --websocket-url http://192.168.28.2:7110/"
    INF/util:procutil 10270 [
    ] Forking "/usr/local/lib/node_modules/stf/lib/cli.js api --port 7106 --secret kute kittykat --connect-push tcp://127.0.0.1:7113 --connect-sub tcp://127.0.0.1:7111"
    INF/util:procutil 10270 [] Forking "/usr/local/lib/node_modules/stf/lib/cli.js websocket --port 7110 --secret kute kittykat --storage-url http://localhost:7100/ --connect-sub tcp://127.0.0.1:7111 --connect-push tcp://127.0.0.1:7113"
    INF/util:procutil 10270 [
    ] Forking "/usr/local/lib/node_modules/stf/lib/cli.js storage-temp --port 7102"
    INF/util:procutil 10270 [] Forking "/usr/local/lib/node_modules/stf/lib/cli.js storage-plugin-image --port 7103 --storage-url http://localhost:7100/"
    INF/util:procutil 10270 [
    ] Forking "/usr/local/lib/node_modules/stf/lib/cli.js storage-plugin-apk --port 7104 --storage-url http://localhost:7100/"
    INF/util:procutil 10270 [*] Forking "/usr/local/lib/node_modules/stf/lib/cli.js poorxy --port 7100 --app-url http://localhost:7105/ --auth-url http://localhost:7120/ --api-url http://localhost:7106/ --websocket-url http://localhost:7110/ --storage-url http://localhost:7102/ --storage-plugin-image-url http://localhost:7103/ --storage-plugin-apk-url http://localhost:7104/"
    /usr/local/lib/node_modules/stf/node_modules/bindings/bindings.js:91
    throw err
    ^

    Error: Could not locate the bindings file. Tried:
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/Debug/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/Release/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/out/Debug/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/Debug/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/out/Release/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/Release/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/default/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/compiled/6.10.1/darwin/x64/zmq.node
    at bindings (/usr/local/lib/node_modules/stf/node_modules/bindings/bindings.js:88:9)
    at Object. (/usr/local/lib/node_modules/stf/node_modules/zmq/lib/index.js:6:30)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object. (/usr/local/lib/node_modules/stf/node_modules/zmq/index.js:2:18)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    FTL/cli:local 10270 [] Child process had an error ExitError: Exit code "1"
    at ChildProcess. (/usr/local/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)
    INF/cli:local 10270 [
    ] Shutting down all child processes
    /usr/local/lib/node_modules/stf/node_modules/bindings/bindings.js:91
    throw err
    ^

    Error: Could not locate the bindings file. Tried:
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/Debug/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/Release/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/out/Debug/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/Debug/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/out/Release/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/Release/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/default/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/compiled/6.10.1/darwin/x64/zmq.node
    at bindings (/usr/local/lib/node_modules/stf/node_modules/bindings/bindings.js:88:9)
    at Object. (/usr/local/lib/node_modules/stf/node_modules/zmq/lib/index.js:6:30)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object. (/usr/local/lib/node_modules/stf/node_modules/zmq/index.js:2:18)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)

  • clydeiMac:~ cly$ stf local --public-ip 192.168.28.2 --allow-remote
    INF/util:procutil 10270 [] Forking "/usr/local/lib/node_modules/stf/lib/cli.js migrate"
    INF/db 10271 [
    ] Connecting to 127.0.0.1:28015
    INF/db:setup 10271 [] Database "stf" already exists
    INF/db:setup 10271 [
    ] Table "users" already exists
    INF/db:setup 10271 [] Table "accessTokens" already exists
    INF/db:setup 10271 [
    ] Table "vncauth" already exists
    INF/db:setup 10271 [] Table "devices" already exists
    INF/db:setup 10271 [
    ] Table "logs" already exists
    INF/db:setup 10271 [] Index "users"."adbKeys" already exists
    INF/db:setup 10271 [
    ] Index "accessTokens"."email" already exists
    INF/db:setup 10271 [] Index "vncauth"."response" already exists
    INF/db:setup 10271 [
    ] Index "vncauth"."responsePerDevice" already exists
    INF/db:setup 10271 [] Index "devices"."owner" already exists
    INF/db:setup 10271 [
    ] Index "devices"."present" already exists
    INF/db:setup 10271 [] Waiting for index "users"."adbKeys"
    INF/db:setup 10271 [
    ] Waiting for index "accessTokens"."email"
    INF/db:setup 10271 [] Waiting for index "vncauth"."response"
    INF/db:setup 10271 [
    ] Waiting for index "vncauth"."responsePerDevice"
    INF/db:setup 10271 [] Waiting for index "devices"."owner"
    INF/db:setup 10271 [
    ] Waiting for index "devices"."present"
    INF/db:setup 10271 [] Index "devices"."providerChannel" already exists
    INF/db:setup 10271 [
    ] Waiting for index "devices"."providerChannel"
    INF/db:setup 10271 [] Index "users"."adbKeys" is ready
    INF/db:setup 10271 [
    ] Index "accessTokens"."email" is ready
    INF/db:setup 10271 [] Index "vncauth"."responsePerDevice" is ready
    INF/db:setup 10271 [
    ] Index "vncauth"."response" is ready
    INF/db:setup 10271 [] Index "devices"."providerChannel" is ready
    INF/db:setup 10271 [
    ] Index "devices"."present" is ready
    INF/db:setup 10271 [] Index "devices"."owner" is ready
    INF/util:procutil 10270 [
    ] Forking "/usr/local/lib/node_modules/stf/lib/cli.js triproxy app001 --bind-pub tcp://127.0.0.1:7111 --bind-dealer tcp://127.0.0.1:7112 --bind-pull tcp://127.0.0.1:7113"
    INF/util:procutil 10270 [] Forking "/usr/local/lib/node_modules/stf/lib/cli.js triproxy dev001 --bind-pub tcp://127.0.0.1:7114 --bind-dealer tcp://127.0.0.1:7115 --bind-pull tcp://127.0.0.1:7116"
    INF/util:procutil 10270 [
    ] Forking "/usr/local/lib/node_modules/stf/lib/cli.js processor proc001 --connect-app-dealer tcp://127.0.0.1:7112 --connect-dev-dealer tcp://127.0.0.1:7115"
    INF/util:procutil 10270 [] Forking "/usr/local/lib/node_modules/stf/lib/cli.js processor proc002 --connect-app-dealer tcp://127.0.0.1:7112 --connect-dev-dealer tcp://127.0.0.1:7115"
    INF/util:procutil 10270 [
    ] Forking "/usr/local/lib/node_modules/stf/lib/cli.js reaper reaper001 --connect-push tcp://127.0.0.1:7116 --connect-sub tcp://127.0.0.1:7111"
    INF/util:procutil 10270 [] Forking "/usr/local/lib/node_modules/stf/lib/cli.js provider --name clydeiMac.local --min-port 7400 --max-port 7700 --connect-sub tcp://127.0.0.1:7114 --connect-push tcp://127.0.0.1:7116 --group-timeout 900 --public-ip 192.168.28.2 --storage-url http://localhost:7100/ --adb-host 127.0.0.1 --adb-port 5037 --vnc-initial-size 600x800 --allow-remote"
    INF/util:procutil 10270 [
    ] Forking "/usr/local/lib/node_modules/stf/lib/cli.js auth-mock --port 7120 --secret kute kittykat --app-url http://192.168.28.2:7100/"
    INF/util:procutil 10270 [] Forking "/usr/local/lib/node_modules/stf/lib/cli.js app --port 7105 --secret kute kittykat --auth-url http://192.168.28.2:7100/auth/mock/ --websocket-url http://192.168.28.2:7110/"
    INF/util:procutil 10270 [
    ] Forking "/usr/local/lib/node_modules/stf/lib/cli.js api --port 7106 --secret kute kittykat --connect-push tcp://127.0.0.1:7113 --connect-sub tcp://127.0.0.1:7111"
    INF/util:procutil 10270 [] Forking "/usr/local/lib/node_modules/stf/lib/cli.js websocket --port 7110 --secret kute kittykat --storage-url http://localhost:7100/ --connect-sub tcp://127.0.0.1:7111 --connect-push tcp://127.0.0.1:7113"
    INF/util:procutil 10270 [
    ] Forking "/usr/local/lib/node_modules/stf/lib/cli.js storage-temp --port 7102"
    INF/util:procutil 10270 [] Forking "/usr/local/lib/node_modules/stf/lib/cli.js storage-plugin-image --port 7103 --storage-url http://localhost:7100/"
    INF/util:procutil 10270 [
    ] Forking "/usr/local/lib/node_modules/stf/lib/cli.js storage-plugin-apk --port 7104 --storage-url http://localhost:7100/"
    INF/util:procutil 10270 [*] Forking "/usr/local/lib/node_modules/stf/lib/cli.js poorxy --port 7100 --app-url http://localhost:7105/ --auth-url http://localhost:7120/ --api-url http://localhost:7106/ --websocket-url http://localhost:7110/ --storage-url http://localhost:7102/ --storage-plugin-image-url http://localhost:7103/ --storage-plugin-apk-url http://localhost:7104/"
    /usr/local/lib/node_modules/stf/node_modules/bindings/bindings.js:91
    throw err
    ^

    Error: Could not locate the bindings file. Tried:
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/Debug/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/Release/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/out/Debug/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/Debug/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/out/Release/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/Release/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/default/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/compiled/6.10.1/darwin/x64/zmq.node
    at bindings (/usr/local/lib/node_modules/stf/node_modules/bindings/bindings.js:88:9)
    at Object. (/usr/local/lib/node_modules/stf/node_modules/zmq/lib/index.js:6:30)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object. (/usr/local/lib/node_modules/stf/node_modules/zmq/index.js:2:18)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    FTL/cli:local 10270 [] Child process had an error ExitError: Exit code "1"
    at ChildProcess. (/usr/local/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)
    INF/cli:local 10270 [
    ] Shutting down all child processes
    /usr/local/lib/node_modules/stf/node_modules/bindings/bindings.js:91
    throw err
    ^

    Error: Could not locate the bindings file. Tried:
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/Debug/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/Release/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/out/Debug/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/Debug/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/out/Release/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/Release/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/default/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/compiled/6.10.1/darwin/x64/zmq.node
    at bindings (/usr/local/lib/node_modules/stf/node_modules/bindings/bindings.js:88:9)
    at Object. (/usr/local/lib/node_modules/stf/node_modules/zmq/lib/index.js:6:30)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object. (/usr/local/lib/node_modules/stf/node_modules/zmq/index.js:2:18)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)

  • STF 使用系列心得 [安装篇] at 2017年03月27日

    clydeiMac:~ cly$ stf local --public-ip 192.168.28.2 --allow-remote
    INF/util:procutil 10270 [] Forking "/usr/local/lib/node_modules/stf/lib/cli.js migrate"
    INF/db 10271 [
    ] Connecting to 127.0.0.1:28015
    INF/db:setup 10271 [] Database "stf" already exists
    INF/db:setup 10271 [
    ] Table "users" already exists
    INF/db:setup 10271 [] Table "accessTokens" already exists
    INF/db:setup 10271 [
    ] Table "vncauth" already exists
    INF/db:setup 10271 [] Table "devices" already exists
    INF/db:setup 10271 [
    ] Table "logs" already exists
    INF/db:setup 10271 [] Index "users"."adbKeys" already exists
    INF/db:setup 10271 [
    ] Index "accessTokens"."email" already exists
    INF/db:setup 10271 [] Index "vncauth"."response" already exists
    INF/db:setup 10271 [
    ] Index "vncauth"."responsePerDevice" already exists
    INF/db:setup 10271 [] Index "devices"."owner" already exists
    INF/db:setup 10271 [
    ] Index "devices"."present" already exists
    INF/db:setup 10271 [] Waiting for index "users"."adbKeys"
    INF/db:setup 10271 [
    ] Waiting for index "accessTokens"."email"
    INF/db:setup 10271 [] Waiting for index "vncauth"."response"
    INF/db:setup 10271 [
    ] Waiting for index "vncauth"."responsePerDevice"
    INF/db:setup 10271 [] Waiting for index "devices"."owner"
    INF/db:setup 10271 [
    ] Waiting for index "devices"."present"
    INF/db:setup 10271 [] Index "devices"."providerChannel" already exists
    INF/db:setup 10271 [
    ] Waiting for index "devices"."providerChannel"
    INF/db:setup 10271 [] Index "users"."adbKeys" is ready
    INF/db:setup 10271 [
    ] Index "accessTokens"."email" is ready
    INF/db:setup 10271 [] Index "vncauth"."responsePerDevice" is ready
    INF/db:setup 10271 [
    ] Index "vncauth"."response" is ready
    INF/db:setup 10271 [] Index "devices"."providerChannel" is ready
    INF/db:setup 10271 [
    ] Index "devices"."present" is ready
    INF/db:setup 10271 [] Index "devices"."owner" is ready
    INF/util:procutil 10270 [
    ] Forking "/usr/local/lib/node_modules/stf/lib/cli.js triproxy app001 --bind-pub tcp://127.0.0.1:7111 --bind-dealer tcp://127.0.0.1:7112 --bind-pull tcp://127.0.0.1:7113"
    INF/util:procutil 10270 [] Forking "/usr/local/lib/node_modules/stf/lib/cli.js triproxy dev001 --bind-pub tcp://127.0.0.1:7114 --bind-dealer tcp://127.0.0.1:7115 --bind-pull tcp://127.0.0.1:7116"
    INF/util:procutil 10270 [
    ] Forking "/usr/local/lib/node_modules/stf/lib/cli.js processor proc001 --connect-app-dealer tcp://127.0.0.1:7112 --connect-dev-dealer tcp://127.0.0.1:7115"
    INF/util:procutil 10270 [] Forking "/usr/local/lib/node_modules/stf/lib/cli.js processor proc002 --connect-app-dealer tcp://127.0.0.1:7112 --connect-dev-dealer tcp://127.0.0.1:7115"
    INF/util:procutil 10270 [
    ] Forking "/usr/local/lib/node_modules/stf/lib/cli.js reaper reaper001 --connect-push tcp://127.0.0.1:7116 --connect-sub tcp://127.0.0.1:7111"
    INF/util:procutil 10270 [] Forking "/usr/local/lib/node_modules/stf/lib/cli.js provider --name clydeiMac.local --min-port 7400 --max-port 7700 --connect-sub tcp://127.0.0.1:7114 --connect-push tcp://127.0.0.1:7116 --group-timeout 900 --public-ip 192.168.28.2 --storage-url http://localhost:7100/ --adb-host 127.0.0.1 --adb-port 5037 --vnc-initial-size 600x800 --allow-remote"
    INF/util:procutil 10270 [
    ] Forking "/usr/local/lib/node_modules/stf/lib/cli.js auth-mock --port 7120 --secret kute kittykat --app-url http://192.168.28.2:7100/"
    INF/util:procutil 10270 [] Forking "/usr/local/lib/node_modules/stf/lib/cli.js app --port 7105 --secret kute kittykat --auth-url http://192.168.28.2:7100/auth/mock/ --websocket-url http://192.168.28.2:7110/"
    INF/util:procutil 10270 [
    ] Forking "/usr/local/lib/node_modules/stf/lib/cli.js api --port 7106 --secret kute kittykat --connect-push tcp://127.0.0.1:7113 --connect-sub tcp://127.0.0.1:7111"
    INF/util:procutil 10270 [] Forking "/usr/local/lib/node_modules/stf/lib/cli.js websocket --port 7110 --secret kute kittykat --storage-url http://localhost:7100/ --connect-sub tcp://127.0.0.1:7111 --connect-push tcp://127.0.0.1:7113"
    INF/util:procutil 10270 [
    ] Forking "/usr/local/lib/node_modules/stf/lib/cli.js storage-temp --port 7102"
    INF/util:procutil 10270 [] Forking "/usr/local/lib/node_modules/stf/lib/cli.js storage-plugin-image --port 7103 --storage-url http://localhost:7100/"
    INF/util:procutil 10270 [
    ] Forking "/usr/local/lib/node_modules/stf/lib/cli.js storage-plugin-apk --port 7104 --storage-url http://localhost:7100/"
    INF/util:procutil 10270 [*] Forking "/usr/local/lib/node_modules/stf/lib/cli.js poorxy --port 7100 --app-url http://localhost:7105/ --auth-url http://localhost:7120/ --api-url http://localhost:7106/ --websocket-url http://localhost:7110/ --storage-url http://localhost:7102/ --storage-plugin-image-url http://localhost:7103/ --storage-plugin-apk-url http://localhost:7104/"
    /usr/local/lib/node_modules/stf/node_modules/bindings/bindings.js:91
    throw err
    ^

    Error: Could not locate the bindings file. Tried:
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/Debug/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/Release/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/out/Debug/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/Debug/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/out/Release/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/Release/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/default/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/compiled/6.10.1/darwin/x64/zmq.node
    at bindings (/usr/local/lib/node_modules/stf/node_modules/bindings/bindings.js:88:9)
    at Object. (/usr/local/lib/node_modules/stf/node_modules/zmq/lib/index.js:6:30)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object. (/usr/local/lib/node_modules/stf/node_modules/zmq/index.js:2:18)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    FTL/cli:local 10270 [] Child process had an error ExitError: Exit code "1"
    at ChildProcess. (/usr/local/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)
    INF/cli:local 10270 [
    ] Shutting down all child processes
    /usr/local/lib/node_modules/stf/node_modules/bindings/bindings.js:91
    throw err
    ^

    Error: Could not locate the bindings file. Tried:
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/Debug/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/Release/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/out/Debug/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/Debug/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/out/Release/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/Release/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/default/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/compiled/6.10.1/darwin/x64/zmq.node
    at bindings (/usr/local/lib/node_modules/stf/node_modules/bindings/bindings.js:88:9)
    at Object. (/usr/local/lib/node_modules/stf/node_modules/zmq/lib/index.js:6:30)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object. (/usr/local/lib/node_modules/stf/node_modules/zmq/index.js:2:18)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)

  • STF 使用系列心得 [安装篇] at 2017年03月27日

    你解决了吗?我还是不知道如何去解决

  • 试了很多方法,都没解决。

  • STF 使用系列心得 [安装篇] at 2017年03月24日

    clydeiMac:~ cly$ stf doctor
    /usr/local/lib/node_modules/stf/node_modules/bindings/bindings.js:91
    throw err
    ^

    Error: Could not locate the bindings file. Tried:
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/Debug/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/Release/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/out/Debug/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/Debug/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/out/Release/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/Release/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/default/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/compiled/6.10.1/darwin/x64/zmq.node
    at bindings (/usr/local/lib/node_modules/stf/node_modules/bindings/bindings.js:88:9)
    at Object. (/usr/local/lib/node_modules/stf/node_modules/zmq/lib/index.js:6:30)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object. (/usr/local/lib/node_modules/stf/node_modules/zmq/index.js:2:18)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)

    我报这个错误

  • clydeiMac:~ cly$ stf doctor
    /usr/local/lib/node_modules/stf/node_modules/bindings/bindings.js:91
    throw err
    ^

    Error: Could not locate the bindings file. Tried:
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/Debug/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/Release/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/out/Debug/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/Debug/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/out/Release/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/Release/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/build/default/zmq.node
    → /usr/local/lib/node_modules/stf/node_modules/zmq/compiled/6.10.1/darwin/x64/zmq.node
    at bindings (/usr/local/lib/node_modules/stf/node_modules/bindings/bindings.js:88:9)
    at Object. (/usr/local/lib/node_modules/stf/node_modules/zmq/lib/index.js:6:30)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object. (/usr/local/lib/node_modules/stf/node_modules/zmq/index.js:2:18)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)

    我现在报这个错误,不知道为什么。

  • 楼主考虑开源吗

  • App 自动遍历工具初版 at 2016年07月22日

    #135 楼 @seveniruby 我已经申请了加入 QQ 群,等待验证通过。

  • #161 楼 @seveniruby QQ 群号是多少

  • #161 楼 @seveniruby xueqiu.json 这个配置怎么写,我确实没看到有。

  • #161 楼 @seveniruby 文档里面是这样写的

  • #161 楼 @seveniruby
    iOS 遍历
    模拟器运⾏
    启动 appium
    appium --session-override
    开始遍历
    appcrawler -c src/universal/conf/xueqiu.json -p ios -a /Users/s

    真机运⾏
    使⽤ xcode 编译源代码. 使⽤开发证书才能做⾃动化. 编译出真机可⾃动化
    的.app 包
    appcrawler -c src/universal/conf/xueqiu.json -p ios -a /Users/s

  • #157 楼 @yoegg

    • App Crawler *** FAILED *** org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Could not find a device to launch. You requested 'iPhone 6 (9.2) [', but the available devices were: "Apple TV 1080p (9.2) DAB3248A-624A-4710-80CA-369D97AB5CA6","iPad 2 (9.3) 30E7C063-8218-445D-9586-E12764218676","iPad Air (9.3) 7B19A7CB-A7F1-49D9-9BE8-0C0A2183BCD2","iPad Air 2 (9.3) AE713A51-57DD-4DF7-AF7C-5C407BBFA654","iPad Pro (9.3) 6DD9013C-7162-4E99-8E56-A216750DB1F8","iPad Retina (9.3) 78E3792F-8E51-426F-8098-84FF8C664798","iPhone 4s (9.3) 6D681EA6-5A58-41A2-B2A5-CFAEFE8315C4","iPhone 5 (9.3) 0271473C-8241-45F8-AA89-68AB2A962B63","iPhone 5s (9.3) 4D63A6A7-455E-4524-A2AD-8945440A4763","iPhone 6 (9.3) E0B98126-B342-4EB3-BEAB-B76070248688","iPhone 6 Plus (9.3) 1A292B44-0593-4685-AB98-8CB58564A033","iPhone 6s (9.3) 9748E735-DBC1-4F79-AD77-5FEC0B47EF0D","iPhone 6s (9.3) + Apple Watch - 38mm (2.2) D8C3455A-8316-40D8-8D3C-D05F6E39489D","iPhone 6s Plus (9.3) 4E060382-8591-42F3-9482-9A950189BCF8","iPhone 6s Plus (9.3) + Apple Watch - 42mm (2.2) 220F18DA-1BA4-470C-9F5E-6BD5584D67D3" Command duration or timeout: 2.41 seconds Build info: version: 'unknown', revision: 'unknown', time: 'unknown' System info: host: 'clydeiMac.local', ip: '192.168.3.70', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91' Driver info: io.appium.java_client.ios.IOSDriver at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:595) at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42) at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1) at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1) at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:242) at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:128) at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:141) at io.appium.java_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:37) at io.appium.java_client.AppiumDriver.(AppiumDriver.java:160) at io.appium.java_client.AppiumDriver.(AppiumDriver.java:168) at io.appium.java_client.ios.IOSDriver.(IOSDriver.java:56) at IOSCrawler.setupAppium(IOSCrawler.scala:42) at Crawler.start(Crawler.scala:123) at AppCrawlerTestCase$$anonfun$1.apply$mcV$sp(AppCrawlerTestCase.scala:27) at AppCrawlerTestCase$$anonfun$1.apply(AppCrawlerTestCase.scala:11) at AppCrawlerTestCase$$anonfun$1.apply(AppCrawlerTestCase.scala:11) at org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22) at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85) at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104) at org.scalatest.Transformer.apply(Transformer.scala:22) at org.scalatest.Transformer.apply(Transformer.scala:20) at org.scalatest.FunSuiteLike$$anon$1.apply(FunSuiteLike.scala:166) at org.scalatest.Suite$class.withFixture(Suite.scala:1122) at org.scalatest.FunSuite.withFixture(FunSuite.scala:1555) at org.scalatest.FunSuiteLike$class.invokeWithFixture$1(FunSuiteLike.scala:163) at org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:175) at org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:175) at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306) at org.scalatest.FunSuiteLike$class.runTest(FunSuiteLike.scala:175) at org.scalatest.FunSuite.runTest(FunSuite.scala:1555) at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:208) at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:208) at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:413) at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:401) at scala.collection.immutable.List.foreach(List.scala:381) at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401) at org.scalatest.SuperEngine.org$scalatest$SuperEngine$$runTestsInBranch(Engine.scala:396) at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:483) at org.scalatest.FunSuiteLike$class.runTests(FunSuiteLike.scala:208) at org.scalatest.FunSuite.runTests(FunSuite.scala:1555) at org.scalatest.Suite$class.run(Suite.scala:1424) at org.scalatest.FunSuite.org$scalatest$FunSuiteLike$$super$run(FunSuite.scala:1555) at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:212) at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:212) at org.scalatest.SuperEngine.runImpl(Engine.scala:545) at org.scalatest.FunSuiteLike$class.run(FunSuiteLike.scala:212) at AppCrawlerTestCase.org$scalatest$BeforeAndAfterAllConfigMap$$super$run(AppCrawlerTestCase.scala:6) at org.scalatest.BeforeAndAfterAllConfigMap$class.liftedTree1$1(BeforeAndAfterAllConfigMap.scala:248) at org.scalatest.BeforeAndAfterAllConfigMap$class.run(BeforeAndAfterAllConfigMap.scala:247) at AppCrawlerTestCase.run(AppCrawlerTestCase.scala:6) at org.scalatest.Suite$class.execute(Suite.scala:843) at org.scalatest.FunSuite.execute(FunSuite.scala:1555) at AppCrawler$.main(AppCrawler.scala:160) at AppCrawler.main(AppCrawler.scala)

    iPhone 6 (iOS 9.2) 我要去哪里写配置指定这个模拟器

  • #157 楼 @yoegg json 配置文件的写法,文档没看到有啊。

  • #155 楼 @yoegg appcrawler 找不到这个命令。。。