Geeks Talk

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.

QTP- wrong object recognised...

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

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 02-12-2007
Junior Member
 
Join Date: Feb 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
nusezak is on a distinguished road
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.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-14-2007
Contributing Member
 
Join Date: Feb 2006
Posts: 37
Thanks: 3
Thanked 7 Times in 6 Posts
dsharma is on a distinguished road
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.
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


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


All times are GMT -4. The time now is 12:39 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved