Fantasy
 Android Studio is a new Android development
environment based on IntelliJ IDEA.
 It provides new features and improvements
over Eclipse ADT and will be the official
Android IDE once it's ready.
 Flexible Gradle-based build system.
 Build variants and multiple APK generation.
 Advanced Android code completion and
refactoring.
 Expanded template support for Google
Services and various device types.
 Support rich layout editor, Lint tools,
ProGuard.
 Project
 Packages
 Android
 One project contain
modules.
• JAR
• AAR(Android ARchive)
 Similar with Eclipse
 New flattened
structure
 File group
• Manifest
• Source
• Resource
• Gradle
 Gradle is build automation evolved.
 Gradle combines the power and flexibility of
Ant with the dependency management and
conventions of Maven into a more effective
way to build.
 Powered by a Groovy DSL and packed with
innovation, Gradle provides a declarative way
to describe all kinds of builds through
sensible defaults.
 Build configuration:
• Build variants
• Build type : Debug or Release
• Product falvor: Full or Demo
• Dependencies
• Manifest entries
• Signing
• ProGuard
• Testing
Android studio&Gradle&Autotest
Android studio&Gradle&Autotest
 General classification:
• Small(unit): preferably milliseconds
• Medium(Integration): preferably few seconds
• Large(System): preferably minutes or hours
 Android classification:
• Activity Testing
• Service Testing
• Content Provider Testing
• Accessibility Testing
• UI Testing
Android studio&Gradle&Autotest
 Monkey
• adb shell tool
 Monkeyrunner
• Uses Jython, a implementation of Python that uses
Java programming language.
 UiAutomatorviewer
• A GUI tool to scan and analyze the UI components
of an Android application.
 UiAutomator
• A Java library containing APIs to customized
functional UI tests.
 Basic syntax:
 Limit in target APP :
 Imports the monkeyrunner modules
 Connects to the current device
 Install the Android package
 Run the component
 Presses the Back button
 Pauses the current program
 Simulates a drag gesture
 Touches the screen
 Takes a screenshot
Android studio&Gradle&Autotest
 Use python uiautomator library
• Installation
 Grammar is similar with Monkeyrunner.
• Controls UI component directly !
 Testdroid

More Related Content

PDF
Mobile Day - Intel XDK & Testing
PDF
Build and automate your machine learning application with docker and jenkins
PPTX
Rendra Toro - Model View Presenter
PPTX
Project a day 2 introduction to android studio
PPTX
Google IO 2017 Recap
PDF
Android101
PDF
Tren Pengembangan Aplikasi Android di 2021 - Ahmad Arif Faizin
PPTX
Android
Mobile Day - Intel XDK & Testing
Build and automate your machine learning application with docker and jenkins
Rendra Toro - Model View Presenter
Project a day 2 introduction to android studio
Google IO 2017 Recap
Android101
Tren Pengembangan Aplikasi Android di 2021 - Ahmad Arif Faizin
Android

What's hot (20)

PPTX
Android Studio 3 - Dependency-Aware Build Variants and Product Flavors
PPT
Monkey Talk
PDF
Mobile Quality Night Vienna 2015 - Mobile UI Testautomation mit Specflow
PPTX
Introduction to android studio 2.0 and data binding library
PPTX
Monkey talk
PPTX
Microsoft Skills Bootcamp - The power of GitHub and Azure
PPTX
PDF
Create React Native App vs Expo vs Manually
PPTX
How to configure monkey talk android agent
PDF
Monkey talk
PDF
Adhrit: OWASP Seasides
PPTX
[Android] DI in multimodule application
PDF
I/O Extended (GDG Bogor) - Andrew Kurniadi
PDF
ML Kit , Cloud FF GDSC MESCOE.pdf
PPTX
Dirigible @ Skyscanner
PDF
iOS extension
PPTX
iOS 8 App Extensions
PDF
MonkeyTalk Documentation
PPT
MonkeyTalk Automation Testing For Android Application
PDF
iOS 8 Action Extension Training
Android Studio 3 - Dependency-Aware Build Variants and Product Flavors
Monkey Talk
Mobile Quality Night Vienna 2015 - Mobile UI Testautomation mit Specflow
Introduction to android studio 2.0 and data binding library
Monkey talk
Microsoft Skills Bootcamp - The power of GitHub and Azure
Create React Native App vs Expo vs Manually
How to configure monkey talk android agent
Monkey talk
Adhrit: OWASP Seasides
[Android] DI in multimodule application
I/O Extended (GDG Bogor) - Andrew Kurniadi
ML Kit , Cloud FF GDSC MESCOE.pdf
Dirigible @ Skyscanner
iOS extension
iOS 8 App Extensions
MonkeyTalk Documentation
MonkeyTalk Automation Testing For Android Application
iOS 8 Action Extension Training
Ad

Similar to Android studio&Gradle&Autotest (20)

