Link to home
Start Free TrialLog in
Avatar of saibsk
saibsk

asked on

QTP webpage retrieval

I have a webpage. When I click on the Home button I get the list of various clients. And when I click one of the client it takes to a to asp page with the complete client info. In QTP can I some how automate this process of retrieving the final client info? Any ideas..
ASKER CERTIFIED SOLUTION
Avatar of gdzilla
gdzilla

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of saibsk
saibsk

ASKER

After I retrieve the webpage I need to more testing on the page. The page I retrieve is in tabular format. So I need to check whether two columns in the page are sorted or not. Could you suggest which technique would be better to use for the retrieval?
To check if a table is sorted, you either need to work with a static set of testdata (so you know what to expect if the list is sorted).
Or use a lot of programming where you capture all the values of the two columns, sort it yourself using a sorting mechanism (like http://www.ozgrid.com/VBA/sort-array.htm) and then comparing the sorted array to the array you got from the AUT.
Avatar of saibsk

ASKER

Ok. I am completely new to QTP or VBscript. So I need some more clarification. I can't use the static test data. Then I need to first retrieve the webpage then work on the columns. So would the webpage retrieval be better when I retrieve it in form of webtable rather than bitmap because of additional processing. Please advise.
Avatar of saibsk

ASKER

I tried recording the information till the asp page. But here the tester could select any of the clients. How would I modify the test case to pick up the client name and display the corresponding complete info.