Micro Focus QTP (UFT) Forums
Regarding Searching Items - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Regarding Searching Items (/Thread-Regarding-Searching-Items)



Regarding Searching Items - PrabhatN - 09-27-2010

Hi All,

I am working on a Desktop Application developed in Java Swing.

In a Search page, there is a JavaEdit box, where I am putting a value (Item No which is unique for each Record) from the DataTable and clicking on the "Search" button. It should fetch the particular "Record No" having the "Item No" I have searched by.

When I am doing it manually it works fine with one click of "Search" button.

But when I am doing it through QTP, after clicking "Search" button it fetches all the Records present in the system rather than the particular one though I am providing the Item No. To acheive the proper search through QTP, the "Search" button needs to be clicked twice.
When QTP clicks on the Search button for the first time it fetches all the records and when it clicks for next time it fetches the correct Record.

After providing the "Item No" in the JavaEdit, I have given 5 sec wait also so that the "Item No" is properly placed in the field.

Can anybody please come out with some Suggestions/Solutions ?


RE: Regarding Searching Items - A.Saini - 09-27-2010

Hi Prabhat,

As per the information given by you, manually it's working fine for one click.

Execute the script in debug mode & double check whether the "Item No" is properly entered before click.

It will be better if you use waitproperty instead of wait.

If it's still not working than it's really strange.
Smile