还有 10 篇~
就是 用 nodejs 写的测试用例。 你可以用别的语言来写。 比如你的测试用例使用 python 写的,那就是python your-appium-test.py
#2 楼 @whuiscool 没啥不同吧,本质是一样的。
#2 楼 @shery_zhang2012 了解,谢谢。appium 封装的东西还是不太多。
#2 楼 @guo initial conditions test 是 Android 测试里面用的,就是 check 一些最基本的应用对象,来确保之后的测试是否有意义。
其实可以去 appium 的 Google group 问下,我估计没有什么好的解决方法。 @seveniruby
I feel like we see this message for other reasons too, like the app isn't compiled correctly. Also, restarting the app doesn't necessarily put it into a state where the test can continue. If the app crashes or dies, I think we should end the session and 500 the currently request.
用 initial conditions test?
报错的时候,先捕获异常,然后看下被测程序是否已经异常退出了,如果退出了,就自定义自己的异常,否则就抛出捕获的异常?
看这个 cl, https://github.com/appium/appium/pull/309, 应该已经有 back 的方法了。
不过,应该可以发送事件,
看这个帖子,https://groups.google.com/forum/#! topic/appium-discuss/qqNSerBYLrY
具体的事件对应的 code 可以看:
http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_HOME
driver.execute_script("mobile: keyevent", {"keycode":4})
估计是这样,我没实践过, 你看看? 有结果和我们说下~
#6 楼 @leopold https://github.com/testerhome/appium/blob/master/docs/cn/running-on-windows.cn.md 文档里说了要用 ANDROID_HOME
诶,建议还是按照文档设置环境变量, appium 里面可能会用到。
@seveniruby 可以放出去了吧?
建议看看 http://testerhome.com/topics/185,论坛里其实有很多帖子了。
期待能按照找个提纲出一个视频。
#40 楼 @mingway_hu http://stackoverflow.com/questions/17496189/error-in-installing-node-js-module-using-npm
1
down vote
accepted
You need to add VCBuild.exe to your path. Check out this answer on how to do it: Testacular install failes, no vcbuild.exe
按照我的思路是,有的话就点击关闭,无的话就不管它了。
#22 楼 @seveniruby 已经被官方 merge 了。大赞。
#8 楼 @daqi
#13 楼 @cinderella
求添加一个头像吧~
android 就用 sdk 里面的 sample code
#10 楼 @lizhenghuan 你做一个直接能表达 robotium logo 吧,
估计你要首创了。 不过我个人觉得, Appium 只是一个驱动而已, 测试用例的组织还是取决你自己的选择,所以集成到 CI 的话,还是老一套的东西。
@guo 这个视频太棒了。 自动化脚本 和 测试 app 能 share 么?
视频嵌入 应该可以做。