1 / 49

A Data Driven Automated Test Framework for Android

A Data Driven Automated Test Framework for Android. Ahmed Misbah Ahmed Aswani. Agenda. Testing ??!!!! Types of Testing How People Test Software The Manual Way It is Bad! The Solution (The Automated Way) How to Implement Automation The Wonderful TDD Automation Steps Words on Automation

Download Presentation

A Data Driven Automated Test Framework for Android

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. A Data Driven Automated Test Framework for Android Ahmed Misbah Ahmed Aswani

  2. Agenda • Testing ??!!!! • Types of Testing • How People Test Software • The Manual Way • It is Bad! • The Solution (The Automated Way) • How to Implement Automation • The Wonderful TDD • Automation Steps • Words on Automation • Our Solution and Experience

  3. Testing??!!!!

  4. UNIT TESTING INTEGRATION TESTING ACCEPTANCE /functional TESTING UI TESTING Performance TESTING

  5. HOW WE TEST

  6. HOW

  7. Wonderful TDD

  8. Write Clean Testable Code

  9. Integration Test

  10. Acceptance Test

  11. Data Driven

  12. LOAD TEST PERFORMANCE TEST

  13. The most Useful tool for JAVA

  14. reliable [ri-lahy-uh-buhl] that may be relied on; dependable in Achievement, accuracy,

  15. Trust In Your Machine

  16. Don't Wast your Effort

  17. How Far automation should I go ?!

  18. MANUAL IS IMPORTANT

  19. Change Is Hard.... In the beginning Only

  20. Our Solution and ExperienceDDT Library for Android

  21. The story behind Registration Presence Edit Profile Messaging IM Application XMPP Server

  22. Manual Testing Scenario • Quality Engineer would have to register users manually (6 mandatory fields) • QE would enter each user’s Roster (must exceed 22 to test pagination) • QE should take care of user names for sorting

  23. Manual Testing Scenario • Verify User Login • Verify that Roster was loaded correctly • Verify that Roster is sorted correctly • Verify that pagination is working • Do the same when bugs are fixed and during regression

  24. Test Results Quality Engineer of course

  25. Conclusions • Needed to apply Automated Testing • Some cases had to be handled using DDT

  26. Why a new library? • None exists !!! • Time was tight to learn anything new • Leverage benefits of Automated Testing

  27. The Library Test Data Expected Output JSON file DDT Library Automated Test Framework Your Code JUnit for Android Test Results Test Results

  28. How it works?

  29. How it works?

  30. How it works?

  31. Under the hood • Java • Google Gson library (http://code.google.com/p/google-gson/)

  32. Benefits of the library • Its free!! Its Open Source!! • Works on anything that is Java, even Android • Almost no learning curve (i.e. Its easy!!)

  33. Drawbacks • Needs more work • All drawbacks of Automated Testing and DDT

  34. Future work • Eclipse plugin • Construct JSON files, • Auto generate Data objects, • Map data to code that will be tested, • Generate junit test cases, • Generate better test results (Expected Output and Actual Output)

  35. Thank you Questions ???

More Related