some times we write user define functions.where we write
main and sub program,how,where to insert the functions in
qtp?

Answers were Sorted based on User's Feedback



some times we write user define functions.where we write main and sub program,how,where to insert ..

Answer / kishore

We can write calling script in actions.Write called
programs in note pad add that script as in library file
steps to add user defind function as library file
1)test-->Settings--->Resources-->Click on Plus sign....

Is This Answer Correct ?    0 Yes 0 No

some times we write user define functions.where we write main and sub program,how,where to insert ..

Answer / chengaiah

user defined functions can write in function library in qtp
or we can take note pad ,develop functions and save with any
one extension txt or vbs of q fl and associate navigation:
file--->settings---->resources--->Browse the path of
funciton library and call the function in the main test of QTP

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

Hi I have created a table in the MS access database. I want to access the table in this database through QTP. The code is given below. The code is not working.The following error is displayed "Data source name not found and no default driver specified". Any one can correct the code. Thanks in advance. Dim dbconnection, rs Dim ca, sname Set dbconnection = createobject("ADODB.Connection") Set rs = createobject("ADODB.Recordset") dbconnection.open "DSN = MS Access Database","", "" rs.open "select * from Research", dbconnection rs.movefirst If rs.EOF <> True AND rs.BOF<> True then ca = rs("order_number") sname = rs("customer_number") rs.movenext msgbox ca msgbox sname End If

1 Answers  


what is run-time object in qtp? explain with example?

2 Answers  


What are the types of object repositories? Which one is you using?

0 Answers  


Explain types of output values?

0 Answers  


Can we check environment variable value without existing of environment variable

2 Answers   NIIT,






How many scripts did you have?

0 Answers  


can we enable smart identification for test object

3 Answers  


What is a data driven test in qtp?

0 Answers  


difference between do while and do until ?

3 Answers   HCL,


if numbers are always changing write a script for that

1 Answers   Nous,


Suppose I created one object as virtual object? That object is applicable to that test? Or all the tests?

0 Answers  


Explain about the Test Fusion Report of QTP?

1 Answers   Crea,


Categories