Code Monkey home page Code Monkey logo

atx's People

Contributors

bigwavelet avatar codeskyblue avatar jinpf avatar johannesbuchner avatar lucyking avatar riccoyu avatar wuxc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

atx's Issues

集成所有常用功能的APK

  • Utf7IME输入法
  • 屏幕常亮 Keep Screen WakeUP
  • 自动安装软件,自动确认权限 Auto confirm installation, permissions

About atx.Pattern

unable to use like this

on(atx.Pattern("xx.png",offset=(xx,xx))).click() 

Please update document. File not Found

pip install http://goandroid.qiniucdn.com/opencv_python-2.4.12-cp27-none-win_amd64.whl
File not Found. I suggest you should change language to english

About click() and quit()

When I use quit() after click() ,in most cases (not always) quit immediate ,not after click()

w.on('enter-game.png').click().quit()

在中文路径下运行 python -matx gui会出现编码问题

Traceback (most recent call last):
File "C:\Python27\lib\runpy.py", line 162, in run_module_as_main
"main", fname, loader, pkg_name)
File "C:\Python27\lib\runpy.py", line 72, in run_code
exec code in run_globals
File "C:\Python27\lib\site-packages\atx__main
.py", line 141, in
main()
File "C:\Python27\lib\site-packages\atx__main__.py", line 138, in main
args.func(args)
File "C:\Python27\lib\site-packages\atx__main__.py", line 46, in inner
return inject(mod.main, pargs)
File "C:\Python27\lib\site-packages\atx__main
_.py", line 37, in inject
return func(*args)
File "C:\Python27\lib\site-packages\atx\cmds\tkgui.py", line 363, in main
d.wakeup()
File "C:\Python27\lib\site-packages\uiautomator__init__.py", line 797, in wak
eup
self.server.jsonrpc.wakeUp()
File "C:\Python27\lib\site-packages\uiautomator__init__.py", line 430, in wra
pper
server.start(timeout=30)
File "C:\Python27\lib\site-packages\uiautomator__init__.py", line 468, in sta
rt
files = self.push()
File "C:\Python27\lib\site-packages\uiautomator__init__.py", line 404, in pus
h
self.adb.cmd("push", filename, "/data/local/tmp/").wait()
File "C:\Python27\lib\site-packages\uiautomator__init__.py", line 288, in cmd

return self.raw_cmd(*["-s", serial] + list(args))

File "C:\Python27\lib\site-packages\uiautomator__init__.py", line 297, in raw
_cmd
return subprocess.Popen(cmd_line, shell=True, stdout=subprocess.PIPE, stderr
=subprocess.PIPE)
File "C:\Python27\lib\subprocess.py", line 710, in init
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 913, in _execute_child
args = list2cmdline(args)
File "C:\Python27\lib\subprocess.py", line 644, in list2cmdline
return ''.join(result)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd1 in position 0: ordinal
not in range(128)

使用 `python -matx minicap` 在 genymotion 模拟器上安装 minicap 报错

使用 python -matx minicap 在 genymotion 模拟器上安装 minicap 报错:

$ python -matx minicap
2016-05-30 12:51:19.568 INFO  [minicap:  55] Minicap install started!
2016-05-30 12:51:19.569 INFO  [minicap:  60] Make temp dir ...
2016-05-30 12:51:19.575 INFO  [minicap:  64] Retrive device information ...
2016-05-30 12:51:19.587 ERROR [minicap: 100] run cmd: adb -H 127.0.0.1 -P 5037 shell getprop ro.product.cpu.abi failed. [Errno 2] No such file or directory
2016-05-30 12:51:19.588 INFO  [minicap: 103] Cleaning temp dir

但单独运行出错的命令没有问题:

$ adb -H 127.0.0.1 -P 5037 shell getprop ro.product.cpu.abi
x86

Genymotion 版本:2.5.2, reversion: 20150717-d5a1e88
模拟器相关信息:Google Nexus 4 -5.0.0-API 21-768x1280

不知道是不支持还是别的原因?

