Giter Site home page Giter Site logo

ecommerce-android's Introduction

ECommerce-Android

E-Commerce example for Android (Gradle build with Robotium). The Robotium tests can be used to run repeated randomized simulations of an e-commerce shopping cart checkout scenario.

Pre-Requisites

  1. Android Studio: download latest version from here
  2. Gradle: download latest version (must be 2.0+) from here and set PATH to include Gradle bin dir
  3. Android SDK: Install at least the following:
    • Latest Android Tools, Platform-Tools and Build-Tools
    • SDK Platforms for 4.2.2 (Android 17), 4.3.1 (Android 18) and 4.4.2 (Android 19)
    • Extras: Android Support Repository, Android Support Library and Google Repository

Importing the Project

  1. Clone a local copy of this project with git clone https://github.com/Appdynamics/ECommerce-Android
  2. Open Android Studio and Import Project (select app/build.gradle)

Running the Robotium Tests

To install and run manually: gradle clean installDebug

To install and run automated Robotium tests: gradle clean connectedCheck

The connectedCheck task will upload the application and test .apk files to all connected devices and run in parallel

To view connected devices: adb devices

To send a command to a specific device, use: adb -s <device> ...

To view output, use logcat and filter on ADInstrumentation: adb logcat ADInstrumentation:D *:S

To test if a device is powered on, and send a power key press if not: adb shell dumpsys power | grep "mScreenOn=true" | xargs -0 test -z && adb shell input keyevent 26

To unlock a device: adb shell input keyevent 82

The wakeUpAndRun.sh shell script will check for all connected devices, wake them up and unlock if necessary before running gradle connectedCheck

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.