[Webtest] Previousresponse Question

Saba Sundke webtest@lists.canoo.com
Fri, 22 Aug 2003 16:22:50 +0530


This is a multi-part message in MIME format.

------=_NextPart_000_0102_01C368C9.A1AFBCF0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Hi

In my application there a main page, a search page and a search results
page. When I click on the 'Search' link on the main page, I go to the search
page. The search page has 2 buttons. The 'Search' Button will lead to the
Search Results page and the 'Cancel' button will go back to the main page.

My Test Case has the following steps
1. Go to Main Page
2. Click on 'Search' Link (Go to search page)
3. Verify that the criteria text box is at the default value
4. Click on 'Cancel' (Back to main page)
5. Verify title on main page
6. Get previous response (Search page)
7. Set Search criteria
8. Hit 'Search' button (Got to the Search Results page)
9. Verify Search results

Now is the usage of previous response at step 6 correct i.e will I get the
Search page back?. When using it this way, the results are weird.
1. If the above steps are executed, the search results step 9 fails. The
response that it got for that step is the main page (and hence it fails) How
come it does not get the search results page?
2. If I remove steps 4, 5, 6 and do a normal operation (w/o Cancel) I get
the Search results
3. If I just remove step 6; keeping 4, 5 intact (which means that I'm on the
main page after Cancel), surprisingly step 7 passes (setting search
criteria) and step 8 fails saying there is no 'Search' button on the page.
Step 8 failing is okay; how did step 7 pass?

I'm confused. Please advice

- Saba







------=_NextPart_000_0102_01C368C9.A1AFBCF0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D718293208-22082003>Hi </SPAN></DIV>
<DIV><SPAN class=3D718293208-22082003></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D718293208-22082003>In my application there a main =
page, a=20
search page and a search results page. When I click on&nbsp;the=20
'Search'&nbsp;link on the main page, I go to the search page. The search =
page=20
has 2 buttons. The 'Search' Button will lead to the Search Results page =
and the=20
'Cancel' button will go back to the main page.</SPAN></DIV>
<DIV><SPAN class=3D718293208-22082003></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D718293208-22082003>My Test Case has the following=20
steps</SPAN></DIV>
<DIV><SPAN class=3D718293208-22082003>1. Go to Main Page</SPAN></DIV>
<DIV><SPAN class=3D718293208-22082003>2. Click on 'Search' Link (Go to =
search=20
page)</SPAN></DIV>
<DIV><SPAN class=3D718293208-22082003>3. Verify that the criteria text =
box is at=20
the default value</SPAN></DIV>
<DIV><SPAN class=3D718293208-22082003>4. Click on 'Cancel' (Back to main =

page)</SPAN></DIV>
<DIV><SPAN class=3D718293208-22082003>5. Verify title on main =
page</SPAN></DIV>
<DIV><SPAN class=3D718293208-22082003>6. Get previous response (Search=20
page)</SPAN></DIV>
<DIV><SPAN class=3D718293208-22082003>7. Set Search =
criteria</SPAN></DIV>
<DIV><SPAN class=3D718293208-22082003>8. Hit 'Search' button (Got to the =
Search=20
Results page)</SPAN></DIV>
<DIV><SPAN class=3D718293208-22082003>9. Verify Search =
results</SPAN></DIV>
<DIV><SPAN class=3D718293208-22082003></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D718293208-22082003>Now is the usage of previous =
response at=20
step&nbsp;6 correct i.e will I get the Search page back?. When using it =
this=20
way, the results are weird.</SPAN></DIV>
<DIV><SPAN class=3D718293208-22082003>1. If the above steps are =
executed, the=20
search results step 9 fails. The response that it got for that step is =
the main=20
page (and hence it fails) How come it does not get the search results=20
page?</SPAN></DIV>
<DIV><SPAN class=3D718293208-22082003>2. If I remove steps 4, 5, 6 and =
do a normal=20
operation (w/o Cancel) I get the Search results</SPAN></DIV>
<DIV><SPAN class=3D718293208-22082003>3. If I just remove step 6; =
keeping 4, 5=20
intact (which means that I'm on the main page after Cancel), =
surprisingly step 7=20
passes (setting search criteria) and step 8 fails saying there is no =
'Search'=20
button on the page. Step 8 failing is okay; how did step 7 =
pass?</SPAN></DIV>
<DIV><SPAN class=3D718293208-22082003></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D718293208-22082003>I'm confused. Please =
advice</SPAN></DIV>
<DIV><SPAN class=3D718293208-22082003></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D718293208-22082003>- Saba</SPAN></DIV>
<DIV><SPAN class=3D718293208-22082003></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D718293208-22082003></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D718293208-22082003></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D718293208-22082003></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D718293208-22082003></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D718293208-22082003></SPAN>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0102_01C368C9.A1AFBCF0--