Data driven automation-with_wati_n


Published on

Proposed framework to make data driven testing using WatiN.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Data driven automation-with_wati_n

  1. 1. Data-driven Test Automation Saturday, September 24, 2011 Open Source in .NET Microsoft Open Day Why not WatiN-ation? Rizwanur Rashid A software testing professional. Living in Dhaka, Bangladesh. He has completed his graduation from AIUB . Currently he is working as QA Engineer in SoftwarePeople. Till today he has earned Five years of hand on working experience in Software Testing and QA field. Being a QA he still loves to develop. Probably he is the only QA who has done MCPD. In leisure mostly he love to play with PHP. His blog RizViews . QA Engineer Rizwan got hand on exeperience in QA and Testing field. He has worked in some renowned software firm like BIPL, ENOSIS etc. Now days he is working on automation. He is trying to simplify the testing tasks using tools. SoftwarePeople SoftwarePeople is an ambitious company which values talent, expertise and motivation above all. Rizwan is working in SoftwarePeople form January, 2011. In this organization he is working on the automation of the product of this company.
  2. 2. Automation Obstacles <ul><li>Project Complexity </li></ul><ul><li>High Price of Tool </li></ul><ul><li>Script Complexity </li></ul><ul><li>Skilled Resource </li></ul><ul><li>Too much change </li></ul><ul><li>Time constraints </li></ul>
  3. 3. Where WatiN Fits <ul><li>Free of cost! </li></ul><ul><li>Developed in Native C#. </li></ul><ul><li>Total Control. </li></ul><ul><li>Supports almost all latest web technologies. </li></ul><ul><li>Record and Playback. </li></ul>
  4. 4. Brief of WatiN <ul><li>W eb A pplication T esting in . N ET </li></ul><ul><li>Opensource Framework for testing </li></ul><ul><li>Developed in C#.NET </li></ul><ul><li>Current version </li></ul><ul><li>Will Support .NET version 4. </li></ul>
  5. 5. Data-driven Automation <ul><li>Customized Data File. </li></ul><ul><li>Test scenarios </li></ul><ul><li>Test Data. </li></ul><ul><li>Expected data/message/value </li></ul><ul><li>Convention over Configuration </li></ul>
  6. 6. Convention <ul><li>Test Case File Name and Class Name should be same. </li></ul><ul><li>Test Case ID column will be Test Method name. </li></ul><ul><li>Data Set in a specific format. </li></ul>
  7. 7. Test Case
  8. 8. Test Case – Important Columns Column Description Test Case ID Also will be used as test method name. Skip Execution To skip execution of current step. Test Data Data to feed in the input/selection control. Expected Result To verify the actual result. Observed Result Data collected from the application. Status Pass/Fail or whatever you decide.
  9. 9. Code Architecture
  10. 10. Project - TestHarness_UI <ul><li>Main class for GUI </li></ul><ul><li>Validations </li></ul><ul><li>Prepares Environment </li></ul><ul><li>Collect Test Scenarios </li></ul>
  11. 11. Project – WatiNTest <ul><li>Decides Test to Execute </li></ul><ul><li>Contains Test Classes </li></ul><ul><li>Contains Test Status in Cache </li></ul>
  12. 12. Project – QAHelper <ul><li>Contains Utility Methods </li></ul><ul><li>Structure of Test Case </li></ul><ul><li>Reads Data File </li></ul><ul><li>Provides Input in the Page </li></ul>
  13. 13. Project - Logger <ul><li>Provides HTML log </li></ul><ul><li>Will control all logging </li></ul><ul><li>TBD </li></ul><ul><ul><li>Excel </li></ul></ul><ul><ul><li>CSV </li></ul></ul><ul><ul><li>XML </li></ul></ul>
  14. 14. Configuration
  15. 16. TBD <ul><li>Enhance Logging (Text/Excel/Information) </li></ul><ul><li>Remove dependency of the data file row number. </li></ul><ul><li>Enhance Performance. </li></ul><ul><li>Test in multi browser </li></ul><ul><li>More Testing </li></ul>
  16. 17. WatiN Limitations <ul><li>Missing Safari Support. </li></ul><ul><li>Don't have any straight forward approach to handle AJAX requests and responses. </li></ul><ul><li>Can't automate Silverlight applications. </li></ul><ul><li>Firefox driver still have to provide feature to handle Web Modals (IE driver is fine). </li></ul><ul><li>Recording tool is not up to the mark. </li></ul>
  17. 18. Happy Ending! <ul><li>Questions? </li></ul><ul><li>Discussions </li></ul><ul><li>Feedback </li></ul>
  18. 19. Reference <ul><li> </li></ul><ul><li> </li></ul><ul><li> </li></ul>