PS:直接用 stf 试过,stf 中找不到这个模拟器设备。。。

atx每次仅能完成一次操作,第二次操作会一直处于无响应状态

What steps will reproduce the problem?

win 10 32位PC,atx安装成功后,每次只能完成一次操作
按以下执行,第二次click()操作一直不返回结果

Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import atx
>>> d=atx.connect()
>>> d.click(300,600)
True
>>> d.click(300,600)

不仅仅是click(),包括screenshot()都存在类似问题

python -m atx install 出错

What steps will reproduce the problem?

What is the expected output?

What do you see instead?

Do you have any log or screenshots?

提示 adb.build_cmd 不存在

报告总结果页面

如果执行多个脚本,希望有个总结果页面,可以把执行若干的atx的结果页面用一个总的页面链接起来

Serial Result Link
af1222 PASS http://....
bd323 FAIL http://....
yyeww OFFLINE http://....
yyeww SKIP http://....

红米 note Android4.4.4 录屏提示minicap错误

What steps will reproduce the problem?

python -m atx screenrecord -o out.avi

What is the expected output?

正确录制视频

What do you see instead?

异常报错

Do you have any log or screenshots?

C:\Users\Administrator>python -m atx screenrecord -o out.avi
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\atx\adbkit\mixins.py", line 152, in _pull
assert p.poll() is None
AssertionError
Process died.
ERROR: invalid format for -P, need <w>x<h>@<w>x<h>/{0|90|180|270}

minicap died

python -m atx minicap 安装失败,必须指定端口到15073才能成功

What steps will reproduce the problem?

win 10 32位PC,atx安装完毕后,按照指示完成设备的连接(atx.connect()),未报错
命令行运行python -m atx minicap

What do you see instead?

报错信息如下:

D:\duping\atx>python -m atx minicap
2016-07-29 10:58:29.029 INFO  [minicap:  55] Minicap install started!
2016-07-29 10:58:29.029 INFO  [minicap:  60] Make temp dir ...
2016-07-29 10:58:29.029 INFO  [minicap:  64] Retrive device information ...
2016-07-29 10:58:29.060 ERROR [minicap: 100] run cmd: adb -H 127.0.0.1 -P 5037 shell getprop ro.product.cpu.abi failed. Command 'adb -H 127.0.0.1 -P 5037 shell getprop ro.product.cpu.abi' returned non-zero exit status 1
2016-07-29 10:58:29.060 INFO  [minicap: 103] Cleaning temp dir

在命令中指定端口到15073后问题解决
Python -m atx -H 127.0.0.1 -P 15037 minicap

另,以下测试设备均有问题
小米5 6.0.1
三星note4 4.4.4
三星s3 4.3

Sometime, It stopped in loop. I don't know why?

thread = threading.Thread(target=self.run_test,
args=(self.event, db, self.app_status_queue,))
thread.daemon = True
self.status_run_app = True
self.event.set()
thread.start()

func loop:

def run_test()
   while true:
     u = atx.connect()
    #action test ...
     kill adb

My log.txt
log.txt
log-2.txt

报告优化

  • 每个步骤前面写出序号。
  • 在uiautomator点击操作时,把uiautomator的语句添加到步骤里,例如d(text="abc").click()。如果可以,希望可以翻译成“点击文字abc”。
  • 在uiautomator的exist判断时,希望把uiautomator的语句添加到步骤里,例如d(text="abc").exist。如果可以,希望可以翻译成“文字adb存在”或者“文字abc不存在”。(但是我这边的用法是加上assert exist==True。看看怎么表达比较好?

issue RPC server not started

My scenario:

  • Quit device -> Start device -> workflow -> Quit device -> Start device -> workflow --> .... (loop it )

Error: After a period then workflow don't work. It's pause

文件名增加使用百分比的偏移

DESIGN

点击坐标的偏移百分比

规则

<name>.<T|B><number><L|R><number>.png

T代表Top,B代表Bottom,L代表Left,R代表Right

filename: button.T50R150.png

代表向上偏移50%,向右偏移150%

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.