Thursday, February 21, 2008

Automation Framework

Testing Framework is something like a frame work designed according to our requirement. For example. you want to test one application for UI, FUNCTIONAL and LOCALIZATION. for this requirement you can have your own frame work...1) for UI testing: identify what to test assume that font, size, color...2)Functional: whether the button is working properly example login.3)test for diff languages at a time.Frame Work:1)write all your functional library for UI at one place.2)write down all functional library methods in own file.3)have complete list of strings what are neccessary for localization at one place assume that a excel sheet.4)using the resources are XML now you can import them and write your script by record and play back or using descriptive programming.5)finally test your application.if any comments on this we ll be grateful to you.

Keyword Driven FrameworkIt's an application independent Automation FrameworkThis Framework will have following components:1) Data tables /Excel Sheets containing Keywords, Object Names and Object Values. This is the only component which is application dependent. Keywords are the words that we used to represent the test case. For example VerifyEditbox. This can be used to represent the test case: Verify whether the Edit box is accepting the entered text.2) Test Driver. This contains the scripts to drive the test. Usually it will contain the code for taking keywords one by one from the data table and call respective subroutines for each keyword using the Switch case statement.3) Common Function Library. This contains all the common functions that are needed to test any application.Data Driven FrameworkIt's an application specific Automation Framework. These scripts can be recorded or written manually and modify it by replacing input values with variables. Input values can be written in Data table / Excel sheet. Test Driver in this case contains the scripts to drive the application with external data written in Data tables / Excel Sheet.

No comments: