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


Please Help Members By Posting Answers For Below Questions

How to make qtp understand the difference amongst the same type of objects .suppose there are 5 check boxes in a page and I have to choose the 2nd one, how to do that through script?

568


Which scripting language used by quicktest professional?

534


what r the verstions from 1st to present (verstions) of mercury tools (like winrunner,QTP,Loadrunner) ? Chandana

1469


A FORM CONTAINS 5 FIELDS. 1 FIELD IS ENABLED REMAINING(4) FIELDS DISABLED. MY QUESTION IS ENTER VALUES INTO 1 FIELD AFTER THAT CLICK TAB BUTTON THEN 2 FIELD ENABLE THIS PROCESS CONTINUE UPTO 5TH FIELD. HOW TO WRITE CODE IN DESCRIPTIVE PROGRAMMING. PLZ TELL ME THE PROCEDURE AND CODE FOR IT.

1284


I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that

1402






How to read a text file from QC using QTP. I would like to do something like this. But instead read a file from QC and NOT from my local drive. Set fso = CreateObject("Scripting.FileSystemObject") Set InputFile = fso.OpenTextFile("C:\test.txt", ForReading) Thanks

2759


How do you delete unwanted results in qtp?

608


What is text check point and text area check point?

611


Without integrating QC/Testdirector with QTP, is it possible to keep track of the defects?If yes how? How to export QTP results to an excel sheet?

1496


Explain data driven framework?

581


Explain different type of event trigger option.

544


can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?

1698


images are dynamically changes how to compare two images with out using the bitmap

2008


What is checkpoints for qtp?

536


What is RTM (require ment tracebulity marix) fromate?

1533