louis-me / appiumn_auto Goto Github PK
View Code? Open in Web Editor NEWappium_selenium python 自动化UI测试
appium_selenium python 自动化UI测试
作者好像写作了Python
因为我本地开发环境还没有安装多个版本的python
支持IOS么?
可以把操作的log和截图规范说一下吗,看到说明没有具体怎么说,特别截图那里,每一步操作应该也需要截图一下保存,最好用红色框圈出点击的前后位置。。这个算是需求了。。
pkg_name几处有用,但没有获取的地方
def pull_crash_log(self):
log = ""
print("pull_crash_log")
_read_crash = basePickle.read_pickle(common.CRASH_LOG_PATH)
if len(_read_crash) > 0:
for i in range(len(_read_crash)):
if _read_crash[i]["devices"] == self.get_phone_name()[1]: # 如果android 传过来的device和现在测试的decvice相匹配
log = _read_crash[i]["log"]
rand_log = baseRandom.get_ran_dom() + ".log" # 随机的log文件
push_log = common.APACHE_PATH + rand_log # 存到apache的路径里面
os.system("adb -s " + self.devices + " pull " + log + " " + push_log)
return common.PROTOCOL + common.HOST + "/" + common.APACHE_PATH + rand_log
return log
这里的log = _read_crash[i]["log"]是怎么设置的,设置的什么路径呢?这里返回log地址就表示崩溃是什么原理呢,没理解,希望能有人帮助解答
info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Command failed: C:\windows\system32\cmd.exe /s /c "C:\Android\android-sdk\platform-tools\adb.exe -s 37ab93aa shell "ps 'uiautomator'""\nps: uiautomator\r\n)","killed":false,"code":1,"signal":null,"cmd":"C:\windows\system32\cmd.exe /s /c "C:\Android\android-sdk\platform-tools\adb.exe -s 37ab93aa shell "ps 'uiautomator'""","origValue":"Command failed: C:\windows\system32\cmd.exe /s /c "C:\Android\android-sdk\platform-tools\adb.exe -s 37ab93aa shell "ps 'uiautomator'""\nps: uiautomator\r\n"},"sessionId":null}
info: <-- POST /wd/hub/session 500 11056.749 ms - 630
author = 'shikun'
import math
from common.variable import GetVariable as common
这里为什么又要as common 啊,也没看到其他地方有用到
info : 'adb -s 37abasdasd93aa shell cat /system/build.prop ' ,获取数据为空,如何处理?
cmd控制台执行,提示没有权限,该如何设置?
大佬,你还在维护吗?
有其他兄弟们在用没,要不我们一起把这个维护起来
我目前已经跑起来了
大佬,帮忙把依赖到处一个requirements一下;下载的依赖有些不配套,不知道哪里有问题。。。
运行后经常连接不上设备,运行五次有三次找不到我的设备,win7 64bit,安卓4.4.2,设备检查方面待完善也。。。我安装了360助手,不知道影响大不?
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.