| || |
keyword driven + data driven
i am trying to create a framework in which iam combining keyword driven and data driven frameworks.I have an excel sheet in which i have written all the keywords like Parent object property and controls adn associated actions, now instead of writing the data side by side each step i want to make it data driven i.e i don't want to hard code the data instead i want to fetch it from another excel sheet.
For example if my keyword sheet is
now i want that the data for paricular edit box that i am fetching from another sheet should go correctly in the same edit box. and value should be set.
Let me know if i am not clear.
In keyword frameworks I've designed before, I used the following approach.
I have a parsing function that evaluates parameters given to keywords. I implemented the following, #configVar , $valueFromDataSheet, !randomData.. Then I also have a special keyword called "using" which I can give it a CSV/Excel file for switching up the data.
How it works is like this... Say we have a data driven test with "PermissionsMatrix.csv" file that has the columns, username, password, can_access_admin.
Using | permissionsMatrix.csv //Sets the the worksheet to use as permissions matrix, and will loop test over each row.
| Login | $username | $password
| AdminNavAvailable | $can_access_admin
Our approach is similar but we use reference object name to identify the objects from another source(object.xls)
used (|) to differentiate colums
Tags for this Thread