Explain me in deatail about DATADRIVEN framework including
scripts ?(realtimes plz)(Chandana)
Answer Posted / venkat
Data driven framework is an approach while automating Test
case, in that
"Test script" is being separated from the "test data"
All the test data being send to the Test Script as a parameter
All components should be placed inside a single project folder
Components like
Library folder
Repositories folder
Test Data folder
Business Scenario Folder
Results Folder
Driver Script Folder
We have one Business Scenario and Test data excel sheet
From the Business Scenario Excel sheet, we configure the
Scenario and test case execution
Normally we create "Action" for any execution. But here we
create those action as an ".vbs" file and make it as an
external function, and those functions are kept stored in
the "Library" folder. We call the function using the
function name based on the corresponding test cases while
executing.
For Ex:
U created an "Action1" for "Customer Registration"
In data driven approach, that action, u need to convert
that action as an function
Function Fn_CustomerReg
'Your execution scripts
End Function
And this should be stored as a separated ".vbs" file ex
(customer.vbs)
And associate this function through script whenever u required
We have only one Action, that action we call as an "Driver
Script". That driver script being executed by another ".vbs"
file. We call it as an "Automation file" or "Configuration
/ Execution" file.
Simple we can say,
here we dont maintain 'n' number of "Actions".
Instead of "Actions", we create "Library Functions"
To make any changes of execution, we dont require to change
the code.
Instead of that, we can configure in the "Business
Scenario" excel sheet, which test case to execute and how
many times it to execute.
And test data are being separated from the "Test Script"
Advantage
Code Maintain and execution is simple
Disadvantage
Code creations are complex
If you are not cleared with this explanation, i explain in
detail clearly through email.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What are the flaws in water fall model and how to overcome it?
What are the differences between quicktest professional and winrunner?
Does QTP10 supports Windows 7OS +IE 9 combination? Which is the preffered combination ,Plz let me know?
How to export quicktest professional (qtp) results to an .xls file?
what is test scheduleling?
What are the different properties of an web object
I used child objects to get the no of weblist present in the weblist.now i need to select the items present in each weblist ?How to do so
How can I find out the cursor position through QTP suppose I am keep tabbing(Pressing the tab key continuously) and stoped at a position Now I want to find out where the cursor position is
RECENTLY I PLACED IN QTP..HOW TO IMPROVE VB SCRIPTS KNOWLEDGE? IAM STRUGGING TO WRITE THE AUTOMATION SCRIPTS? ANY BODY TELL HOW TO IMPROVE QTP SCRIPT SKILLS?
How to open a new test using quicktest professional?
In QTP can we feed the out of one browser(internet explorer) as an input to the another browser(mozilla firefox)? If yes explain how to do it with an example.
How is recording done when a application is over lapping the QTP application it gives a message object not recorded
what is the difference between built-i function and In-built function?
how to download mercury qtp9.2 ny internet ?
Client is able to provide budget..he want you to choose the automation tool for the web application? which one you will select ? QTP or Selenium ? what are the reasons?