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 challenges u faced in testing with crm domain? How u overcome with?
Object repositories types, which and when to use?
What are the different types of recording modes in qtp? Which will be used when?
unique properties of button,edit box, radio button,check box?
HOW AUTOMATE TEST SCRIPT ? what time it will do? after gneration of basic script or Any , Plz explain detailed?
What is system testing and what are the different types of tests you perform in system testing?
What is data driver in qtp?
What are the key points to create a framework in QTP for oracle forms?
Can we run multiple QTP scripts one after the other without manual intervention? How?
What is the difference between rational rose and QTP?
Through array we can execute the testcase how ? give me example
What test you perform mostly? Regression or retesting in your testing process?
Which scripting language used by quicktest professional?
In Remote acess server how u run a test?
With what extension you can save the list of tests in a file to run in test batch runner?