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

How to retrieve the property of an object?

1 Answers  


Hi How to retrieve data from web element line by line?

0 Answers  


Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks

0 Answers  


How can we use regular expressions for a table in web page, each cell in table having unique identification, Now I want to count number of rows in table and enter data in all cells of the table?

1 Answers   CTS,


one screen page,that contains file , browse , update and cancel buttons.when we browse a file it should get update otherwise it should go to previous page.write negative test case for that.

0 Answers   Mindlance,


how to create flat file datasubmission in qtp

0 Answers  


How to measure transaction time through VBScript without using start and end transaction points?

0 Answers  


describe common problems of test automation?

3 Answers  


Brief the process of testing with UFT?

0 Answers  


Without QTP (or any Testing tool) can we able to test the GUI part of the Applications. for Example generating the Scripts in Notepad and Executing them Using VB. Is it Possible to do so..

2 Answers  


How to open any application during Scripting?

3 Answers   Crea,


how can we handle exceptional handling in qtp

6 Answers   NIIT,


Categories