Data Driven Frame Work
One of the widely used frame work .
In this frame work the whole automation process is driven by data( saved in excel,word doc or Data base)
In the link below
Key Word Driven Framework , i had explained how the key word driven frame work works
Please find the image below which is self explanatory
In the above image we are using 2 Excel sheet
1. Driver sheet : Which drives the whole automation
2. Data Sheet : Which provides the input to the modules
Driver sheet
Name itself tells it drives the whole automation . In the above Sheet we have 2 coloumns
Module name and ExecuteFlag
Module name = Specifies the name of the module to run or name or the test case
Execute Flag = Specifies whether the Module to be run or not ( if the value is "Y" execute the corresponding code else skip it )
Complete flow
Let us see with an example the
We have 3 rows inside the Driver sheet , as per the above description only code related to LoginMail and SendMail as to be execute .
Steps
One of the widely used frame work .
In this frame work the whole automation process is driven by data( saved in excel,word doc or Data base)
In the link below
Key Word Driven Framework , i had explained how the key word driven frame work works
Please find the image below which is self explanatory
In the above image we are using 2 Excel sheet
1. Driver sheet : Which drives the whole automation
2. Data Sheet : Which provides the input to the modules
Driver sheet
Name itself tells it drives the whole automation . In the above Sheet we have 2 coloumns
Module name and ExecuteFlag
Module name = Specifies the name of the module to run or name or the test case
Execute Flag = Specifies whether the Module to be run or not ( if the value is "Y" execute the corresponding code else skip it )
Complete flow
Let us see with an example the
We have 3 rows inside the Driver sheet , as per the above description only code related to LoginMail and SendMail as to be execute .
Steps
- main() Method reads the Driver sheet
- Checks for Execute Flag for "Y" , if its Y , it captures the Module name
- Checks with the case statement and compare with the case values , if anything is matched , it has to execute the corresponding code , Here comes the Data Sheet , This sheet can be used to give the input for the modules (in the above example we can see LoginName and Pwd required for logining in )
- Repeat the above steps until no rows in Driver sheet

No comments:
Post a Comment