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



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.

Regards,
mahi.kotike@gmail.com

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More QTP Interview Questions

What is the extension for Recovery scenario?

2 Answers  


It is very difficult to test in manual for that we go to DATA DRIVEN TEST.

3 Answers  


How to see entire results at the same timeafter the batch run.. Cannot see the entire results at a time. Is there a easier way view everthing at same,as our batch file very large

2 Answers  


Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek

0 Answers  


In My application, having Copmany Name : Text Box and click Save button. if i enter a vlue, after run..........it shows the already exists. so how to enter random ro mmultiple names names into webedit box(company Name). without using DATATABLE THanks Ramesh

4 Answers   TCS,






what are the Tools for version control?

3 Answers  


Hi.. I want to do parametrization for selecting perticular flighr say XYZ by using local table: criteria: 1.If flight is available msgbox "Flight is available" and then select flight from flight table and click to ok button after that as enter username and ticket no and then stop 2. otherwise msgbox " Flight is not available" and stop Please help me out ..and let me know your responses on dipak.bachhav@gmail.com Regard, Dipak

0 Answers  


Differentiate the two Object Repository Types of QTP.

5 Answers  


When to use descriptive programming?

0 Answers  


What is runtime objects and test objects? What is the difference between them?

7 Answers   IBM,


what is a good testcase?

3 Answers   Wipro,


Can we create a qtp test from qc?

0 Answers  


Categories