@seveniruby 现在通过手动安装还有去掉-a 参数,可以进入测试 APK 的登录界面了。但进去后点了密码输入框后,就切到了桌面乱点,登录界面的 “忘记密码” 和登录按钮都没操作。加了包名后,不能像 monkey 一样限定在测试包名里么?
#53 楼 @hsqzggg @seveniruby 拷贝到手机上安装就可以进入测试 APK 了。用 adb install 的话就无法进入。工具在后台做了什么呢?
@seveniruby 晕死了,现在卸载了测试 APK 的包名,重新安装,也进不去 APK 了。其他应用还正常启动。重启也这样。病毒呀?
@seveniruby 日志。
2016-11-08 17:22:40 TRACE [AndroidCrawler.getAllElements.249] xpath=(//*[@package!=''])[1]
2016-11-08 17:22:40 TRACE [AndroidCrawler.getAllElements.250] get list
2016-11-08 17:22:40 TRACE [AndroidCrawler.apply.252] Map(long-clickable -> false, package -> com.meizu.flyme.launcher,
ame -> , clickable -> false, android.widget.FrameLayout -> null, checked -> false, tag -> android.widget.FrameLayout, c
ntent-desc -> , enabled -> true, label -> , checkable -> false, focusable -> false, focused -> false, selected -> false
instance -> 0, text -> , bounds -> [0,0][1536,2560], xpath -> //hierarchy/android.widget.FrameLayout[@index="0"], clas
-> android.widget.FrameLayout, scrollable -> false, resource-id -> , value -> , index -> 0, password -> false)
2016-11-08 17:22:40 INFO [AndroidCrawler.parsePageContext.548] appName = com.meizu.flyme.launcher
2016-11-08 17:22:40 INFO [DataRecord.append.13] append com.meizu.flyme.launcher
2016-11-08 17:22:41 INFO [AndroidCrawler.apply.48] get activity name null
2016-11-08 17:22:41 INFO [MiniAppium$.asyncTask.415] async task success
Exception in thread "main" java.lang.NullPointerException
at scala.collection.immutable.StringLike$class.split(StringLike.scala:208)
at scala.collection.immutable.StringOps.split(StringOps.scala:30)
at com.xueqiu.qa.appcrawler.AndroidCrawler.getUrl(AndroidCrawler.scala:50)
at com.xueqiu.qa.appcrawler.Crawler.parsePageContext(Crawler.scala:551)
at com.xueqiu.qa.appcrawler.Crawler.refreshPage(Crawler.scala:535)
at com.xueqiu.qa.appcrawler.Crawler$$anonfun$runStartupScript$1.apply(Crawler.scala:192)
at com.xueqiu.qa.appcrawler.Crawler$$anonfun$runStartupScript$1.apply(Crawler.scala:190)
at scala.collection.immutable.List.foreach(List.scala:381)
at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
at scala.collection.mutable.ListBuffer.foreach(ListBuffer.scala:45)
at com.xueqiu.qa.appcrawler.Crawler.runStartupScript(Crawler.scala:190)
at com.xueqiu.qa.appcrawler.Crawler.start(Crawler.scala:155)
at com.xueqiu.qa.appcrawler.AppCrawler$.startCrawl(AppCrawler.scala:283)
at com.xueqiu.qa.appcrawler.AppCrawler$.main(AppCrawler.scala:262)
at com.xueqiu.qa.appcrawler.AppCrawler.main(AppCrawler.scala)
@seveniruby 一样的。
测试 APK 通过你的工具运行后强制替换后,结束了一次运行,我再手动去运行,也是启动了 APK 的启动画面后就退出了,没报错也进不去。
而且应用没点开,工具也继续执行操作,不是加了参数就测什么 APK 么?这情况下,应该直接结束吧?
雪球官网http://xqfile.imedao.com/android-release/xueqiu_871_11032322.apk刚下的。
两台手机:
HHTC6C 5.1 平台;
MX4pro 5.1 平台
@seveniruby 直接 java -jar E:\自动化\appcrawler\appcrawler-1.7.1.jar -a E:\自动化\sfim_android.apk -t 300 -vv
出现应用启动界面后就退回了桌面,两台手机都这样。
执行雪球,一运行就异常终止了
@mengde0077
运行提示:
2016-11-07 17:06:45 sys_log : [INFO] autoLaunch = true
2016-11-07 17:06:45 sys_log : [INFO] platformVersion = 5.1
2016-11-07 17:06:45 sys_log : [INFO] unicodeKeyboard = true
2016-11-07 17:06:45 sys_log : [INFO] udid = 0123456789ABCDEF
2016-11-07 17:06:45 sys_log : [INFO] platformName = Android
2016-11-07 17:06:45 sys_log : [INFO] resetKeyboard = true
2016-11-07 17:06:45 sys_log : [INFO] ###########################################
################################
2016-11-07 17:06:45 sys_log : [INFO] Appium Server -> http://127.0.0.1:4723/wd/h
ub
log4j:WARN No appenders could be found for logger (org.apache.http.client.protoc
ol.RequestAddCookies).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" java.lang.IllegalArgumentException: character to be e
scaped is missing
at java.util.regex.Matcher.appendReplacement(Unknown Source)
at java.util.regex.Matcher.replaceAll(Unknown Source)
at java.lang.String.replaceAll(Unknown Source)
at pers.traveler.robot.Robot.beforeTravel(Robot.java:124)
at pers.traveler.robot.AndroidRobot.working(AndroidRobot.java:57)
at pers.traveler.robot.Robot.travel(Robot.java:200)
at pers.traveler.test.Main.main(Main.java:21)
E:\自动化\AutoTraveler\AutoTraveler-master>
配置好Android,run以后提示这个
Exception in thread "main" java.lang.IllegalArgumentException: character to be escaped is missing
at java.util.regex.Matcher.appendReplacement(Matcher.java:809)
at java.util.regex.Matcher.replaceAll(Matcher.java:955)
at java.lang.String.replaceAll(String.java:2223)
at pers.traveler.robot.Robot.beforeTravel(Robot.java:124)
at pers.traveler.robot.AndroidRobot.working(AndroidRobot.java:57)
at pers.traveler.robot.Robot.travel(Robot.java:200)
at pers.traveler.test.Main.main(Main.java:21)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
@quqing 编译没包含类!
谁有编译好的 jar 包,能发网盘或者我邮箱么 hsqzggg@qq.com,谢谢!
mindmanager 自带 word 导入,excel 导出,能对接需求 word 和用例 excel。
—— 来自 TesterHome 官方 安卓客户端
越像机器的人,越会被机器取代。
经典,赞!
—— 来自 TesterHome 官方 安卓客户端
跟 jenkins 有何区别?
—— 来自 TesterHome 官方 安卓客户端