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
Dear Friends, I having total 3+year experience in manual testing including automation testing QTP, if i am attending any interview what kind of question will i get? please help me out
If the objects hierarchy is changing from build to build, then how you will handle that condition?
How qtp identifies objects?
Hi we are using QTP9.0 for Seibel Application and this seibel application will give you a popup messagebox which is of web , so qtp takes 3 mins to recognize the messagebox and to click on it , we have more number of messageboxes like this . please suggest me some solution
what testplan contents and what test strategy contents,what is the diff b/w them
what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?
How would you export a script from one pc to another in qtp?
How do I lauch my test website using code from qtp in different environmet, uat and PPTE?
How do you perform Regreession Testing?
how to test Web application using QTP software
What is data driver in qtp?
write a script to verify the image path(src property) of the images which are in web pages.
How to creating an output value using quicktest professional?
We stored into the objects OR and then write the scripting
how to use the regular expression for the below code-- swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:56" There is a tree view window of the folder's ie Medication- >Pharmacy(sub folder)with 56 as count of records...The records can be different or if no records present in the specific folder..then it show "Paharmacy:-no records".Whe i record at the first time .....and try to rerun the same script with different records count say "pharmacy:800"..qtp is not regnizing it...therefore i want to user regular expression..but donot now how to use it and where to use...i have tried.... swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:\*"..but it s of no use..plz help..me