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
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
You can use regular expression like ".*QTP.*" to search the QTP String.
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
(02-25-2011 01:14 PM)priya999 Wrote: [ -> ]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
Yes, one of the possible solutions.