Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

How will you handle custom object in QTP?

Answers were Sorted based on User's Feedback

How will you handle custom object in QTP?..

Answer / nagk24

custom objects are nothing but qtp not understandable
for example if we working wit paint try to record and add objects in repository,qtp will not understand that

so,here wo do diff methods 1)analog 2)low level recording3)virtual objects 4)send keys to application 5)Dot net factory

Is This Answer Correct ?    0 Yes 1 No

How will you handle custom object in QTP?..

Answer / sujatha

Custom objects are nothing but the user defined objects
since Qtp cannot learn those objects it adds those objects
in the Winobject. so all the custom objects will he
handled only by winobject. And all the standard objects
will be handled by the object repository.

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More QTP Interview Questions

What are SetToProperty, SetRoProperty, GetToProperty scripting?

4 Answers  

Analyzing the checpoint results?

0 Answers  

write the code to reverse a string without using Strrev built in function.

14 Answers   ADP,

What r the features of QTP9.2,other than QTP8.0 What r the extre features of QTP9.2.

2 Answers  

can we test an windows application using qtp

1 Answers  

how to test use the quality control .how to verify the image verification

0 Answers   Wells Fargo,

In the application that I'm testing is having a WYSIWIYG editor.QTP is recording editor's body as web element. I want to add some data to this web Element at run time. The problem is that I cant find a method to add contents to this web Element. Can any one come up with an answer for this. Thankx.

0 Answers  

how to click the link in webpage by using QTP Script????????

3 Answers  

QTP Query: Hello to all, I'm getting an error (as below) when I perform descriptive programming on any Web application. "The test run cannot continue due to an unrecoverable error.The "myvar_0" object was not found in the Object Repository. Check the Object Repository to confirm that the object exists or to find the correct name for the object " But I do not have any problem when I perform the same descriptive programming on a Windows application such as Sample Application - Flight. Previosly , I had prepared a lot of scripts - both via creating the properties collection object and by giving the description in string arguments and implemented them on Flight and they're working perfectly fine.I'm using QTP Version 9.2 The sample script I have used for Web application is as below : Set myvar_0 = Description.Create 'Setting property collection object for Browser myvar_0("class").value = "Browser" myvar_0("name").value= ".*" 'Setting property collection object for Page Set myvar_1 = Description.Create myvar_1("class").value = "Page" myvar_1("name").value= ".*" 'Setting property collection object for Text box Set myvar_2 = Description.Create myvar_2("class").value = "WebEdit" myvar_2("name").value= ".*" 'Setting property collection object for Button Set myvar_3 = Description.Create myvar_3("class").value = "WebButton" myvar_2("name").value= ".*" SystemUtil.Run "C:\Program Files\Internet Explorer\iexplore.exe" Browser("myvar_0").Page("myvar_1").WebEdit("myvar_2").Set ("hello how are you ?") Browser("myvar_0").Page("myvar_1").WebButton ("myvar_3").Click Browser("myvar_0").Page("myvar_1").Sync Browser("myvar_0").Close As our application is a Web based application, I was planning to make a few changes in regards to the object names, but unfortunately I am getting the above mentioned error. Could anyone please advice me, whether it could anything to do with the run setting or anything else.I am getting the same error even while implementing on our Sample Application - Mercury Tours website. I would be grateful to anybody who can solve my problem !!

1 Answers  

In QTP for .net application which plug in is used? For Java Application which plug in is used ?

2 Answers   AppLabs, Fraze Tech,

Difference between action & Reusable action?

0 Answers  

To count the no of links present in the yahoo home page i have written the script like this Set fileSysObject=createobject("Scripting.FileSystemObject") Set linksFileName=fileSysObject.opentextfile ("D:\samplelinkfile.txt",2,true) Set linkDescObj=description.Create linkDescObj("micclass").value="Link" Set noOfLinks=browser("yahoo").Page("Yahoo! India").ChildObjects(linkDescObj) For i=0 to noOfLinks.count-1 linkName=noOfLinks(i).getROProperty("name") linksFileName.writeline(linkName) Next linksFileName.close Set fileSysObject=nothing While running the script it showing error that object "yahoo"isnot found in the object repository. Is there any setting before running the script? if yes what is the steps for it.Im using QTP9.0

2 Answers