PPTX
Intro to android (gdays)
PDF
Innovation Generation - The Mobile Meetup: Android Best Practices
PPTX
Developing for Android-Types of Android Application
PDF
Play with Testing on Android - Gilang Ramadhan (Academy Content Writer at Dic...
PPTX
From Containerization to Modularity
PPTX
Automation Proposal_V1.0
PDF
Google Rolls Out Agent Development Kits for Python and Java.pdf
PDF
Desarrollo y testing de apps móviles con Intel XDK y Testdroid
PPTX
Android App Development..
PPTX
Ii 1300-java essentials for android
PPT
Introduction to android sessions new
PPTX
Android application developement
PPTX
Build your android app with gradle
PDF
Java Tool Mastery Streamlining Application Development || Strawberry InfoTech
PDF
Android dev o_auth
PDF
Mobile Application Development FRAMEWORKS AND TOOLS.pdf
PPT
Android development orientation for starters v4 seminar
PDF
Android Development
PDF
Android Seminar BY Suleman Khan.pdf
PPT
Intro to android (gdays)
Innovation Generation - The Mobile Meetup: Android Best Practices
Developing for Android-Types of Android Application
Play with Testing on Android - Gilang Ramadhan (Academy Content Writer at Dic...
From Containerization to Modularity
Automation Proposal_V1.0
Google Rolls Out Agent Development Kits for Python and Java.pdf
Desarrollo y testing de apps móviles con Intel XDK y Testdroid
Android App Development..
Ii 1300-java essentials for android
Introduction to android sessions new
Android application developement
Build your android app with gradle
Java Tool Mastery Streamlining Application Development || Strawberry InfoTech
Android dev o_auth
Mobile Application Development FRAMEWORKS AND TOOLS.pdf
Android development orientation for starters v4 seminar
Android Development
Android Seminar BY Suleman Khan.pdf
Ad

Recently uploaded (20)

PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PPTX
Benefits of Physical activity for teenagers.pptx
PDF
Getting started with AI Agents and Multi-Agent Systems
PDF
Unlock new opportunities with location data.pdf
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Enhancing emotion recognition model for a student engagement use case through...
PPT
What is a Computer? Input Devices /output devices
PDF
Hybrid model detection and classification of lung cancer
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
CloudStack 4.21: First Look Webinar slides
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
August Patch Tuesday
PDF
Developing a website for English-speaking practice to English as a foreign la...
PDF
Hindi spoken digit analysis for native and non-native speakers
PPTX
Web Crawler for Trend Tracking Gen Z Insights.pptx
PDF
Five Habits of High-Impact Board Members
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
A comparative study of natural language inference in Swahili using monolingua...
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
Benefits of Physical activity for teenagers.pptx
Getting started with AI Agents and Multi-Agent Systems
Unlock new opportunities with location data.pdf
Group 1 Presentation -Planning and Decision Making .pptx
Enhancing emotion recognition model for a student engagement use case through...
What is a Computer? Input Devices /output devices
Hybrid model detection and classification of lung cancer
Zenith AI: Advanced Artificial Intelligence
CloudStack 4.21: First Look Webinar slides
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
1 - Historical Antecedents, Social Consideration.pdf
August Patch Tuesday
Developing a website for English-speaking practice to English as a foreign la...
Hindi spoken digit analysis for native and non-native speakers
Web Crawler for Trend Tracking Gen Z Insights.pptx
Five Habits of High-Impact Board Members
NewMind AI Weekly Chronicles – August ’25 Week III

Android studio&Gradle&Autotest

  • 2.  Android Studio is a new Android development environment based on IntelliJ IDEA.  It provides new features and improvements over Eclipse ADT and will be the official Android IDE once it's ready.
  • 3.  Flexible Gradle-based build system.  Build variants and multiple APK generation.  Advanced Android code completion and refactoring.  Expanded template support for Google Services and various device types.  Support rich layout editor, Lint tools, ProGuard.
  • 5.  One project contain modules. • JAR • AAR(Android ARchive)
  • 7.  New flattened structure  File group • Manifest • Source • Resource • Gradle
  • 8.  Gradle is build automation evolved.  Gradle combines the power and flexibility of Ant with the dependency management and conventions of Maven into a more effective way to build.  Powered by a Groovy DSL and packed with innovation, Gradle provides a declarative way to describe all kinds of builds through sensible defaults.
  • 9.  Build configuration: • Build variants • Build type : Debug or Release • Product falvor: Full or Demo • Dependencies • Manifest entries • Signing • ProGuard • Testing
  • 12.  General classification: • Small(unit): preferably milliseconds • Medium(Integration): preferably few seconds • Large(System): preferably minutes or hours  Android classification: • Activity Testing • Service Testing • Content Provider Testing • Accessibility Testing • UI Testing
  • 14.  Monkey • adb shell tool  Monkeyrunner • Uses Jython, a implementation of Python that uses Java programming language.  UiAutomatorviewer • A GUI tool to scan and analyze the UI components of an Android application.  UiAutomator • A Java library containing APIs to customized functional UI tests.
  • 15.  Basic syntax:  Limit in target APP :
  • 16.  Imports the monkeyrunner modules  Connects to the current device  Install the Android package  Run the component
  • 17.  Presses the Back button  Pauses the current program  Simulates a drag gesture  Touches the screen  Takes a screenshot
  • 19.  Use python uiautomator library • Installation  Grammar is similar with Monkeyrunner. • Controls UI component directly !

Editor's Notes

  • #2: Demo multi apk 程式設計 Show moudle Show demo full debug release 分開顯示 Android 本身有unit test 的結果顯示
  • #3: Project and module http://developer.android.com/sdk/installing/studio-build.html
  • #5: Project Package Android
  • #9: Gradle groovy http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Running-tests http://androiddevcorner.blogspot.co.uk/2014/10/building-multiple-apks-inside-android.html
  • #10: Build coniguration http://developer.android.com/sdk/installing/studio-build.html Build type: Debug Release Product flavor Full Demo
  • #13: http://autotestcentral.com/small-medium-and-large-test-sizes/275 https://mike-bland.com/2011/11/01/small-medium-large.html
  • #14: http://developer.android.com/tools/testing/testing_android.html
  • #16: http://developer.android.com/tools/help/monkey.html
  • #17: http://developer.android.com/tools/help/monkeyrunner_concepts.html
  • #20: Uianmator test case http://developer.android.com/tools/testing/what_to_test.html https://github.com/xiaocong/uiautomator
  • #21: http://testdroid.com/