Explain the keyword createobject with an example.

Answer Posted / sreeprasad

Creates and returns a reference to an Automation object

syntax: CreateObject(servername.typename [, location])

Arguments

servername:Required. The name of the application providing

the object.

typename : Required. The type or class of the object to

create.

location : Optional. The name of the network server where

the object is to be created.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me about qtp?

540


How to find the path of folder in which the test is saved in qtp?

532


Describe how Smart Identification is used

1695


After executing the script in qtp suppose i found some script execute successfully and found some error.So how to report the status for both (i.e pass and fail report)in test director. For "fail" We use "defect tab" in testdirector. But for "pass" how to report it to TL.what is the process plz anybody ans

1674


What is Associate Repository in QTP 9.2 ?

599






What is the default object synchronization timeout in qtp?

641


When to use descriptive programming?

590


Can we use index on view?

1599


Analyzing the checpoint results?

597


While spliting an action in QTP 10.0 getting an error : "This Line is a part of Script Block.You cannot split the action on this line." how to re-solve this and split the script into actions?

1421


X flies from Hyd to bangalore using different methods of transportation. write the test scenarios and test cases for this?

1501


How to carry out bit map check points in QTP

1764


What are the different recording modes?

559


What are the Disadvantages of shared object repository?

569


Could i know how how to explain keyword driven framework in interview? If any body knows plz send the explanation.

1609