Posts: 3
Threads: 3
Joined: Feb 2010
Reputation:
0
02-23-2010, 10:18 AM
Hi,
How to test the search engine using QTP for functonal testing?
ex: flow is like below...
1) google.com
2) search value "QTP"
3) got results in n number of pages
Posts: 6
Threads: 0
Joined: Feb 2010
Reputation:
0
02-23-2010, 12:36 PM
the intension is all the search results are having
1.QTP as substring or text in all the links
2. If no. of pages are more than one clk on each page link to check QTP string in all links
Posts: 1
Threads: 0
Joined: Mar 2010
Reputation:
0
03-03-2010, 04:20 PM
You can use regular expression like ".*QTP.*" to search the QTP String.
Posts: 21
Threads: 7
Joined: Feb 2011
Reputation:
0
02-25-2011, 01:14 PM
plz let me know right or wrong
get the count of the links on the result page
and for each link get the inner text value by using getroproperty
then compare the innertext with qtp by using instr function which ifnd wheather qtp stringis in the link or not
is this the right solution
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
02-25-2011, 03:43 PM
Yes, one of the possible solutions.
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.