GithubHelp home page GithubHelp logo

ats.testcc's Introduction

UiAutomator known issues

EditText

EditText xml must contains an hint

<EditText
    android:id="@+id/password_input"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:inputType="text"
    android:hint=""
    android:backgroundTint="@color/red"
    android:shadowColor="@color/red"/>

textPassword is not well supported, use text instead

Setup

Android

You must install the android SDK into your computer. The latest version is provided by google.

Now setup your $ANDROID_HOME and export it into the PATH variable

export ANDROID_HOME=$HOME/Documents/android-sdk-linux
export PATH=$ANDROID_HOME/tools:$ANDROID_HOME/plateform-tools:$PATH

Google utils

To run all applications, your virtual machine needs

  • google services
  • google applications
  • google +
  • google account

Download

Download the latest version of google services from apkmirror.

In the versions list, search the last version which match Google Play services X.X.X (XXXXXXX-070), for example Google Play services 7.3.29 (1866531-070).

070 means this is an x86 version.


Download the latest version of google+ from apkmirror


Download the needed version of Gapps from cyanogenmod

Extract it. It must contains a system folder


Install

Reset the adb connection and connect to the vm

adb kill-server
adb connect xxx.xxx.xxx.xxx

Install the google play services

adb install com.google.android.gms-<version>.apk

Install shared library. Move to gapps directory and run

adb remount
adb push system/framework/com.google.android.maps.jar /system/framework
adb push system/etc/permissions/com.google.android.maps.xml /system/etc/permissions

Restart your VM

Install google+

adb kill-server
adb connect xxx.xxx.xxx.xxx
adb install com.google.android.apps.plus-<version>.apk

Install gapps. Move to gapps directory add run

adb remount
adb push system/ /system

Restart your VM

Now you can login to a google account, so you will have access to :

  • google store
  • updates
  • applications and services
  • ...

Android Sensor Demo

Battery

  • Level
  • Health
  • Power source
  • Status
  • Technology
  • Temperature
  • Voltage

Sensor

Accelerometer

  • X value
  • Y value
  • Z value
  • Name
  • Vendor
  • Power
  • Range
  • Resolution
  • History

How to create java protobuff

protoc -I=./sdl/proto/. --java_out="/tmp/." sdl/proto/sensors_packet.proto

Test Framework Integration

To include AiC Test Framework into existing application, you just have to put in it the aiccore package. Just take a look to add androidTestCompile project(path: ':aiccore') into build.gradle

ats.testcc's People

Contributors

mmariani avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

karinepires

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.