Definition of Automation Framework? – User friendly Tech help

What is a Framework?

n

In simple and clear terms, framework means “a set of guidelines which when followed make any task easy to do”.

n
nWorking Copy of the Keyword Driven Frameworkn

For instance, if any person wants to withdraw money from a bank what is the process followed in bank.

n

Step 1:- Person goes to the bank and looks for cabin or board which says Cashier.

n

Step 2:-Fills the cheque with right amount and sign it.
n

n

Step 3:- Stands in a queue and waits for his turn and hands over the cheque to cashier.

n

Step 4:- Cashier verifies the amount in account of person/Signature as per bank details, based on the account number (Primary Key).

n

Step 5:- After meeting all the processes person is given cash amount.

n

What can be the other approach to take the money out?  Keep on asking anyone in the bank where I can get the money or giving cancelled cheque or using different signature compared to bank or fighting with bank manager that I need my money, or using Gun on the head of cashier J

n

Now if each and every one of us follows the later approach to take the money out, we can imagine how difficult and cumbersome task it becomes to go the bank and nobody is following queue, fight, chaos everywhere. Thus best way is to have a systematic and disciplined approach thus every customer of bank is able to take the money in a very smooth and well defined manner. In testing terms these defined guidelines/processes/steps/approach is called as Framework.

n

So Automation Framework is a set of assumptions, concepts, and practices that provide support for automated software testing.

n

nKey Elements of Framework:-

n

1) Well defined folder structure

n

    n

  •    Object Repository
  • n

  •    Environment ->Folder for environment variables files (XML)
  • n

  •    Library ->Global(Company specific) /Local (Project specific)
  • n

  •    Test data
  • n

  •    Test log
  • n

  •    Recovery scenario for Error Handling
  • n

  •    Miscellaneous ->Instruction data set like documents from Team lead to tester.
  • n

n

2) Initialization script ->It launches automation tool (Say UFT or Selenium) and calls Driver script and at the end of all the process it closes the automation tool(Destroy all the created objects and free the memory allocation)

n

3) Driver script

n

4) Input data spreadsheet

n

5) Process guidelines document

n

6) Coding standards/Comments

n

Note: – Framework provides guidelines and not rules. It is not compulsory in Automation testing but without using it we’ll miss benefits increase code re-usage, higher portability, reduced script maintenance cost etc.

n


Types of Automation Frameworks:

n

nGenerations of a Framework?

Was this article helpful?
YesNo

Similar Posts