Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on QTP- wrong object recognised... within the QTP forums, part of the Software Testing category; Hi All, I am stuck on a problem and will be grateful if anyone can suggest possible solutions: I am recording a script which is essentially a process that involves ...
|
|||||||
|
|||
|
QTP- wrong object recognised...
Hi All,
I am stuck on a problem and will be grateful if anyone can suggest possible solutions: I am recording a script which is essentially a process that involves the following: - Loging on to a website - Searching for an entry within a long list of entries by typing its name and clicking search -When the entry is found it is displayed on the screen -This entry is representing one of many buildings a company holds. The basic properties of the entry are in a row. One of these entries is the 'Status' of the building. i.e. Property Name | Status | .... X (this is a link which takes you to the datasheet of the property) | Occupied|...... -clicking on the link (X) which takes you to the datasheet of the property and changing the status of the building by choosing a different value from the drop-down menu ( e.g from Occupied to Reserved). The test aims to check that when this change is saved, it is reflected in the table. The problem is that When I try to rerun my recorded scripts, the test fails towards the end of the script because as we save the new selection from the drop down menu, it immediately changes that selection to 'blank'. So basically it does change the status, but doesn't change it to what has been recorded... Any suggestions? Thanks. |
| Sponsored Links |
|
|||
|
Re: QTP- wrong object recognised...
The quick reason I can think of in this case is, when dealing with drop-down boxes or in tech terms, combo box/ list box(whatever it is in ur case) QTP goes by index number. The solution for this may be,
e.g. ur statement is recorded as under Browser("a1).Page("a1").ListBox("a1").Select "Occupied" Instaed of this give following: (suppose 2 is the index no. for occupied status) index_no = 2 Browser("a1).Page("a1").ListBox("a1").Select index_no Don't forget to regularise the expression for the value of the list box to any number. Tell me if this worked. Otherwise maybe we can try for something else. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Object Spy | suji | QTP | 3 | 06-19-2009 10:05 AM |
| Copying Single Object | JobHelper | QTP | 3 | 02-21-2008 12:10 AM |
| Whats wrong in this Descriptive Program? | sutnarcha | QTP | 7 | 10-09-2007 08:58 AM |
| When things go wrong... | Lokesh M | Geeks Lounge | 2 | 12-11-2006 10:09 PM |
| Create Object | JobHelper | Java | 2 | 11-30-2006 01:45 AM |