测试之家
  • 社区
  • 问答
  • 招聘
  • 社区学堂新
  • 开源项目
  • 活动
  • Wiki
  • 注册
  • 登录
会员
carl (bauul)
第 2562 位会员 / 2015-02-11
166 篇帖子 • 1060 条回帖
171 关注者
7 正在关注
122 收藏
一面成熟,一面天真
打赏支持
GitHub Public Repos
  • api-test-executor 2

    接口测试执行器

  • har-reader 0

    Library for accessing HTTP Archives (HAR) with Java

  • tutorial 0

    Spring Boot的例子,包含RESTful API, MVC, JMS, Cache, Mybatis, Cache, Websocket...

  • paascloud-master 0

    spring cloud + vue + oAuth2.0全家桶实战,前后端分离模拟商城,完整的购物流程、后端运营平台,可以实现快速搭建企业级微服务项目。支持微信登录等三方登录。

  • browsermob-proxy 0

    A free utility to help web developers watch and manipulate network traffic from their AJAX applic...

  • kityminder-editor 0

    Powerful Mindmap Editing Tool

  • Spark-The-Definitive-G... 0

    Spark: The Definitive Guide's Code Repository

  • pro-vue-js-2 0

    Source Code for Pro Vue.js 2 by Adam Freeman

  • Mind-Expanding-Books 0

    :books: Books that will blow your mind

  • java-ee-8-recipes 0

    Source code for 'Java EE 8 Recipes' by Josh Juneau

