How do u insert an object during runtime in qtp?

Answer Posted / ravi

Where do you want to insert object ??

We can create object at runtime using createobject()
function in VBScript.

For ex:
Set con = createobject("ADODB.Connection")

The above statement creates connection object at runtime.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain process of smart Identification in QTP?

787


If the objects hierarchy is changing from build to build, then how you will handle that condition?

805


How can we conduct U-I Testing by using QTP??????

1634


What is the use of sendkeys and what are send keys

2193


Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?

3529


Hi iam shankar here, right now iam working on manual testing. i want to switch over automation tool qtp, right now iam taking training class outside on qtp, please let me know the cost of QTP tool for full version, wether it's an annual subscription or monthly subscription.

1947


Limitations in QTP?

1929


i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?

1793


Explain data driven framework?

760


1.How do u prepare the test suits in QC? 2.How do u convert requirements to test plan in QC?

1699


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?

754


What are the features and benefits of quick test pro (qtp 8.0)?

794


What is debugging? How you debug your script?

817


How you are developing the script? Using record and play back or manual?

800


i have an external excel datasheet where it only contains 3 rows. after qtp executed the code to import the datasheet, the datatable getrowcount method now gives me a different value, lets say 60,000+ instead of only 3. i did not have any values starting from row 4 of my excel file. why is this happening? this also results to the qtp report to load for a very long time.

1763