02-24-2011, 08:08 PM
Hi,
We have a test which sometimes fails and redirects to sitename/error I would like to build a check into the test to confirm that if the url is equal to the above then fail.
One of the first bits of coding I have is
What I would like to do is while we are waiting for the object to appear if the site fails I will get redirected to http://sitename/Error if this is the case I want to fail the test.
I am thinking of adding an IF URL is = to http://sitename/Error Then Services.EndTransaction...
is this the best way of implementing this type of check?
We have a test which sometimes fails and redirects to sitename/error I would like to build a check into the test to confirm that if the url is equal to the above then fail.
One of the first bits of coding I have is
Code:
Do
Wait 1
Loop While Browser("Browser").Page("Page").Frame("openDocChildFrame").WebEdit("CrystalReportViewer_p0Discrete").Exist = False
What I would like to do is while we are waiting for the object to appear if the site fails I will get redirected to http://sitename/Error if this is the case I want to fail the test.
I am thinking of adding an IF URL is = to http://sitename/Error Then Services.EndTransaction...
is this the best way of implementing this type of check?