• #5 楼 @xdlhy 这是啥玩意,。

  • #6 楼 @a00ium 我不太用 java

  • 顶一个

  • 定一个

  • #1 楼 @snake 刚刚发布好字典的帖子

  • #1 楼 @snake 恩,一个意思

  • 高大上的 jmeter 测试报告

  • http://testerhome.com/topics/2576 我新写一篇,你可以看看

  • #3 楼 @app_testing 正确的,有时候就会出现这个问题~

  • #3 楼 @wang04170 问一下,你怎么 import 的,能看看完整的代码么

  • #1 楼 @lihuazhang 脚本么。。。是啊,我没用命令行,用那个 winform 程序的,各种蛋疼问题~

  • #8 楼 @bueaty 加个 qq 讨论一下~

  • #2 楼 @bueaty 你也在测 hybrid 应用么,我也在研究,方便加个好友讨论么~

  • #9 楼 @chenhengjie123 shell 这块不太会用,抽空学习一下。。。我是 genymotion 模拟器。。先谢了

  • #3 楼 @link1220 _关键这么高大上的东西还不会写

  • #1 楼 @link1220 我也想过这样,但是代码一看一大片,结构性不行。如果脚本代码比较多,修复起来很头疼的

  • #7 楼 @lihuazhang 恩,我把 appium 端的报错日志贴了。最早贴的是 python 的报错

  • #3 楼 @chenhengjie123 >

     info: --> POST /wd/hub/session {"desiredCapabilities":{"deviceName":"192.168.56.101:5555","platformVersion":"4.3","platformName":"Android","appPackage":"com.android.dialer","appActivity":".DialtactsActivity"}}
    > info: Client User-Agent string: Python-urllib/3.4
    > info: [debug] Using local app from command line: D:\appium\app-debug.apk
    > info: [debug] Creating new appium session cd91dc70-fde3-4364-bb2b-931d050525e9
    > info: Starting android appium
    > info: [debug] Getting Java version
    > info: Java version is: 1.8.0_11
    > info: [debug] Using fast reset? true
    > info: [debug] Preparing device for session
    > info: [debug] Checking whether app is actually present
    > info: [debug] Checking whether adb is present
    > info: [debug] Using adb from D:\BaiduYunDownload\android-sdk\platform-tools\adb.exe
    > info: Retrieving device
    > info: [debug] Trying to find a connected android device
    > info: [debug] Getting connected devices...
    > info: [debug] executing cmd: D:\BaiduYunDownload\android-sdk\platform-tools\adb.exe devices
    > info: [debug] 1 device(s) connected
    > info: Found device 192.168.56.101:5555
    > info: [debug] Setting device id to 192.168.56.101:5555
    > info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5)
    > info: [debug] executing cmd: D:\BaiduYunDownload\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 wait-for-device
    > info: [debug] executing cmd: D:\BaiduYunDownload\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell "echo 'ready'"
    > info: [debug] Starting logcat capture
    > info: [debug] Getting device API level
    > info: [debug] executing cmd: D:\BaiduYunDownload\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell "getprop ro.build.version.sdk"
    > info: [debug] Device is at API Level 18
    > info: Device API level is: 18
    > info: [debug] executing cmd: D:\BaiduYunDownload\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell "getprop persist.sys.language"
    > info: [debug] Current device persist.sys.language: zh
    > info: [debug] java -jar "E:\杞欢娴嬭瘯璧勬枡\AppiumForWindows-1.3.4.1_bak\Appium\node_modules\appium\node_modules\appium-adb\jars\appium_apk_tools.jar" "stringsFromApk" "D:\appium\app-debug.apk" "C:\Users\wuyuexin\AppData\Local\Temp\com.android.dialer" zh
    > info: [debug] No strings.xml for language 'zh', getting default strings.xml
    > info: [debug] java -jar "E:\杞欢娴嬭瘯璧勬枡\AppiumForWindows-1.3.4.1_bak\Appium\node_modules\appium\node_modules\appium-adb\jars\appium_apk_tools.jar" "stringsFromApk" "D:\appium\app-debug.apk" "C:\Users\wuyuexin\AppData\Local\Temp\com.android.dialer"
    > info: [debug] executing cmd: D:\BaiduYunDownload\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 push "C:\\Users\\wuyuexin\\AppData\\Local\\Temp\\com.android.dialer\\strings.json" /data/local/tmp
    > info: [debug] Checking whether aapt is present
    > info: [debug] Using aapt from D:\BaiduYunDownload\android-sdk\build-tools\18.0.0\aapt.exe
    > info: [debug] Retrieving process from manifest.
    > info: [debug] executing cmd: D:\BaiduYunDownload\android-sdk\build-tools\18.0.0\aapt.exe dump xmltree D:\appium\app-debug.apk AndroidManifest.xml
    > info: [debug] Set app process to: com.android.dialer
    > info: [debug] Not uninstalling app since server not started with --full-reset
    > info: [debug] Checking app cert for D:\appium\app-debug.apk.
    > info: [debug] executing cmd: java -jar E:\杞欢娴嬭瘯璧勬枡\AppiumForWindows-1.3.4.1_bak\Appium\node_modules\appium\node_modules\appium-adb\jars\verify.jar D:\appium\app-debug.apk
    > info: [debug] App already signed.
    > info: [debug] Zip-aligning D:\appium\app-debug.apk
    > info: [debug] Checking whether zipalign is present
    > info: [debug] Using zipalign from D:\BaiduYunDownload\android-sdk\tools\zipalign.exe
    > info: [debug] Zip-aligning apk.
    > info: [debug] executing cmd: D:\BaiduYunDownload\android-sdk\tools\zipalign.exe -f 4 D:\appium\app-debug.apk C:\Users\wuyuexin\AppData\Local\Temp\appium115412-6984-1w2yv1d.tmp
    > info: [debug] MD5 for app is 43adfe9fcfc6677441d5aa5b07ab07df
    > info: [debug] executing cmd: D:\BaiduYunDownload\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell "ls /data/local/tmp/43adfe9fcfc6677441d5aa5b07ab07df.apk"
    > info: [debug] Getting install status for com.android.dialer
    > info: [debug] Getting device API level
    > info: [debug] executing cmd: D:\BaiduYunDownload\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell "getprop ro.build.version.sdk"
    > info: [debug] Device is at API Level 18
    > info: [debug] executing cmd: D:\BaiduYunDownload\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell "pm list packages -3 com.android.dialer"
    > info: [debug] App is not installed
    > info: Installing App
    > info: [debug] executing cmd: D:\BaiduYunDownload\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell "mkdir -p /data/local/tmp/"
    > info: [debug] Removing any old apks
    > info: [debug] executing cmd: D:\BaiduYunDownload\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell "ls /data/local/tmp/*.apk"
    > info: [debug] Found an apk we want to keep at /data/local/tmp/43adfe9fcfc6677441d5aa5b07ab07df.apk
    > info: [debug] Couldn't find any apks to remove
    > info: [debug] Uninstalling com.android.dialer
    > info: [debug] executing cmd: D:\BaiduYunDownload\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell "am force-stop com.android.dialer"
    > info: [debug] executing cmd: D:\BaiduYunDownload\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 uninstall com.android.dialer
    > info: [debug] App was not uninstalled, maybe it wasn't on device?
    > info: [debug] executing cmd: D:\BaiduYunDownload\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell "pm install -r /data/local/tmp/43adfe9fcfc6677441d5aa5b07ab07df.apk"
    > warn: Installing remote apk failed, going to uninstall and try again
    > info: [debug] Removing any old apks
    > info: [debug] executing cmd: D:\BaiduYunDownload\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell "ls /data/local/tmp/*.apk"
    > info: [debug] executing cmd: D:\BaiduYunDownload\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell rm "/data/local/tmp/43adfe9fcfc6677441d5aa5b07ab07df.apk"
    > info: [debug] executing cmd: D:\BaiduYunDownload\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 push "D:\\appium\\app-debug.apk" /data/local/tmp/43adfe9fcfc6677441d5aa5b07ab07df.apk
    > info: [debug] Attempting to install again for the last time
    > info: [debug] executing cmd: D:\BaiduYunDownload\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell "pm install -r /data/local/tmp/43adfe9fcfc6677441d5aa5b07ab07df.apk"
    > info: [debug] Stopping logcat capture
    > info: [debug] Logcat terminated with code null, signal SIGTERM
    > info: [debug] Sent shutdown command, waiting for UiAutomator to stop...
    > warn: UiAutomator did not shut down fast enough, calling it gone
    > error: Failed to start an Appium session, err was: Error: Remote install failed: pkg: /data/local/tmp/43adfe9fcfc6677441d5aa5b07ab07df.apk
    > 
    > Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]
    > info: [debug] Cleaning up android objects
    > info: [debug] Cleaning up appium session
    > info: [debug] Error: Remote install failed: pkg: /data/local/tmp/43adfe9fcfc6677441d5aa5b07ab07df.apk
    > 
    > Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]
    >     at E:\杞欢娴嬭瘯璧勬枡\AppiumForWindows-1.3.4.1_bak\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:1342:17
    >     at null.<anonymous> (E:\杞欢娴嬭瘯璧勬枡\AppiumForWindows-1.3.4.1_bak\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:172:9)
    >     at ChildProcess.exithandler (child_process.js:635:7)
    >     at ChildProcess.EventEmitter.emit (events.js:98:17)
    >     at maybeClose (child_process.js:743:16)
    >     at Process.ChildProcess._handle.onexit (child_process.js:810:5)
    > info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Remote install failed: pkg: /data/local/tmp/43adfe9fcfc6677441d5aa5b07ab07df.apk\r\r\nFailure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES])","origValue":"Remote install failed: pkg: /data/local/tmp/43adfe9fcfc6677441d5aa5b07ab07df.apk\r\r\nFailure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]"},"sessionId":null}
    > info: <-- POST /wd/hub/session 500 20478.422 ms - 406 
    

    帮忙看看,谢谢~

  • #4 楼 @lihuazhang 改了还是不行。。应该跟 xpath 无关

  • #1 楼 @lihuazhang 恒温,阿拉也不晓得,报错是安装失败,但是我把 appname 删掉了啊