can any one tell me How exactly data drivent testing is done
in.explain with any example and the exact steps to fallow?

Answer Posted / rajnedra

Data Driven Testing it is a retesting process of software
using an automation tool.
It is simply called as DDT.
In this we will check the software with different inputs to
test its behavior in a comprehensive way.

Here in this data driven testing as i told above we use
automation tool to check with different inputs.
For this first we need to generate a test script
We can generate this test script in two ways
1.Recording Method
2.Descriptive Programing method
IF you are begginer,then no way you will go for recording
Method ofr script generation.
After recording we will convert it into datadriven test.
here the conversion process depends on tool.
It is very easy converting a normal test into Data Driven
Test using QTP.Bocoz it has built in Excel sheet.
somewhat complex but not difficult using WinRunner in
coversion process of ordinary test into Data Driven Test.
it needs a little bit practice and you sholud follow some
procedure.
if u come for Descriptive Programming (simply DP)u should
have some knowledge on Test Script Language(TSL)or one of
VB Script or Java Script langauge.
If we use WinRunner
TSL- Test Script we use or
If we use Quick Test pro(QTP) we use
VB Script or Java script
Most of the prople use VB script for DP.

In a Nutshell i will explan finally about DDT:

1.Generate the test script using Recording method or
using DP.
2.Parameterise the test script.
3.Provide the required data.
4.Run the test script.
"Data driven test means different sets of data will drive
the test to know the software behevior."

Byee
friendz
rajendra
Rajendra_penumalli@yahoo.com
+919885262742
Hyderabad

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Print the Prime numbers in below format only up to 20(Need commas also) 1,2,3,5,7,9,11,13,17,19

1180


How many types of recording facility are available in quicktest professional?

560


How to connect the remote desktop using QTP 9.2 explain the method or procedure?

2799


What is the new version of qtp which is recently released in the market?

637


Can we use index on view?

1595






How do you script a nested loop in QTP? I am showing a snipet of my code. Any suggestions to help me get this to work would be great appreciated! STEP A - Customer Number: No loop - ISBN: Loop STEP B - Customer Number: Loop - ISBN: Nested Loop Here is the code I am using now. I am using i for the loop and j for the nested loop in STEP B of my script. =========================================== 'CREATE AN ADDITIONAL CUSTOMER Dim myNum, RowNum, RowCnt2, val2, total, i DataTable.ImportSheet "C:\QOE Data - UAT1.xls" ,"Data" ,"Global" RowCnt2 = DataTable.GetRowCount i = 1 DataTable.SetCurrentRow(i) ' Set row to one Do while Not i > RowCnt2 i=i+1 DataTable.SetNextRow MsgBox Datatable.Value("Customer_Num") Msgbox i Msgbox RowCnt2 If Not i > RowCnt2 then val2=datatable.Value("Customer_Num","Global") OracleFormWindow("Sales Order").SelectMenu "File->New" OracleFormWindow("Sales Order").OracleTabbedRegion("Order Information").OracleTextField("Customer Number").SetFocus OracleFormWindow("Sales Order").OracleTabbedRegion("Order Information").OracleTextField("Customer Number").Enter val2 End If 'CREATE SECOND ISBN LIST DataTable.ImportSheet "C:\QOE Data - UAT1.xls" ,"Data" ,"Global" Dim j, RowCnt3, val3 RowCnt3 = DataTable.GetRowCount For j = 1 To RowCnt3 DataTable.SetCurrentRow(i) ' datatable.getSheet("DataTable").setNextRow If Trim(DataTable("ISBN",dtGlobalSheet)) = "" Then j = j - 1 Exit For End If Next 'Define ISBN rows If RowCnt3 <> j Then RowCnt3 = j End If 'Loop through ISBN rows For j = 1 To RowCnt3 DataTable.SetCurrentRow(i) val3 = Datatable.Value("ISBN","Global") msgbox j If j = 1 Then OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item").SetFocus OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item").Enter val3 else If j < 16 Then OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_"&i).SetFocus OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_"&i).Enter val3 else If RowCnt1 => 16 Then OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_15").SetFocus OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_15").InvokeSoftkey "DOWN" OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_15").SetFocus OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_15").Enter val3 end if end if End If Next 'EXIT APP msgbox i loop Browser("Browser").Page("Oracle Applications 11i").Sync Browser("Browser").Close ========================================== It isn't working correctly in my nested loop in STEP B (for ISBN). Any ideas?? Thanks! SBsteve

6735


what is test scheduleling?

2008


How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What's the difference between them? How to handle script issues?

527


can the activities of test case design be automated?

1450


Hi How to retrieve data from web element line by line?

1571


How to handle the exceptions using the recovery scenario manager in qtp?

562


Hi, can explain the draw back of manual testing.plz send me the answer to my mail id deepthip1985@gmail.com

1410


wt is the use of multiple questions in QTP

1673


In a flight window we have to enter the name and meal request for every passenger.In that window if we give Total passengers=1 then the Psngr1 name field and psngr1 meal request field will reflects.if we give Total passengers=2 then Psngr1 name field and psngr1 meal request field,Psngr2 name field and psngr2 meal request field will reflects and so on.if total psngrs=100 then will we capture all the fields for the psngrs to Automate the app how we can handle this scenerio thru Descriptive programming?

1450


regular expression in qtp standar check point for months from accepting months from january to december only

1475