Lecture about techniques, frameworks and tools to automate the testing for your Android App and how to use Testdroid, one of the available device farms, to test your App in the cloud and overcome fragmentation issues.
5. Intel Information Technology 5
Sprint 1
• 5 Stories
• 1 Test Plan per Story
• 1 Hour per Test Plan
• 5h of Testing
Sprint 2
• +5 Stories
• +1 Test Plan per Story
• 1 Hour per Test Plan
• 5h of testing + 5h of regression test
Sprint 3
• +5 Stories
• +1 Test Plan per Story
• 1 Hour per Test Plan
• 5h of testing + 10h of regression test
7. Intel Information Technology
“I choose a lazy person to do a hard job. Because a lazy
person will find an easy way to do it.”
- Bill Gates
7
Image by Karla Vidal @ http://www.flickr.com/photos/63721650@N00/3661526274
Creative Commons cc-by-2.0
9. Intel Information Technology 9
public static String getFormattedMonthDay(String format, String dateString) {
String finalDateString = "";
SimpleDateFormat dbDateFormat = new SimpleDateFormat(Utility.DATE_FORMAT);
try {
Date inputDate = dbDateFormat.parse(dateString);
SimpleDateFormat requestedDateFormat = new SimpleDateFormat(format);
finalDateString = requestedDateFormat.format(inputDate);
} catch (ParseException e) {
e.printStackTrace();
} catch (NullPointerException npex) {
npex.printStackTrace();
}
return finalDateString;
}
10. Intel Information Technology 10
public void testGetFormattedMonthDayForBadInput() throws Exception {
String inputDateString = "";
final String expectedDateFormat = "yyyy, MMMM dd";
final String expectedResult = "";
String result = Utility.getFormattedMonthDay(expectedDateFormat,
inputDateString);
assertEquals("A wrong formatted input must return an empty String",
expectedResult, result);
}
public class UtilityTest extends TestCase {
…
…
}
11. Intel Information Technology 11
Image by Schlurcher @ http://en.wikipedia.org/wiki/Jigsaw_puzzle#/media/File:Puzzle_Krypt-2.jpg
Creative Commons cc-by-sa-2.0
It's hard enough to find an error in your code when you're looking for it; it's even harder
when you've assumed your code is error-free.
--Steve McConnell (from Code Complete)
22. Intel Information Technology
What is next?
22
• What about cross app testing? UIAutomator!
• Continuous Delivery and Integration of Android Apps
• Code Coverage