• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

lion14793/ECommerce-Android: E-Commerce example for Android (Gradle build with R ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

lion14793/ECommerce-Android

开源软件地址(OpenSource Url):

https://github.com/lion14793/ECommerce-Android

开源编程语言(OpenSource Language):

Java 97.9%

开源软件介绍(OpenSource 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




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap