Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to test a Web page
#1
Solved: 10 Years, 9 Months ago
hi all,

In one of the interview i was asked the following question:

There is a web page having one edit box, 2 drop down boxes, one button labelled search.
After clicking Search button a web table is populated in the lower half page as per the search criteria entered in edit box, selected from drop down box.
This web table contains some links.
How will you test this page using QTP?

What should be the ideal answer to this?
Thanks in advance. Smile
Reply
#2
Solved: 10 Years, 9 Months ago
There are two parts to this,
1. To automate the flow
2. To validate the flow

The first part is simple. You just automate to enter data into the respective edit boxes and click on search.
The validation part would be to verify on the webtable if the specified data you entered appears as the link.
You will have to use,
childobjects on the webtable.
The links would be the child in the parent webtable.
Obtain the total rows and columns of the webtable.
Iterate through until you find the necessary link.
Voila ! and you should get through the interview Smile
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#3
Solved: 10 Years, 9 Months ago
---------------------------------------------------
Thanks for your reply.
I dint get selected.. Sad
Reply
#4
Solved: 10 Years, 9 Months ago
Good Luck for your next one, you will get through Smile
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  click each web link in a page using Index or other method in QTP smeijer 13 23,676 04-29-2017, 04:53 PM
Last Post: kowshik
  VB Script to count number of links in a web page. Suma Parimal 4 24,760 07-01-2015, 12:59 PM
Last Post: govind
  for help.Run a test to login,and then it didn't jump to another page maosilu 0 2,586 11-01-2013, 01:27 PM
Last Post: maosilu
  Cannot find the "[ WebButton ]" object's parent "[ Page ]" (class Page) sumitparolkar@gmail.com 4 4,772 05-03-2013, 11:53 PM
Last Post: agarwl.anurag
  what all you test when you migrate from client application to web application diya 4 3,068 04-29-2013, 09:04 AM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)