Explain the keyword createobject with an example.



Explain the keyword createobject with an example...

Answer / 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

More QTP Interview Questions

How to write test cases for web applications using QTP.plz write a sample test case to show how to write.urgently needed.thanks in advance..

4 Answers   IBM,


Want to verify notepad reports using QTP framework or any other BV script method. Can anyone share the method to achieve it? Eg. Person Name is the header and the actual name is John then how can we verify weather person name is John

0 Answers   IBM,


with out using import sheet came is it possible to get the excel sheet ?

2 Answers   Ordain Solutions,


How will u integrate oracel with QTP?

2 Answers   Microsoft,


Can you tell me the differences between writing the VB script manually for a application and recording the same application in QTP , with a example?

1 Answers  


CAN WE USE 'BVA' AND 'ECP' IN AUTOMATION?

3 Answers   Polaris,


VB scrip has a special command named LBound, which returns the starting index of an arry. What are the possible indexes an array can start with? options are given below. and one only the correct answer. pl select it 1. any index 2. only even non-negative 3. only 0 4. any non-negative integer

1 Answers  


suppose i login into gmail page after that i read all the messages (say 10 messages) i have to send (SAVE) the messages in Html,notepad and i have to replay(Compose) send the messages please give me the code and give mail id so that i can clear my question

0 Answers  


What is the limitation to XML Checkpoints?

1 Answers  


Can the user toggle between using Local OR and shared OR for the same action?

0 Answers  


What is the difference between a Test and a Business Component? Is it necessary to use Business Component while testing an application in the real time?

2 Answers  


Can we directly automate testscripts accrdoing to requirements

2 Answers   CitiGroup, Novartis,


Categories