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
Tell some commonly used Excel VBA functions?
what is clean sweep?
action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans
Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.
Can the user toggle between using Local OR and shared OR for the same action?
What is action? How many types of actions are there in qtp?
you are recording on "WINDOW 1", say it has a link if you click on that, that leads you to "WINDOW 2". If you do any manipulations on "WINDOW 2" that are automatically updated in to "WINDOW 1". But "WINDOW 1" is currently invisible. But the updations in "WINDOW 1" must also be recorded as a script in QTP. The best Example is if you update your resume in JOB STREET portal it actually happens in other window, but the previous window is automatically updated. Now does QTP help you in this types of situations? Any body can answer this question. please..... Siva
How to create runtime property for an object?
What is QTP testing process?
hi i have 4 yrs exp in manual and automation testing using QTP i need sample resumes plz can u send this mail id pbre1980@gmail.com
How to export quicktest professional (qtp) results to an .xls file?
What are the advantages of parameterization ?
What are output values and why they are used ?
how to evalute defects in QTP script?
How to check which add-ins are associated with a test in qtp?