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

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

592


To retrive the test data which tool vl use and whats basis u vl write test data? its urgent

1439


what is object and child object.. explain ..if possible give some example for better understanding ..

1527


Difference between copy to action and call to action?

583


How do you synchronization point through DP?

593






what is the diffrence bw qtp architectute and qtp framework?

1534


How to data driven test for Win objects in QTP ?

1468


Is it possible to split an action? How?

652


What are the differences between qtp and winrunner?

521


hi all here i have tab named "Workbench" By clicking on "workbench" tab.it displays 4 tabs like below workbench common cargo commercial charter "common" tab have 10tabs inside,"cargo" tab also haveing 15 tabs inside and remaining two tabs also having few tabs inside. when clicked on "common" tab.it displaying the script like tab("workbench").select"common" if i clicked on "cargo".it displaying the script like tab"workbench_2").select"cargo" if i clicked on "commercial".it displaying the script like tab"workbench_3").select"commercial" if i clicked on "charter".it displaying the script like tab"workbench_4").select"charter" I have used a "FOR LOOP" for common,commercial,cargo,charter tabs.it was stopped at second tab SO, CAN I RECOGNIZE "WORKBENCH_2,_3,_4" AS A SINGLE VARIABLE if not, can anyone plese help me to solve this

1508


Hi, How Accessibility checkpoint in QTP can be implemented in the test script?

1603


How to break the object spy ?

657


Which features or drawbacks of QTP lead to the upgrade for a newer version?

564


What is test object model in quicktest professional (qtp)?

540


requirement is for combo box your expected value is str= "Denver.Frankfurt.London.Los Angeles.Paris.Portland.San Francisco.Seattle.Sydney.Zurich" you must get the text in combo box and need to compare them how

1468