Learning Android application testing: improve your Android applications through intensive testing and debugging
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Buch |
Sprache: | English |
Veröffentlicht: |
Birmingham [u.a.]
Packt Publishing
2015
|
Ausgabe: | 2. ed. |
Schriftenreihe: | Community experience distilled
|
Schlagworte: | |
Online-Zugang: | Inhaltsverzeichnis |
Beschreibung: | XII, 274 S. |
ISBN: | 9781784395339 |
Internformat
MARC
LEADER | 00000nam a2200000zc 4500 | ||
---|---|---|---|
001 | BV042635757 | ||
003 | DE-604 | ||
005 | 20170403 | ||
007 | t | ||
008 | 150623s2015 |||| 00||| eng d | ||
020 | |a 9781784395339 |c Print |9 978-1-78439-533-9 | ||
035 | |a (OCoLC)914347487 | ||
035 | |a (DE-599)BVBBV042635757 | ||
040 | |a DE-604 |b ger |e aacr | ||
041 | 0 | |a eng | |
049 | |a DE-739 |a DE-83 | ||
082 | 0 | |a 005.268 |2 23 | |
084 | |a ST 261 |0 (DE-625)143633: |2 rvk | ||
100 | 1 | |a Blundell, Paul |e Verfasser |4 aut | |
245 | 1 | 0 | |a Learning Android application testing |b improve your Android applications through intensive testing and debugging |c Paul Blundell ; Diego Torres Milano |
250 | |a 2. ed. | ||
264 | 1 | |a Birmingham [u.a.] |b Packt Publishing |c 2015 | |
300 | |a XII, 274 S. | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
490 | 0 | |a Community experience distilled | |
630 | 0 | 4 | |a Android (Electronic resource) |
650 | 4 | |a Smartphones |x Programming | |
650 | 4 | |a Application software |x Testing | |
650 | 4 | |a Application software |x Development | |
650 | 0 | 7 | |a Android |g Systemplattform |0 (DE-588)7635475-1 |2 gnd |9 rswk-swf |
689 | 0 | 0 | |a Android |g Systemplattform |0 (DE-588)7635475-1 |D s |
689 | 0 | |5 DE-604 | |
700 | 1 | |a Torres Milano, Diego |e Verfasser |4 aut | |
856 | 4 | 2 | |m Digitalisierung UB Passau - ADAM Catalogue Enrichment |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=028068243&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
999 | |a oai:aleph.bib-bvb.de:BVB01-028068243 |
Datensatz im Suchindex
_version_ | 1804174817458388992 |
---|---|
adam_text | Preface vjjf
Chapter 1: Getting Started with il
Why, what, iiow, and when to test;? ■5
What to test A ՛ J՛
Activity lifecycle event« A
Database and filesystem operations A
Physical characteristics of the device
Types of tests
Unit tests (i
The setUpO method y
The teai Down() method 7
Outside the test method 7
Inside the test method 7
Integration tests 9
Ul tests 10
Functional or acceptance tests 10
Test case scenario 12
Performance tests 12
System tests 13
Android Studio and other IDF. support 13
Java testing framework 14
Android testing framework 14
InstmmoriMion 14
Cradle 10
lest targets 1 /
oreadng tee freeis gei i voijwT l
Package explorer 1«
(Profiting 1 test ( !J ՝.;; 40
Test annotations 44
Running tiie tests 4,3
..-·
Table of Contents
Running ali tests from Android Studio
Running a single test case from your IDE
Running from the emulator
Running tests from the command line
Running all tests
Running tests from a specific test case
Running a specific test by name
Running specific tests by category
Running tests using Gradle
Debugging tests
Other command-line options
Summary
Chapter 2: Understanding Testing with the Android SDK
The demonstration application
Assertions in depth
Custom messages
Static imports
View assertions
Even more assertions
The TouchUtils class
Mock objects
An overview of MockContext
The IsolatedContext class
Alternate route to file and database operations
The MockContentResolver class
The TestCase base class
The default constructor
The given name constructor
The setName() method
The AndroidTestCase base class
The assertActivityRequiresPermission() method
Description
Example
The assertReadingContentUriRequiresPermission method
Description
Example
The asserëWritingContentUriRequirGsPermissionO method
Description
Example
instrumentation
The ActivityMonitor inner class
Example
The InstrumentationTestCase class
The launchActivity and launchActivityWithintent methods
The sendKeys and sendRepeatedKeys methods
The runTestOnUiThread helper method
The ActivityTestCase class
The scrubClass method
The ActivitylnstrumentatlonTestCase2 class
The constructor
The setup method
The tearDown method
The ProviderTestGase2 T class
The constructor
An example
The SeiviceTesiOa«€! i
Tl )B construct։ )i՝
The elaee
Using libraries in test piTNIoefe
Summary
if . C tie
¡Id.
3 With iiegtiSiC:! lilildwTT
Android unit teste
Testing activities and applications
Mocking applications and preferences
The RenamingMockContext class
Mocking contexts
Testing activities
Testing files, databases, and content providers
The BrowserProvider tests
Testing exceptions
Testing local and remote services
Extensive use of mock objects
Importing libraries
Mockito usage example
The EditNumber filter teste
Testing views So footedon
Testing parsers:՛
Android assets
Th§ par‘?0:։ j?*;
resting for rUOiViOEIf
Testing Wi ri՛! eopFSijTO·
Summary
51
52
52
54
54
55
56
56
56
57
58
58
HQ)
59
f·:i
ij iy
:.)! (;■ ¡}
A;1 ■ ·՛)
d®
68
71
74
79
80
81
07»
)
-m
Table of Contents
Chapter 4: Managing Your Android Testing Environment
Creating Android Virtual Devices
Running AVDs from the command line
Headless emulator
Disabling the keyguard
Cleaning up
Terminating the emulator
Additional emulator configurations
Simulating network conditions
Speeding up your AVD with HAXM
Alternatives to the AVD
Running monkey
The client-server monkey
Test scripting with monkeyrunner
Getting test screenshots
Record and playback
Summary
Chapter 5: Discovering Continuous Integration______________
Building Android applications manually using Cradle
Git - the fast version control system
Creating a local Git repository
Continuous integration with Jenkins
Installing and configuring Jenkins
Creating the jobs
Obtaining Android test results
Summary
Chapter 6: Practicing Test-driven Development
Getting started with TDD
Writing a test case
Running all tests
Refactoring the code
Advantages of TDD
Understanding the requirements
Creating a sample project tine temperature converter
List of requirements
User interface concept design
Creating the project
Creating a Java module
Creating the TemperatureConverterActivltyTeste class
Creating the fixture
97
97
99
99
101
101
102
102
103
105
106
106
107
113
Ilf
118
119
120
121
121
122
126
129
131
131
133
133
133
134
134
136
136
J 7՛
i M
140
Table of Contents
Creating the user interface
Testing the existence of the user interface components
Getting the IDs defined
Translating requirements to tests
Empty fields
View properties
Screen layout
Adding functionality
Temperature conversion
The EditNumber class
The TemperatureConverter unit tests
The EditNumber tests
The I emperatureChangeWatcher class
More TemporatureConvetter testis
The Input! ■liter tests
Viewing our final apgi l ¡cation
Summary
»JilQjptelT il
Given, When, asMl THion
FiiNoss©
՛■ v-· |T, t .·,, ii i1 [] t.
Running FitNesse from the command line
Creating a 1 bmpe rat ui՝oConveii:e¡Tests su!::
Adding child pages to the subwiki
Adding the acceptance test fixture
Adding the supporting test classes
GivWenZen
Creating the test scenario
Summary
Chapter 8: Testing and Profiling Performance
Ye Olde Logge method
Timing logger
Performance tests in Android SDK
Launching the performance test
Creating the I mincliPorforniancoBaco inotrumontation
Creating the font per; tit trot ;onvot it rAotiviiy! .at inch! ‘ouonnantx; claor.
Running the toots
Using the Tmcovi«!·? ciiiitl c/iVViC
Micro henchman!;«
i՛ jV . r
ii
Caliper iiiicrobenohmarks
141
142
142
144
144
145
150
151
151
152
155
160
165
169
1/1
nt
f/6
‘¡¡/6
1/7
1 YU
179
180
181
184
185
192
193
194
196
198
190
198
19!)
200
ITT;
VPS
200
Table of Contents
Benchmarking the temperature converter Running Caliper Summary Chapter 9: Alternative Testing Tactics 210 212 214 215
Code coverage 215
Jacoco features 216
Temperature converter code coverage 217
Generating code coverage analysis report 218
Covering the exceptions 222
Introducing Robotium 224
Adding Robotium 224
Creating the test cases 224
The testFahrenheitToCelsiusConversionQ test 22 ¡1
Testing between Activities 226
Testing on the host s JVM ■f lO*՜*
Comparing the performance gain 220
Adding Android to the picture 2.30
Introducing Robolectric 3(1
Installing Robolectric 231
Adding resources 232.
Writing some tests 233
Google s march on shadows
Introducing Fest 235
Introducing Spoon 237
Introducing Fork 238
Summary 239
Index 241
------ [vi] --------------
|
any_adam_object | 1 |
author | Blundell, Paul Torres Milano, Diego |
author_facet | Blundell, Paul Torres Milano, Diego |
author_role | aut aut |
author_sort | Blundell, Paul |
author_variant | p b pb m d t md mdt |
building | Verbundindex |
bvnumber | BV042635757 |
classification_rvk | ST 261 |
ctrlnum | (OCoLC)914347487 (DE-599)BVBBV042635757 |
dewey-full | 005.268 |
dewey-hundreds | 000 - Computer science, information, general works |
dewey-ones | 005 - Computer programming, programs, data, security |
dewey-raw | 005.268 |
dewey-search | 005.268 |
dewey-sort | 15.268 |
dewey-tens | 000 - Computer science, information, general works |
discipline | Informatik |
edition | 2. ed. |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>01639nam a2200409zc 4500</leader><controlfield tag="001">BV042635757</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20170403 </controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">150623s2015 |||| 00||| eng d</controlfield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9781784395339</subfield><subfield code="c">Print</subfield><subfield code="9">978-1-78439-533-9</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)914347487</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BVBBV042635757</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">aacr</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-739</subfield><subfield code="a">DE-83</subfield></datafield><datafield tag="082" ind1="0" ind2=" "><subfield code="a">005.268</subfield><subfield code="2">23</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 261</subfield><subfield code="0">(DE-625)143633:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Blundell, Paul</subfield><subfield code="e">Verfasser</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">Learning Android application testing</subfield><subfield code="b">improve your Android applications through intensive testing and debugging</subfield><subfield code="c">Paul Blundell ; Diego Torres Milano</subfield></datafield><datafield tag="250" ind1=" " ind2=" "><subfield code="a">2. ed.</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">Birmingham [u.a.]</subfield><subfield code="b">Packt Publishing</subfield><subfield code="c">2015</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">XII, 274 S.</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">n</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">nc</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="490" ind1="0" ind2=" "><subfield code="a">Community experience distilled</subfield></datafield><datafield tag="630" ind1="0" ind2="4"><subfield code="a">Android (Electronic resource)</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Smartphones</subfield><subfield code="x">Programming</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Application software</subfield><subfield code="x">Testing</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Application software</subfield><subfield code="x">Development</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Android</subfield><subfield code="g">Systemplattform</subfield><subfield code="0">(DE-588)7635475-1</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="689" ind1="0" ind2="0"><subfield code="a">Android</subfield><subfield code="g">Systemplattform</subfield><subfield code="0">(DE-588)7635475-1</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2=" "><subfield code="5">DE-604</subfield></datafield><datafield tag="700" ind1="1" ind2=" "><subfield code="a">Torres Milano, Diego</subfield><subfield code="e">Verfasser</subfield><subfield code="4">aut</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">Digitalisierung UB Passau - ADAM Catalogue Enrichment</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=028068243&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="999" ind1=" " ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-028068243</subfield></datafield></record></collection> |
id | DE-604.BV042635757 |
illustrated | Not Illustrated |
indexdate | 2024-07-10T07:06:25Z |
institution | BVB |
isbn | 9781784395339 |
language | English |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-028068243 |
oclc_num | 914347487 |
open_access_boolean | |
owner | DE-739 DE-83 |
owner_facet | DE-739 DE-83 |
physical | XII, 274 S. |
publishDate | 2015 |
publishDateSearch | 2015 |
publishDateSort | 2015 |
publisher | Packt Publishing |
record_format | marc |
series2 | Community experience distilled |
spelling | Blundell, Paul Verfasser aut Learning Android application testing improve your Android applications through intensive testing and debugging Paul Blundell ; Diego Torres Milano 2. ed. Birmingham [u.a.] Packt Publishing 2015 XII, 274 S. txt rdacontent n rdamedia nc rdacarrier Community experience distilled Android (Electronic resource) Smartphones Programming Application software Testing Application software Development Android Systemplattform (DE-588)7635475-1 gnd rswk-swf Android Systemplattform (DE-588)7635475-1 s DE-604 Torres Milano, Diego Verfasser aut Digitalisierung UB Passau - ADAM Catalogue Enrichment application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=028068243&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA Inhaltsverzeichnis |
spellingShingle | Blundell, Paul Torres Milano, Diego Learning Android application testing improve your Android applications through intensive testing and debugging Android (Electronic resource) Smartphones Programming Application software Testing Application software Development Android Systemplattform (DE-588)7635475-1 gnd |
subject_GND | (DE-588)7635475-1 |
title | Learning Android application testing improve your Android applications through intensive testing and debugging |
title_auth | Learning Android application testing improve your Android applications through intensive testing and debugging |
title_exact_search | Learning Android application testing improve your Android applications through intensive testing and debugging |
title_full | Learning Android application testing improve your Android applications through intensive testing and debugging Paul Blundell ; Diego Torres Milano |
title_fullStr | Learning Android application testing improve your Android applications through intensive testing and debugging Paul Blundell ; Diego Torres Milano |
title_full_unstemmed | Learning Android application testing improve your Android applications through intensive testing and debugging Paul Blundell ; Diego Torres Milano |
title_short | Learning Android application testing |
title_sort | learning android application testing improve your android applications through intensive testing and debugging |
title_sub | improve your Android applications through intensive testing and debugging |
topic | Android (Electronic resource) Smartphones Programming Application software Testing Application software Development Android Systemplattform (DE-588)7635475-1 gnd |
topic_facet | Android (Electronic resource) Smartphones Programming Application software Testing Application software Development Android Systemplattform |
url | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=028068243&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT blundellpaul learningandroidapplicationtestingimproveyourandroidapplicationsthroughintensivetestinganddebugging AT torresmilanodiego learningandroidapplicationtestingimproveyourandroidapplicationsthroughintensivetestinganddebugging |