appetizerio / replaykit

[DEPRECATED] Command line tools for recording, replaying and mirroring touchscreen events for Android
Apache License 2.0
245 stars 61 forks source link

replay 不响应. #1

Closed ch4r04 closed 7 years ago

ch4r04 commented 7 years ago
hyadeiMac:darwin hya$ appetizer trace replay test.trace 0
preparing daemons for 0 devices
appetizer> Replay started
Replay finished
All done

我用这个方法重放录屏触摸,但是手机上没有响应,而且重放后终端无法输入,只能按control+d退出,使用的是mac版本。 启动好像也有错误:

hyadeiMac:~ hya$ appetizer -h
usage: appetizer [-h] {version,trace,adb,devices,plan} ...

positional arguments:
  {version,trace,adb,devices,plan}
                        commands
    version             Print the version information and exit
    trace               Record and replay touchscreen events
    adb                 Control the local ADB
    devices             Command devices
    plan                Compose and execute a test plan file

optional arguments:
  -h, --help            show this help message and exit
Failed to execute script starfish
Azard commented 7 years ago

appetizer trace replay test.trace 0 最后一个参数写0有问题,应该是 device_list,是设备的编号,可以通过 adb devices 或者 appetizer devices list 看到 serialno 那一栏

然后 appetizer trace replay test.trace [serialno] 如果是多台设备,需要 appetizer trace replay test.trace [serialno1],[serialno2],[serialno3]

ch4r04 commented 7 years ago

感谢,已经解决