Micro Focus QTP (UFT) Forums
search engine testing - 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 Interview Questions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Interview-Questions)
+--- Thread: search engine testing (/Thread-search-engine-testing)



search engine testing - usareks - 02-23-2010

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


RE: search engine testing - Sivakumar Munganda - 02-23-2010

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


RE: search engine testing - somanianands - 03-03-2010

You can use regular expression like ".*QTP.*" to search the QTP String.


RE: search engine testing - priya999 - 02-25-2011

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





RE: search engine testing - basanth27 - 02-25-2011

Yes, one of the possible solutions.