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
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 |
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 |
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
what is run-time object in qtp? explain with example?
What are the types of object repositories? Which one is you using?
Explain types of output values?
Can we check environment variable value without existing of environment variable
How many scripts did you have?
can we enable smart identification for test object
What is a data driven test in qtp?
difference between do while and do until ?
if numbers are always changing write a script for that
Suppose I created one object as virtual object? That object is applicable to that test? Or all the tests?
Explain about the Test Fusion Report of QTP?