Tuesday, 14 September 2010

Layered framework for Visual studio 2010 Automation testing

Base your layered architecture on three layers: script layer, business layer, and framework layer. This pattern presents an overview of the responsibilities of each layer and the components that compose each layer.








The above framework has 3 layers:
  • Framework Layer
  • Business Layer
  • Scripting Layer
Framework Layer:  This layer is generic and common across all the projects. It consist of generic components which are useful with in the organization across all the projects. It would be good declare all the possible components as interfaces with in this layer. Below are the compoenets that goes into this layer.
  1. Utilities
  2. Data management
  3. Configuration management
  4. Logging 
  5. Reporting
  6. Logging
  7. Reporting
  8. Exception handling 
  9. Recovery scenarios
  10. Screen recording
  11.  Data access layer
  12.  Object wrapper functions
  13. Data driven driver classes
Business Layer: This layer is specific to project, where the re usable libraries are developed. Each screen will have one class for handling the testing. Common functions will go into separate library. Every project will have their own implementation of the interface that are created in the Framework layer.


Scripting Layer: This layer is responsible for the scripting, each script is responsible for one screen in the application. Scripts will call the business layer components to pass the test data.

No comments:

Post a Comment