Diff. between keyword driven Data driven testing?

Answer Posted / nath .t

Keyword Driven Testing: In this testing tester interaction
is there at time of testing. we can give the values with
help of

Syntax:- Variable = inputbox("String")
Ex:- a = inputbox("Enter the value for A ")

In the above example a is the variable it's stores
the value at the runtime. and u can use this variable as a
parameter of any object at runtime.

Data Driven Testing: In this testing there is no
interaction of tester. here we can use datasheets or
frontend grids as parameters to the application.
We can get values from data sheets

Syntax:- variable = datatable("column name","sheet
name")
Ex:- empno = datatable
("employee_no","dtGlobalSheet")

In above example
Empno is variable
Employee_no is column name
dtGlobalSheet is Sheet name

we can use these variable in our application as a
parameter.

Is This Answer Correct ?    4 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to attach a file to TD?

651


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

562


How you can decide which type of object repository you have to use?

701


What are the major/ important methods, functions in QTP we use realtime testing

2259


Hi Samrat, Thank u very much, what u said it is right.

1340






How to create a standard checkpoint ?

555


I want to capture data(using keyword) from msdos application using QTP?... Below is little work i could do on it... /* Set app=CreateObject("Wscript.shell") SystemUtil.run ("C:\Users\Agent\Desktop\pumpsim\PUMPSIM.EXE") Window(“PUMPSIM.EXE”).Activate wait(3) app.sendkeys "N" */ Thanks in advance...!!!

1435


Is it possible to refer the same object for referring more than one object that are of different class using the descriptive programming approach? Suppose my code is 'To create the object named as obj Set obj=Description.Create() 'To define the values obj("title").value="IE" obj("type").value="text" obj("html tag").value="INPUT" 'To set the value Browser("IE").Page("Yahoo").WebEdit(obj).Set "xyz" Can I refer the "obj" object for the three objects like Browser,page and webedit objects? If so how?

1574


in my application,validation message has in japanise language.how to validate this message is appears properly or not

1516


What is a data driven test in qtp?

577


Explain calling sub procedure.

620


When to use shared and local object repository?

628


Hi All , How can we decicde for pariticular frame(DataDriven or Keword Driven)in Project? Thanks Balaji

1371


Where you get the run time data table?

576


Is it possible to use two instances of UFT on the same machine? If not why?

595