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

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
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
("hello how are you ?")

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

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 !!

QTP Query: Hello to all, I'm getting an error (as below) when I perform descriptive p..

Answer / kotike

myvar_0("class").value = "Browser"

Instead of "class" you just take "micclass" in all the
locations where ever you defined the class.

i hope it may help you.


Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More QTP Interview Questions

While recording a login window QTP is identifying only parent window,then how can u identify the child objects.

2 Answers   Symphony,

How to supress warnings from the "Test results page"?

3 Answers   Crea,

DIFFERENT RUN MODE IN QTP..1-VERIFY MODE 2-UPDATE MODE 3- dEBUG MODE. My question is in whic sitution we use these modes Explain me with example

1 Answers  

We have a dynamic webtable where rows keep on adding.I have to click on particular row where the status changes to Update or Save.How do you click on Status(either it can be Update or save)

2 Answers   IBM, Infosys,

what are the issues we will get when there is migration from QTP 8.2 to QTP 10.0? Is there any problem in executing scripts of 8.2 on 10.0?

0 Answers  

difference between waitProperty & Checkproperty

4 Answers   AON,

str=""to count alphabets,numarics and special charcters pls any one knows send to answer

3 Answers   Ziynx,

Did you face the problem, changing the properties of an object in Run Time?

1 Answers  

How may types of defects identify application or your currently working application?pls give me answer..

0 Answers   Cap Gemini,

what is the difference between data driver & data driven and driver script?

0 Answers  

What is error handled other than recovery scenario manager?

2 Answers  

Please let know the scripts for counting number of repeated letters in the word. Note repeated letter should not be count agian. Ex: If "Hello" is my word... l is coming twice.. it should count once and print... secong 'l' should not count again..

1 Answers