Posts: 6
Threads: 3
Joined: Sep 2009
Reputation:
0
09-24-2009, 01:20 PM
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
Posts: 6
Threads: 3
Joined: Sep 2009
Reputation:
0
10-01-2009, 11:27 AM
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
Posts: 1,105
Threads: 18
Joined: Jan 2008
Reputation:
8
10-01-2009, 11:40 AM
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.
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
10-01-2009, 01:16 PM
There are 2 concepts you need to learn,
1. Exist Method
2. If then Else loop.
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.