• 第一点似懂非懂 0.0
    1.所有组成元素是指 case 里面的每一条接口请求,还是说接口里的每一个字段参数化
    2.对复用率高的抽出来管理,不知道具体是怎么管理,是把大流程里的小流程抽出来,组成 case 嵌套的形式?
    3.其实多环境场景下,主要是数据不一致的问题,感觉目前多数也只能是一套环境一套数据,不知道有没有多环境同步数据做的很好的案例

  • 不知道大佬们对测试环境切换有没有什么好主意,现在一直纠结怎么在多环境下能节省接口 case 的维护成本

  • 不知道是不是测试行业的怪圈,做平台、做系统就是为了装 13(当然不否认确实有为了装 13 而做的)
    难道测试系统一点价值都没有吗?做成 GUI 的东西不是为了更直观吗?
    我们每次的测试记录形成的报告统计,说远点,以后的大数据分析,AI 测试,难道不都是基于系统级日志记录吗
    开发也都在尽量让代码维护可视化,点点按钮就能完成的事,为啥要在框架里执行代码呢?
    只能说,根据公司情况,做自己适合的东西,我觉得不能把测试系统说的一文不值~

  • 💪 赞~对问题刨根问底

  • jira 本身的问题搜索做的很全啊 为啥要用 sql……

  • 感谢~可以配置是否需要审核嘛,高级点就是制定个自动过审的要求,现在也是帖子留言才能开,其实差不多~ 就是如果论坛没有此功能的话需要开发,哈哈😂

  • 好像理解错了😂 申请一个~
    以为是有申请专栏的功能,感觉可以加个申请入口啊

  • 头像下没有申请专栏的 是什么情况~

  • 怎么感觉是一篇广告洗脑文……有种进了传销组织的感觉(我们的产品最好~我们的产品万能的~我们的产品一出其他的都是垃圾没用啦~)😀

  • 哪里有录播看~

  • 请问大佬怎么看出来是想问性能和稳定性的 0.0

  • 涨姿势了~感谢大神耐心回复~😊
    还是有点疑惑,好像每个人对 TPS 的理解都不太一样,难道是术语没有在业界统一么😅 ,记得以前拿 LR 做性能的时候 TPS 就是每秒事务数,是根据在脚本里添加事务来确定某几个请求算一个事务的(一般来说是一个请求一个事务,此时可以理解 QPS=TPS),但是不知道 TPS 和吞吐量有什么关系,好像用 TPS 的曲线来找拐点和吞吐量是一个意思吧?
    另外还是不清楚限流的实际应用场景有哪些,莫非防止服务器报警 ddos 攻击?😂

  • 我觉得还是要结果导向的,比如楼主所说的 Jmeter 局限性,其实不是重点,44 楼的大神说的比较清楚了,所以现在好奇的知识点是:
    1.限制 QPS 的作用是啥?
    2.QPS 和 TPS 的对比有什么实际作用?拐点能代表什么东东?
    不知道有没有大神解惑~
    @fudax @keithmork

  • 我觉得面试官主要想知道你在项目里做什么吧,然后能通过你干的事发现和公司有没有契合度,然后也能再根据你做的事情深入问更多的东西?

  • JMeter4.0 变化-迎接 java9 at 2018年03月01日

    这个边界提取器(Boundary Extractor)是不是跟正则类似啊 提取两个边界之间的内容?

  • cool~期待平台与 Jmeter 结合的案例😄
    另外定时任务的话,我现在是通过 Jenkins 实现的,感觉目前看貌似就是 Jmeter 的使用普及问题不如平台来的方便,还有就是可视化更清晰一些,以及团队多个人的协同问题

  • 难道都没发现,图片很犀利么……

  • 首先膜拜大神~🙆
    然后想请教个问题:
    您开头说的 Jmeter 等通用工具的可扩展性以及跟项目的契合度上并不是十分合适,是否方便具体说下具体是哪里不太合适?
    个人总觉得如 Jmeter、postman 等工具的功能还是蛮强大的,好像并没有发现太多深入使用的案例,大多都在自己搞框架开发自己的系统,而单从功能看貌似和 jmeter 也没太大区别(没搞懂契合度体现在哪里?),感觉自己开发一套系统的话成本太高(又是重复造轮子的话题),从接口规范来说现在好多都是 restful 的,比较趋向于 https 协议,一些认证、参数加密感觉自己实现起来都比较费劲,是不是只有较大团队才比较适合自己做一套系统?

  • 好的谢谢,我再找找原因😃

  • 1.手机设置了 adb 安装应用不提醒,所以木有对话框,日志也没发现安装 Uiautomator2 的俩应用
    2.uiautomator2 的 driver 是存在的,apk 也都在,就是没有自动安装,不知道什么鬼
    还有没有其他要注意的...
    @seveniruby 思寒大人求助求助..😢

  • @songer Android sdk 的 tools 目录确实没有这个工具,看网上说 Android SDK Build-tools 20 就已经修复了,我都 25 的版本了很奇怪为啥还是没有,我从 build-tools 目录中找了个版本里面有 zipalign,复制到 tools 目录后还是不行,应该不是同一个原因
    @carl 完整建立 Session 日志如下

    [2017-05-08 11:06:30][Appium] Welcome to Appium v1.6.4
    [2017-05-08 11:06:30][Appium] Non-default server args:
    [2017-05-08 11:06:30][Appium]   address: 127.0.0.1
    [2017-05-08 11:06:30][Appium]   sessionOverride: true
    [2017-05-08 11:06:30][Appium]   log: /Users/sqbj/Documents/appium/Log
    [2017-05-08 11:06:30][Appium]   logTimestamp: true
    [2017-05-08 11:06:30][Appium] Appium REST http interface listener started on 127.0.0.1:4723
    [2017-05-08 11:06:40][HTTP] --> POST /wd/hub/session {"capabilities":[{"desiredCapabilities":{"app":"/Users/sqbj/dev/lehome/mobileUITest/res/sqbj_android.apk","appPackage":"cn.lejiayuan.alpha","deviceName":"Mi5","appActivity":"cn.lejiayuan.activity.global.SplashActivity","newCommandTimeout":600,"autoLaunch":false,"platformVersion":"6.0.1","automationName":"UIAutomator2","unicodeKeyboard":true,"platformName":"Android","udid":"79ed76ef","resetKeyboard":true}},{"requiredCapabilities":{}}],"desiredCapabilities":{"app":"/Users/sqbj/dev/lehome/mobileUITest/res/sqbj_android.apk","appPackage":"cn.lejiayuan.alpha","deviceName":"Mi5","appActivity":"cn.lejiayuan.activity.global.SplashActivity","newCommandTimeout":600,"autoLaunch":false,"platformVersion":"6.0.1","automationName":"UIAutomator2","unicodeKeyboard":true,"platformName":"Android","udid":"79ed76ef","resetKeyboard":true},"requiredCapabilities":{}}
    [2017-05-08 11:06:40][MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/sqbj/dev/lehome/mobileUITest/res/sqbj_android.apk","appPackage":"cn.lejiayuan.alpha","deviceName":"Mi5","appActivity":"cn.lejiayuan.activity.global.SplashActivity","newCommandTimeout":600,"autoLaunch":false,"platformVersion":"6.0.1","automationName":"UIAutomator2","unicodeKeyboard":true,"platformName":"Android","udid":"79ed76ef","resetKeyboard":true},{},[{"desiredCapabilities":{"app":"/Users/sqbj/dev/lehome/mobileUITest/res/sqbj_android.apk","appPackage":"cn.lejiayuan.alpha","deviceName":"Mi5","appActivity":"cn.lejiayuan.activity.global.SplashActivity","newCommandTimeout":600,"autoLaunch":false,"platformVersion":"6.0.1","automationName":"UIAutomator2","unicodeKeyboard":true,"platformName":"Android","udid":"79ed76ef","resetKeyboard":true}},{"requiredCapabilities":{}}],null,null]
    [2017-05-08 11:06:40][BaseDriver] Event 'newSessionRequested' logged at 1494212800853 (11:06:40 GMT+0800 (CST))
    [2017-05-08 11:06:40][Appium] Creating new AndroidUiautomator2Driver (v0.3.1) session
    [2017-05-08 11:06:40][Appium] Capabilities:
    [2017-05-08 11:06:40][Appium]   app: '/Users/sqbj/dev/lehome/mobileUITest/res/sqbj_android.apk'
    [2017-05-08 11:06:40][Appium]   appPackage: 'cn.lejiayuan.alpha'
    [2017-05-08 11:06:40][Appium]   deviceName: 'Mi5'
    [2017-05-08 11:06:40][Appium]   appActivity: 'cn.lejiayuan.activity.global.SplashActivity'
    [2017-05-08 11:06:40][Appium]   newCommandTimeout: 600
    [2017-05-08 11:06:40][Appium]   autoLaunch: false
    [2017-05-08 11:06:40][Appium]   platformVersion: '6.0.1'
    [2017-05-08 11:06:40][Appium]   automationName: 'UIAutomator2'
    [2017-05-08 11:06:40][Appium]   unicodeKeyboard: true
    [2017-05-08 11:06:40][Appium]   platformName: 'Android'
    [2017-05-08 11:06:40][Appium]   udid: '79ed76ef'
    [2017-05-08 11:06:40][Appium]   resetKeyboard: true
    [2017-05-08 11:06:40][BaseDriver] Session created with session id: b3edbabc-8911-4799-8f64-84a75aff9bb5
    [2017-05-08 11:06:40][BaseDriver] Using local app '/Users/sqbj/dev/lehome/mobileUITest/res/sqbj_android.apk'
    [2017-05-08 11:06:40][UiAutomator2] Checking whether app is actually present
    [2017-05-08 11:06:41][UiAutomator2] UIAutomator2 Driver version:0.3.1
    [2017-05-08 11:06:41][AndroidDriver] Getting Java version
    [2017-05-08 11:06:41][AndroidDriver] Java version is: 1.8.0_152-ea
    [2017-05-08 11:06:41][ADB] Checking whether adb is present
    [2017-05-08 11:06:41][ADB] Using adb from /Users/sqbj/Documents/Android_sdk/platform-tools/adb
    [2017-05-08 11:06:41][AndroidDriver] Retrieving device list
    [2017-05-08 11:06:41][ADB] Trying to find a connected android device
    [2017-05-08 11:06:41][ADB] Getting connected devices...
    [2017-05-08 11:06:41][ADB] 1 device(s) connected
    [2017-05-08 11:06:41][AndroidDriver] Using device: 79ed76ef
    [2017-05-08 11:06:41][ADB] Checking whether adb is present
    [2017-05-08 11:06:41][ADB] Using adb from /Users/sqbj/Documents/Android_sdk/platform-tools/adb
    [2017-05-08 11:06:41][ADB] Setting device id to 79ed76ef
    [2017-05-08 11:06:41][ADB] Getting device platform version
    [2017-05-08 11:06:41][ADB] Getting connected devices...
    [2017-05-08 11:06:41][ADB] 1 device(s) connected
    [2017-05-08 11:06:41][ADB] Running '/Users/sqbj/Documents/Android_sdk/platform-tools/adb' with args: ["-P",5037,"-s","79ed76ef","shell","getprop","ro.build.version.release"]
    [2017-05-08 11:06:41][ADB] Getting connected devices...
    [2017-05-08 11:06:41][ADB] 1 device(s) connected
    [2017-05-08 11:06:41][ADB] Running '/Users/sqbj/Documents/Android_sdk/platform-tools/adb' with args: ["-P",5037,"-s","79ed76ef","shell","wm","size"]
    [2017-05-08 11:06:42][ADB] Getting connected devices...
    [2017-05-08 11:06:42][ADB] 1 device(s) connected
    [2017-05-08 11:06:42][ADB] Running '/Users/sqbj/Documents/Android_sdk/platform-tools/adb' with args: ["-P",5037,"-s","79ed76ef","shell","getprop","ro.product.model"]
    [2017-05-08 11:06:42][ADB] Current device property 'ro.product.model': MI 5
    [2017-05-08 11:06:42][ADB] Getting connected devices...
    [2017-05-08 11:06:42][ADB] 1 device(s) connected
    [2017-05-08 11:06:42][ADB] Running '/Users/sqbj/Documents/Android_sdk/platform-tools/adb' with args: ["-P",5037,"-s","79ed76ef","shell","getprop","ro.product.manufacturer"]
    [2017-05-08 11:06:42][ADB] Current device property 'ro.product.manufacturer': Xiaomi
    [2017-05-08 11:06:42][ADB] Getting connected devices...
    [2017-05-08 11:06:42][ADB] 1 device(s) connected
    [2017-05-08 11:06:42][ADB] Running '/Users/sqbj/Documents/Android_sdk/platform-tools/adb' with args: ["-P",5037,"-s","79ed76ef","shell","am","force-stop","io.appium.uiautomator2.server"]
    [2017-05-08 11:06:43][ADB] Running '/Users/sqbj/Documents/Android_sdk/platform-tools/adb' with args: ["-P",5037,"-s","79ed76ef","wait-for-device"]
    [2017-05-08 11:06:43][ADB] Getting connected devices...
    [2017-05-08 11:06:43][ADB] 1 device(s) connected
    [2017-05-08 11:06:43][ADB] Running '/Users/sqbj/Documents/Android_sdk/platform-tools/adb' with args: ["-P",5037,"-s","79ed76ef","shell","echo","ping"]
    [2017-05-08 11:06:43][Logcat] Starting logcat capture
    [2017-05-08 11:06:43][AndroidDriver] Enabling Unicode keyboard support
    [2017-05-08 11:06:43][AndroidDriver] Pushing unicode ime to device...
    [2017-05-08 11:06:43][ADB] Running '/Users/sqbj/Documents/Android_sdk/platform-tools/adb' with args: ["-P",5037,"-s","79ed76ef","install","/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-ime/bin/UnicodeIME-debug.apk"]
    [2017-05-08 11:06:44][ADB] Getting connected devices...
    [2017-05-08 11:06:44][ADB] 1 device(s) connected
    [2017-05-08 11:06:44][ADB] Running '/Users/sqbj/Documents/Android_sdk/platform-tools/adb' with args: ["-P",5037,"-s","79ed76ef","shell","settings","get","secure","default_input_method"]
    [2017-05-08 11:06:45][AndroidDriver] Unsetting previous IME io.appium.android.ime/.UnicodeIME
    [2017-05-08 11:06:45][AndroidDriver] Setting IME to 'io.appium.android.ime/.UnicodeIME'
    [2017-05-08 11:06:45][ADB] Getting connected devices...
    [2017-05-08 11:06:45][ADB] 1 device(s) connected
    [2017-05-08 11:06:45][ADB] Running '/Users/sqbj/Documents/Android_sdk/platform-tools/adb' with args: ["-P",5037,"-s","79ed76ef","shell","ime","enable","io.appium.android.ime/.UnicodeIME"]
    [2017-05-08 11:06:46][ADB] Getting connected devices...
    [2017-05-08 11:06:46][ADB] 1 device(s) connected
    [2017-05-08 11:06:46][ADB] Running '/Users/sqbj/Documents/Android_sdk/platform-tools/adb' with args: ["-P",5037,"-s","79ed76ef","shell","ime","set","io.appium.android.ime/.UnicodeIME"]
    [2017-05-08 11:06:47][AndroidDriver] Pushing settings apk to device...
    [2017-05-08 11:06:47][ADB] Getting install status for io.appium.settings
    [2017-05-08 11:06:47][ADB] Getting connected devices...
    [2017-05-08 11:06:47][ADB] 1 device(s) connected
    [2017-05-08 11:06:47][ADB] Running '/Users/sqbj/Documents/Android_sdk/platform-tools/adb' with args: ["-P",5037,"-s","79ed76ef","shell","pm","list","packages","io.appium.settings"]
    [2017-05-08 11:06:47][ADB] App is installed
    [2017-05-08 11:06:47][ADB] Getting package info for io.appium.settings
    [2017-05-08 11:06:47][ADB] Getting connected devices...
    [2017-05-08 11:06:47][ADB] Checking whether aapt is present
    [2017-05-08 11:06:47][ADB] Using aapt from /Users/sqbj/Documents/Android_sdk/build-tools/20.0.0/aapt
    [2017-05-08 11:06:47][ADB] 1 device(s) connected
    [2017-05-08 11:06:47][ADB] Running '/Users/sqbj/Documents/Android_sdk/platform-tools/adb' with args: ["-P",5037,"-s","79ed76ef","shell","dumpsys","package","io.appium.settings"]
    [2017-05-08 11:06:47][ADB] Cannot read version codes of /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/io.appium.settings/app/build/outputs/apk/settings_apk-debug.apk and/or io.appium.settings. Assuming correct app version is already installed
    [2017-05-08 11:06:47][ADB] Getting connected devices...
    [2017-05-08 11:06:47][ADB] 1 device(s) connected
    [2017-05-08 11:06:47][ADB] Running '/Users/sqbj/Documents/Android_sdk/platform-tools/adb' with args: ["-P",5037,"-s","79ed76ef","shell","getprop","ro.build.version.sdk"]
    [2017-05-08 11:06:47][ADB] Device API level: 23
    [2017-05-08 11:06:47][ADB] Getting connected devices...
    [2017-05-08 11:06:47][ADB] 1 device(s) connected
    [2017-05-08 11:06:47][ADB] Running '/Users/sqbj/Documents/Android_sdk/platform-tools/adb' with args: ["-P",5037,"-s","79ed76ef","shell","dumpsys","package","io.appium.settings"]
    [2017-05-08 11:06:48][ADB] Getting connected devices...
    [2017-05-08 11:06:48][ADB] 1 device(s) connected
    [2017-05-08 11:06:48][ADB] Running '/Users/sqbj/Documents/Android_sdk/platform-tools/adb' with args: ["-P",5037,"-s","79ed76ef","shell","pm","dump","io.appium.settings"]
    [2017-05-08 11:06:48][ADB] Getting connected devices...
    [2017-05-08 11:06:48][ADB] 1 device(s) connected
    [2017-05-08 11:06:49][ADB] Running '/Users/sqbj/Documents/Android_sdk/platform-tools/adb' with args: ["-P",5037,"-s","79ed76ef","shell","pm","grant","io.appium.settings","android.permission.WRITE_SETTINGS",";","pm","grant","io.appium.settings","android.permission.ACCESS_MOCK_LOCATION",";"]
    [2017-05-08 11:06:49][AndroidDriver] Pushing unlock helper app to device...
    [2017-05-08 11:06:49][ADB] Running '/Users/sqbj/Documents/Android_sdk/platform-tools/adb' with args: ["-P",5037,"-s","79ed76ef","install","/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-unlock/bin/unlock_apk-debug.apk"]
    [2017-05-08 11:06:50][ADB] Device API level: 23
    [2017-05-08 11:06:50][ADB] Getting connected devices...
    [2017-05-08 11:06:50][ADB] 1 device(s) connected
    [2017-05-08 11:06:50][ADB] Running '/Users/sqbj/Documents/Android_sdk/platform-tools/adb' with args: ["-P",5037,"-s","79ed76ef","shell","appops","set","io.appium.settings","android:mock_location","allow"]
    [2017-05-08 11:06:51][UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8200
    [2017-05-08 11:06:51][ADB] Forwarding system: 8200 to device: 6790
    [2017-05-08 11:06:51][ADB] Running '/Users/sqbj/Documents/Android_sdk/platform-tools/adb' with args: ["-P",5037,"-s","79ed76ef","forward","tcp:8200","tcp:6790"]
    [2017-05-08 11:06:51][ADB] Getting connected devices...
    [2017-05-08 11:06:51][ADB] 1 device(s) connected
    [2017-05-08 11:06:51][ADB] Running '/Users/sqbj/Documents/Android_sdk/platform-tools/adb' with args: ["-P",5037,"-s","79ed76ef","shell","dumpsys","window"]
    [2017-05-08 11:06:51][AndroidDriver] Screen already unlocked, doing nothing
    [2017-05-08 11:06:51][ADB] Getting connected devices...
    [2017-05-08 11:06:51][ADB] 1 device(s) connected
    [2017-05-08 11:06:51][ADB] Running '/Users/sqbj/Documents/Android_sdk/platform-tools/adb' with args: ["-P",5037,"-s","79ed76ef","shell","am","force-stop","io.appium.uiautomator2.server"]
    [2017-05-08 11:06:52][UiAutomator2] Starting uiautomator2 server v0.1.4 with cmd: am,instrument,-w,io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner
    [2017-05-08 11:06:52][UiAutomator2] running command...
     adb -s 79ed76ef shell am instrument -w io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner... 
    [2017-05-08 11:06:52][UiAutomator2] Waiting for UiAutomator2 to be online...
    [2017-05-08 11:06:52][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-05-08 11:06:53][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-05-08 11:06:54][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-05-08 11:06:55][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-05-08 11:06:56][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-05-08 11:06:57][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-05-08 11:06:58][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-05-08 11:06:59][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-05-08 11:07:00][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-05-08 11:07:01][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-05-08 11:07:02][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-05-08 11:07:03][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-05-08 11:07:04][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-05-08 11:07:05][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-05-08 11:07:06][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-05-08 11:07:07][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-05-08 11:07:09][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-05-08 11:07:10][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-05-08 11:07:11][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-05-08 11:07:12][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-05-08 11:07:13][UiAutomator2] Deleting UiAutomator2 session
    [2017-05-08 11:07:13][UiAutomator2] Deleting UiAutomator2 server session
    [2017-05-08 11:07:13][UiAutomator2] Did not get confirmation UiAutomator2 deleteSession worked; Error was: Error: Trying to proxy a session command without session id
    [2017-05-08 11:07:13][ADB] Getting connected devices...
    [2017-05-08 11:07:13][ADB] 1 device(s) connected
    [2017-05-08 11:07:13][ADB] Running '/Users/sqbj/Documents/Android_sdk/platform-tools/adb' with args: ["-P",5037,"-s","79ed76ef","shell","am","force-stop","cn.lejiayuan.alpha"]
    [2017-05-08 11:07:13][Logcat] Stopping logcat capture
    [2017-05-08 11:07:13][ADB] Removing forwarded port socket connection: 8200 
    [2017-05-08 11:07:13][ADB] Running '/Users/sqbj/Documents/Android_sdk/platform-tools/adb' with args: ["-P",5037,"-s","79ed76ef","forward","--remove","tcp:8200"]
    [2017-05-08 11:07:13][MJSONWP] Encountered internal error running command: ProxyRequestError: Could not proxy command to remote server. Original error: Error: socket hang up
        at JWProxy.proxy$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:144:13)
        at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
        at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
        at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
        at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
    [2017-05-08 11:07:13][HTTP] <-- POST /wd/hub/session 500 32927 ms - 216 
    

    过程中没有报错就看到有一个端口转换

    [2017-05-08 11:06:40][UiAutomator2] Checking whether app is actually present
    [2017-05-08 11:06:41][UiAutomator2] UIAutomator2 Driver version:0.3.1
    

    貌似就检查了一下 app 是否存在 然后后面就直接启动 Uiautomator2 的 server,等待响应,然后就没有然后了...

  • 问下你 Uiautomator2 启动 server 没有自动安装 apk 的问题是怎么解决的?

  • 我仔细找了一下,由于使用的是 appium-decktop 1.0 的 dmg 安装的 appium,uiautomator2 的目录比较深,在这里能找到 apk:

    ../Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-driver/uiautomator2
    

    apk 的名字是这两个

    现在问题是为啥没安装呢.. appium server 的日志里没找到安装这俩 app 的日志

  • 😅 贼恐怖,我这俩一个都没有...

    莫非还有什么特殊的配置?应该是配置 AUTOMATION_NAME 为 uiautomator2 就可以自动安装?

  • @carl 请教一下,有没有遇到过这个问题

    [2017-04-27 07:06:45][UiAutomator2] Starting uiautomator2 server v0.1.4 with cmd: am,instrument,-w,io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner
    [2017-04-27 07:06:45][UiAutomator2] running command...
     adb -s 760BBL522XW3 shell am instrument -w io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner... 
    [2017-04-27 07:06:45][UiAutomator2] Waiting for UiAutomator2 to be online...
    [2017-04-27 07:06:45][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-04-27 07:06:46][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-04-27 07:06:48][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-04-27 07:06:49][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-04-27 07:06:50][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-04-27 07:06:51][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-04-27 07:06:52][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-04-27 07:06:53][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-04-27 07:06:54][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-04-27 07:06:55][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-04-27 07:06:56][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-04-27 07:06:57][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-04-27 07:06:58][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-04-27 07:06:59][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-04-27 07:07:00][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-04-27 07:07:01][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-04-27 07:07:02][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-04-27 07:07:03][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-04-27 07:07:04][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-04-27 07:07:05][JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
    [2017-04-27 07:07:06][UiAutomator2] Deleting UiAutomator2 session
    [2017-04-27 07:07:06][UiAutomator2] Deleting UiAutomator2 server session
    [2017-04-27 07:07:06][UiAutomator2] Did not get confirmation UiAutomator2 deleteSession worked; Error was: Error: Trying to proxy a session command without session id
    [2017-04-27 07:07:06][ADB] Getting connected devices...
    [2017-04-27 07:07:06][ADB] 1 device(s) connected
    [2017-04-27 07:07:06][ADB] Running '/Users/sqbj/Documents/Android_sdk/platform-tools/adb' with args: ["-P",5037,"-s","760BBL522XW3","shell","am","force-stop","cn.lejiayuan.alpha"]
    [2017-04-27 07:07:06][Logcat] Stopping logcat capture
    [2017-04-27 07:07:06][ADB] Removing forwarded port socket connection: 8200 
    [2017-04-27 07:07:06][ADB] Running '/Users/sqbj/Documents/Android_sdk/platform-tools/adb' with args: ["-P",5037,"-s","760BBL522XW3","forward","--remove","tcp:8200"]
    [2017-04-27 07:07:06][MJSONWP] Encountered internal error running command: ProxyRequestError: Could not proxy command to remote server. Original error: Error: socket hang up
        at JWProxy.proxy$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:144:13)
        at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
        at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
        at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
        at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
    [2017-04-27 07:07:06][HTTP] <-- POST /wd/hub/session 500 31087 ms - 216 
    

    应该是这个命令启动 server 失败了?

    adb -s 760BBL522XW3 shell am instrument -w io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner
    

    连接不到http://localhost:8200/wd/hub/status
    但是不知道怎么解决...