Micro Focus QTP (UFT) Forums
testing of web page having dynamic product - 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 Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: testing of web page having dynamic product (/Thread-testing-of-web-page-having-dynamic-product)



testing of web page having dynamic product - rajmc - 09-24-2009

Hi,

how can i test a web page on which its products are changing daily . i.e at the time of recording - product exist but next day it is removed which results in script failing at the time of execution next day

regards
rajmc


RE: testing of web page having dynamic product - Saket - 09-24-2009

You should use descriptive programming to overcome such issue.
search this forum and refer article Descriptive Programming Simplified for help on DP.

Please explain more the exact scenario with your lines of code, it will help us to help you Smile


RE: testing of web page having dynamic product - rajmc - 10-01-2009

Hi Ankur ,

Problem is that i need to test existence of web page say Product page where my all the product exist

I have created a script on product page of my web site to check the existence of a product . initially it was running fine till the time product exist. But some how that product is been removed from the product page and script failed .

Is there any way that if any product doesn't exist on the product page then the script should work as there are other products exists on the product page?

If i send you the code then it consists of the URL should i remove the URL and then send it to you ?

Regards
Rajmc


RE: testing of web page having dynamic product - Ankur - 10-01-2009

The problem could be solved by a simple check function. All your products name can reside in -say- a datatable.

Yeah you can put up the code here. Make sure to put it inside code tags by hitting 'Preview Post' button.


RE: testing of web page having dynamic product - basanth27 - 10-01-2009

There are 2 concepts you need to learn,

1. Exist Method
2. If then Else loop.