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 !!
What is Maximum synchronization time out in QTP(By Default is 20sec). Anybody can answer it. Thanks in advance.
What is the difference in the global and action sheet in qtp?
How can we disable popup blocker?
How many types of recording modes in the qtp?
Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?
Can anyone explain about Keyword driven framework in detail and how to use it in case of any project
How do you send email with attachment from outlook using qtp ?
Can any one explain about environment variables with examples?
what version of test director supports the QTP? does testdirector supports the QTP9.0?
How can I map test requirement to Test Set (multiple test cases)? Under test lab, I have multiple test cases. I would like to map 1 requirement to all test cases under that test set (in test lab)? Currently, I think QC only allow mapping 1 test requirement to 1 test case. Instead I would like to map 1 test requirement to multiple test cases under one test lab.
4 Answers CarrizalSoft Technologies, DST Global Solutions,
How to indentify MS-Word objects like Menubar, Toolbar, table/columns/rows/cells etc within Word document, using QTP?
how do u create new test sets in TD