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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..

1334


What is the pros and cons between QTP and Rational Robot

3271


Where we can use the synchronization?

564


What is keyword driven framework?

599


why text area checkpoints cannot used for web applications

1870






What is optional step in qtp? How you can add optional step in qtp?

520


How to handle dynamic objects in quicktest professional (qtp)?

540


what is defenetion of kiran can u tell me plz CVS, SVN

1562


Explain the concept of object repository & how qtp recognizes objects?

557


give me an example where u used good judgement and logic in solving a problem

3346


In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?

1492


What are the different attributes used with regular expression?

532


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.

1426


How can i click on any Excel sheet's "H" column with out writing coordinates Ex:Window("Book1").WinObject("Book1").Click 498,14 I dont want to give coordinates like 498,14 Can i open "H" column by writing like Ex:Window("Book1").WinObject("Book1").Click "H" or Ex:Window("Book1").WinObject("Book1").Click "H","1" or Ex:Window("Book1").WinObject("Book1").Click H,1 If i want to click on "Sheet3" of an excel sheet, Can i open like Ex:Window("Book1").WinObject("Book1").Click "Sheet3" Please help me any one

1586


What are the different types of checkpoints?

571