More on GitHub
  • 個人信息
  • 個人專欄
  • 帖子
  • 回帖
  • 收藏
  • 正在關注
  • 關注者
  • 解决 Appium 使用 UiAutomator2 带来的 keyevent 无法识别问题 at 2017年07月06日

    不是这个原因噢,

    buildscript {
        repositories {
            jcenter()
            maven { url 'https://jitpack.io' }
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:2.3.3'
            //classpath 'com.github.JakeWharton:sdk-manager-plugin:0ce4cdf08009d79223850a59959d9d6e774d0f77'
        }
    }
    
    //apply plugin: 'android-sdk-manager'
    apply plugin: 'com.android.application'
    
    // optionally including an emulator
    //sdkManager {
    //    emulatorVersion 'android-23'
    //    emulatorArchitecture 'x86' // optional, defaults to arm
    //}
    
    android {
        compileSdkVersion 25
        buildToolsVersion "25.0.2"
        defaultConfig {
            applicationId "io.appium.uiautomator2"
            minSdkVersion 18
            targetSdkVersion 25
            versionCode 1
            archivesBaseName = "appium-uiautomator2"
            /**
             * versionName should be updated and inline with version in package.json for every npm release.
             */
            versionName "0.1.0"
            testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        }
        buildTypes {
            debug {
                debuggable true
            }
            customDebuggableBuildType {
                debuggable true
            }
            applicationVariants.all { variant ->
                appendVersionNameVersionCode(variant, defaultConfig)
            }
        }
    
        lintOptions {
            abortOnError false
        }
        productFlavors {
            e2eTest {
                applicationId 'io.appium.uiautomator2.e2etest'
            }
            server {
                applicationId 'io.appium.uiautomator2.server'
            }
        }
        packagingOptions {
            exclude 'META-INF/maven/com.google.guava/guava/pom.properties'
            exclude 'META-INF/maven/com.google.guava/guava/pom.xml'
        }
    
        useLibrary 'org.apache.http.legacy'
    }
    
    dependencies {
        compile fileTree(include: ['*.jar'], dir: 'libs')
        compile 'io.netty:netty-all:4.0.41.Final'
        compile 'com.jayway.jsonpath:json-path:0.8.1'
        compile 'com.squareup.okhttp:okhttp:2.5.0'
        compile 'com.android.support.test:runner:0.5'
        compile 'com.android.support:support-annotations:25.1.0'
        compile 'com.android.support.test.uiautomator:uiautomator-v18:2.1.2'
        androidTestCompile 'junit:junit:4.12'
        androidTestCompile 'com.android.support:support-annotations:25.1.0'
        androidTestCompile 'com.android.support.test.uiautomator:uiautomator-v18:2.1.2'
        androidTestCompile 'com.android.support.test.espresso:espresso-web:2.2.2'
    }
    
    task installAUT(type: Exec) {
        group = 'test'
        description = 'Install app under test'
        def adb = android.getAdbExe().toString()
        def apk = file('../app/src/androidTestE2eTest/java/io/appium/uiautomator2/unittest/resource/ApiDemos-debug.apk')
        commandLine "$adb install -rg $apk".split(' ')
        standardOutput = new ByteArrayOutputStream()
        ext.output = {
            return standardOutput.toString()
        }
        println ext.output.toString()
    }
    
    afterEvaluate {
        tasks.each { task ->
            if (task.name.startsWith('connectedE2eTestDebugAndroidTest')) {
                task.dependsOn installAUT
            }
        }
    }
    
    def appendVersionNameVersionCode(variant, defaultConfig) {
        variant.outputs.each { output ->
            def file = output.packageApplication.outputFile
            def fileName = file.name.replace("debug.apk", "v${defaultConfig.versionName}.apk")
            output.packageApplication.outputFile = new File(file.parent, fileName)
        }
    }
    
    
    
    
  • [求助] 在 AndroidStudio 中使用 Robotium 出错,找不到测试 class at 2017年07月06日

    pm list instrumentation 可以列出已安装的测试包

  • 如何快速定位 Android 启动测试中的耗时方法 at 2017年07月05日

    能有个 demo 就好了

  • 解决 Appium 使用 UiAutomator2 带来的 keyevent 无法识别问题 at 2017年07月05日

    apk 的名字和我提供的两个完全一致吗?另外可以先把手机中已有的应用 卸载掉,再试一下

  • 解决 Appium 使用 UiAutomator2 带来的 keyevent 无法识别问题 at 2017年07月05日

    你打包的方式导致的吧,确认文件名如下:
    appium-uiautomator2-server-v0.1.0.apk
    appium-uiautomator2-server-debug-androidTest.apk

    在目录:
    appium\node_modules\appium-uiautomator2-driver\uiautomator2

  • [杭州沙龙] MQC 移动测试沙龙第 1 期 at 2017年07月05日

    这会儿还没联系的,是不是表示报名失败了?

  • UiAutomator2 Server 运行原理分析 at 2017年07月04日

    不错噢,在 github 上面有编译和安装的方法啊,呐,链接如下:
    https://github.com/appium/appium-uiautomator2-server

  • 怎么看待测试圈接私单的行为 at 2017年07月04日

    赞同,想起之前在群里解答别人问题,别人还给我发了红包,还是不错的😀

  • 解决 Appium 使用 UiAutomator2 带来的 keyevent 无法识别问题 at 2017年07月04日

    我也想修改一下这个 server 部分,主要是在安装 uiautomator2.0 server 应用的时候,是判断手机上是否安装的,但没有判断这个应用是不是有更新的逻辑,如果我更新了这个应用,但手机上仍然是旧版本的

  • 解决 Appium 使用 UiAutomator2 带来的 keyevent 无法识别问题 at 2017年07月04日

    不错噢,uiautomator2.0server 的部分我也修改过,不过没有修改 nodejs 的部分,学习了👍

  • 修改 Appium 启动源码以修正在安装 appium settings 和 unlock 应用时不能自动点击弹窗的问题 at 2017年07月03日

    我也不是太清楚噢,猜测是和 unlock 配合使用,解锁用的
    因为我找了下,没能找到它的源代码

  • [杭州沙龙] MQC 移动测试沙龙第 1 期 at 2017年07月03日

    28 号当天就报名了,也不知道有没有报上

  • [gitblit][jenkins] 在 jenkins 构建基于 maven 的 HelloWorld 工程 at 2017年06月30日

    增加一些图文

  • Appium1.6.3 版本,在 bootstrap 源码中添加自定义监听器,将手动编译的 AppiumBootstrap.jar 放到 Appium 中,自定义监听没有生效 at 2017年06月29日

    👍
    互相学习

  • appium 测试安卓 7.1 版本手机报错 at 2017年06月29日

    贴这张图又对不上,这张图是执行具体操作的时候报的没有权限的问题。
    日志有说明具体的错误信息的

  • appium 测试安卓 7.1 版本手机报错 at 2017年06月29日

    就贴几张图,至少也该说明一下,做了什么 操作导致 的吧,从 log 上看,是控件 定位符导致的 appium uiautomator2.0 server 异常。
    不确定是不是跨 APP 导致

  • Appium1.6.3 版本,在 bootstrap 源码中添加自定义监听器,将手动编译的 AppiumBootstrap.jar 放到 Appium 中,自定义监听没有生效 at 2017年06月28日

    你仔细检查一下 appium 执行日志,它会显示 push appiumbootstrap.jar 这个文件到手机的日志,另外打包是用 ant 的,
    转到源码目录下 node_modules\appium-android-driver\node_modules\appium-android-bootstrap\bootstrap
    执行 ant build 即可。
    ui1.0 只依赖两个 jar 包,android.jar 和 uiautomator.jar,在 android sdk 的 platform 目录下

    具体打包方法可参见百度:http://www.cnblogs.com/cologne/p/4726024.html

  • Appium1.6.3 版本,在 bootstrap 源码中添加自定义监听器,将手动编译的 AppiumBootstrap.jar 放到 Appium 中,自定义监听没有生效 at 2017年06月28日

    看你写的没错,
    你可以执行命令行把这个 server 起来,

    uiautomator runtest AppiumBootstrap.jar -c io.appium.android.bootstrap.Bootstrap
    

    然后在手机上操作把这个弹窗显示出来,验证一下有没有效果

  • [杭州沙龙] MQC 移动测试沙龙第 1 期 at 2017年06月28日

    👀 😀 👀
    后台回复是直接回复吗?

  • Appium1.6.3 版本,在 bootstrap 源码中添加自定义监听器,将手动编译的 AppiumBootstrap.jar 放到 Appium 中,自定义监听没有生效 at 2017年06月27日

    1.把你的修改的代码贴出来,
    2.把手机中 data/local/tmp 下面的 appiumbootstrap.jar 给 pull 出来并反编译,确定有包含你的代码
    3.因为这是 ui1.0 的 jar 包,所以一般是使用 ant build 来打包的,不确定 mvn 打包是否 ok

  • 疯狂的持续集成之路 at 2017年06月27日

    擦,就一开头……。
    果然疯狂

  • FPS 计算方法的比较 at 2017年06月26日

    我想请问一下这个图片中的 Total frames,Janky frames 都代表啥,我想计算 fps,哪个方法最可靠啊?为毛一堆方法比较之后结果是用真机看 GPU
    谢谢

  • 安卓 7.0 设备上,允许获取权限后如何继续操作 APP at 2017年06月23日

    grant all 是神马

  • Appium IOS 自动化测试速度优化 -- 稳定高效的方法 (Appium 1.53 +IOS 9.1) at 2017年06月23日

    分析问题并优化解决,棒棒的

  • 上海喔噻招聘测试开发工程师&测试工程师 at 2017年06月22日

    感觉还是姑苏好呢

  • 上一页
  • 1
  • 2
  • 3
  • …
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • …
  • 39
  • 40
  • 41
  • 下一页
  • 关于 / 活跃用户 / 中国移动互联网测试技术大会 / 反馈 / Github / API / 帮助推广
    TesterHome社区,测试之家,由众多测试工程师组织和维护的技术社区,致力于帮助新人成长,提高测试地位,推进质量发展。Inspired by RubyChina
    友情链接 WeTest腾讯质量开放平台 / InfoQ / 掘金 / SegmentFault / 测试窝 / 百度测试吧 / IT大咖说
    简体中文 / 正體中文 / English

    ©testerhome.com 测试之家   渝ICP备2022001292号
      渝公网安备 50022202000435号    版权所有 © 重庆年云聚力信息技术有限公司