HOW AND WHY TO CREATE EMPTY OBJECT IN QTP?

Answers were Sorted based on User's Feedback



HOW AND WHY TO CREATE EMPTY OBJECT IN QTP?..

Answer / sudhsrk

After an object is used the object has to be made empty so
that the memory used by that object is released and it can
be instantiated and used again. So we create an empty
object

Dim obj
Set obj = CreateObject("InternetExplorer.Application")

obj=Nothing

Is This Answer Correct ?    3 Yes 1 No

HOW AND WHY TO CREATE EMPTY OBJECT IN QTP?..

Answer / sudhsrk

After an object is used the object has to be made empty so
that the memory used by that object is released and it can
be instantiated and used again. So we create an empty
object

Dim obj
Set obj = CreateObject("InternetExplorer.Application")

obj=Nothing

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More QTP Interview Questions

How do you send email with attachment from outlook using qtp ?

0 Answers  


In QTP I have a parameter in a datatable that is a sentence. I need to take the last word from the sentence and enter it into a field in a web application. How can I setup a parameter to enter in just a portion of the parameter (last word of the sentence) instead of the entire paramater (whole sentence).

2 Answers  


How to compare the two strings?

2 Answers  


What is the use of "Registeruserfunc" when should we use it? Note:Please do not copy paste the date from QTP help. I tryed it.But I don't Understand where should we use exactly.

5 Answers   Livetek,


Write the vb script for the lowest and highest values of an array?

1 Answers   Manhattan,


What is the difference between Normal mode and Fast mode ?

1 Answers   AZTEC,


To which environments does quicktest professional (qtp) supports?

0 Answers  


i am a begnner so am learning Error handling :tried using Recovery manager didnt work i want to be able to handle errors , e.g. if while running the test the folwoing does not show up then how can i use the If then else and goto next step in the test, as in many scenarios it does not show up Browser("The Shopping Channel -").Page("The Shopping Channel -_8").Image("easy pay").Click

0 Answers   Rogers,


Hi, It is HR question. What are the qualities you like and dislike in your Project Manager?

2 Answers   TCS,


tell me types of environment variables? what r they? explain details? pls give anwer any one?

2 Answers   IBM,


Suppose I created one object as virtual object? That object is applicable to that test? Or all the tests?

0 Answers  


In descriptive programming how we know the properties of the objects, if application is not developed and the prototype of the application is also not developed.

1 Answers  


Categories