Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

手机应用程序首次安装运行或者升级后首次运行出现提示信息怎么破 #43

Open
rill opened this issue Mar 26, 2014 · 9 comments

Comments

@rill
Copy link

rill commented Mar 26, 2014

鲁工 你好:
手机应用程序首次安装运行或者升级后首次运行出现提示信息怎么破,自动遍历程序无法遍历,需要手动划屏或者点击,是否有办法跳过提示信息。

@luxiaoyu
Copy link
Contributor

第一种方法:写一个划屏的小脚本,安装后运行,把欢迎界面划过去,然后杀掉应用程序,再启动遍历。
第二种方法:首次安装后,不要打开应用,adb shell 记录/data/data/com.XXX下的具体的目录文件结构,然后打开应用划过欢迎界面,这时再去对比目录结构,如果多了某个文件,或者某个文件的时间戳被改变说明该文件是用来标识欢迎界面已显示的标志位文件,把该文件备份,每次安装或升级后push到对应的目录即可,这样就不会出现欢迎界面了。

@rill
Copy link
Author

rill commented Mar 27, 2014

谢谢。不过这两种方式都需要人工介入。如果apk经常在变,测试前无法预知,这两种方式就满足不了了。目前有无通用的办法可以处理这种提示信息。

@luxiaoyu
Copy link
Contributor

其实不是你说的那样,从开发角度说,app的欢迎界面标志位文件一般不会变的,只是欢迎界面换了而已。

@rill
Copy link
Author

rill commented Mar 27, 2014

那可能需要为每个app做适配吧。

@luxiaoyu
Copy link
Contributor

一次性的工作而已,而且成功率100%,比划屏脚本好多了。
其实你的这种场景不满足测试准入条件。。

@rill
Copy link
Author

rill commented Mar 27, 2014

好吧。。。
用户提了一个较变态的需求,希望手机每次测试完恢复原样。测试前自动安装apk,测试完自动卸载apk。

@luxiaoyu
Copy link
Contributor

那就跑monkey,凭运气

@rill
Copy link
Author

rill commented Mar 27, 2014

谢谢,拼人品。。。

@luxiaoyu
Copy link
Contributor

luxiaoyu commented Apr 3, 2014

@rill 还有一个成功率90%的简单方法,就是在欢迎界面按back键,90%的欢迎界面都能跳过,也有个别不能跳过的,比如qq浏览器之类的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants