Micro Focus QTP (UFT) Forums
3 Queries - 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: 3 Queries (/Thread-3-Queries)



3 Queries - subhashishp - 02-10-2009

Hello,

I am putting 3 questions below, please see if you can help me.

I have an application where I got to automate the test scripts and for some of the scripts, I am facing problems how to automate them. They are below.

1. There is a column in the Webpage with a header. Clicking on the Header link, it will srot the values in Ascending and again clicking it will sort descending. How will I check the Ascending Order and Descending order of this column using QTP?

Note: The value changes on Run time.

2. There is a form, which has some Mandatory fields. If I click the Submit button without filling the mandatory field, it will throw me an alert asking to fill the mandatory fields. On hitting Okay, it will put the cursor in that mandatory field.
How will I check that the cursor is positioned in the mandatory field using QTP?

3. I have a lot of records present my page. I am searching for a keyword and some results are published. Now say I have searched for "QTP" and I see 4 records are shown as a result.

How will I check that all the records those are published contain "QTP" text in the result.
Note: The page is in tabular form and I for every column, there is a search field on top of that.

Please help!!!