[Webtest] Previousresponse Question

Saba Sundke webtest@lists.canoo.com
Fri, 22 Aug 2003 17:42:58 +0530


This is a multi-part message in MIME format.

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

Hi Mittie

There is no javascript on the pages i mentioned. I inserted the step 6.a to
see if Im back to the Search page and it passes.

Even if the functionality is confusing, there should be some predictability
or a standard usage of it .. sigh ! Anyway ... there are ways to workaround
I know.

I didnt understand the implication of your question "is it expected that the
user may use the back button to go back to a page that he left with
"cancel"?". In the application, the user is free to use the Back
button........... comments?

Thanx
Saba

  -----Original Message-----
  From: webtest-admin@gate.canoo.com [mailto:webtest-admin@gate.canoo.com]On
Behalf Of Dierk Koenig
  Sent: Friday, August 22, 2003 5:11 PM
  To: webtest@gate.canoo.com
  Subject: RE: [Webtest] Previousresponse Question


  Hi Saba,

  using <previousresponse/> can be quite confusing as the behaviour may
differ from what you see in the browser.
  (cf. http://webtest.canoo.com/webtest/manual/syntax.html#21)

  Is any JavaScript in play?

  I would add a step "6.a" that verifies that you are back on the page you
expected.
  This may give further indications.

  As a workaround you can also omit the <previousresponse/> altogether by
replacing step 6 with step 2.

  cheers
  Mittie

  BTW: is it expected that the user may use the back button to go back to a
page that he left with "cancel"?
    -----Original Message-----
    From: webtest-admin@lists.canoo.com
[mailto:webtest-admin@lists.canoo.com]On Behalf Of Saba Sundke
    Sent: Freitag, 22. August 2003 12:53
    To: Webtest
    Subject: [Webtest] Previousresponse Question


    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_010A_01C368D4.D3601230
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=3D703125911-22082003><FONT color=3D#0000ff>Hi=20
Mittie</FONT></SPAN></DIV>
<DIV><SPAN class=3D703125911-22082003><FONT=20
color=3D#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D703125911-22082003><FONT color=3D#0000ff>There is no =
javascript=20
on the pages i mentioned. I inserted the step 6.a to see if Im back to =
the=20
Search page and it passes.</FONT></SPAN></DIV>
<DIV><SPAN class=3D703125911-22082003><FONT=20
color=3D#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D703125911-22082003><FONT color=3D#0000ff>Even if the=20
functionality is confusing, there should be some predictability or a =
standard=20
usage of it .. sigh ! Anyway ... there are ways to workaround I know.=20
</FONT></SPAN></DIV>
<DIV><SPAN class=3D703125911-22082003><FONT=20
color=3D#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D703125911-22082003><FONT color=3D#0000ff>I didnt =
understand the=20
implication of your question "<FONT face=3DArial size=3D2>is it expected =
that the=20
user may use the back button to go back to a page that he left with=20
"cancel"?</FONT>". In the application, the user is free to use the Back=20
button........... comments?</FONT></SPAN></DIV>
<DIV><SPAN class=3D703125911-22082003><FONT=20
color=3D#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D703125911-22082003><FONT=20
color=3D#0000ff>Thanx</FONT></SPAN></DIV>
<DIV><SPAN class=3D703125911-22082003><FONT =
color=3D#0000ff>Saba</FONT></SPAN></DIV>
<DIV><SPAN class=3D703125911-22082003><FONT=20
color=3D#0000ff></FONT></SPAN>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B> =
webtest-admin@gate.canoo.com=20
  [mailto:webtest-admin@gate.canoo.com]<B>On Behalf Of </B>Dierk=20
  Koenig<BR><B>Sent:</B> Friday, August 22, 2003 5:11 PM<BR><B>To:</B>=20
  webtest@gate.canoo.com<BR><B>Subject:</B> RE: [Webtest] =
Previousresponse=20
  Question<BR><BR></FONT></DIV>
  <DIV><SPAN class=3D686122911-22082003><FONT face=3DArial =
color=3D#0000ff size=3D2>Hi=20
  Saba,</FONT></SPAN></DIV>
  <DIV><SPAN class=3D686122911-22082003><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D686122911-22082003><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>using &lt;previousresponse/&gt; can be quite confusing as the =
behaviour=20
  may differ from what you see in the browser.</FONT></SPAN></DIV>
  <DIV><SPAN class=3D686122911-22082003><FONT face=3DArial =
color=3D#0000ff size=3D2>(cf.=20
  <A=20
  =
href=3D"http://webtest.canoo.com/webtest/manual/syntax.html#21">http://we=
btest.canoo.com/webtest/manual/syntax.html#21</A>)</FONT></SPAN></DIV>
  <DIV><SPAN class=3D686122911-22082003><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D686122911-22082003><FONT face=3DArial =
color=3D#0000ff size=3D2>Is=20
  any JavaScript in play?</FONT></SPAN></DIV>
  <DIV><SPAN class=3D686122911-22082003><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D686122911-22082003><FONT face=3DArial =
color=3D#0000ff size=3D2>I=20
  would add a step "6.a" that verifies that you are back on the page you =

  expected.</FONT></SPAN></DIV>
  <DIV><SPAN class=3D686122911-22082003><FONT face=3DArial =
color=3D#0000ff size=3D2>This=20
  may give further indications.</FONT></SPAN></DIV>
  <DIV><SPAN class=3D686122911-22082003><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D686122911-22082003><FONT face=3DArial =
color=3D#0000ff size=3D2>As a=20
  workaround you can also omit the &lt;previousresponse/&gt; altogether =
by=20
  replacing step 6 with step 2.</FONT></SPAN></DIV>
  <DIV><SPAN class=3D686122911-22082003><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D686122911-22082003><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>cheers</FONT></SPAN></DIV>
  <DIV><SPAN class=3D686122911-22082003><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>Mittie</FONT></SPAN></DIV>
  <DIV><SPAN class=3D686122911-22082003><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D686122911-22082003><FONT face=3DArial =
color=3D#0000ff size=3D2>BTW:=20
  is it expected that the user may use the back button to go back to a =
page that=20
  he left with "cancel"?</FONT></SPAN></DIV>
  <BLOCKQUOTE dir=3Dltr=20
  style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
    <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
    size=3D2>-----Original Message-----<BR><B>From:</B>=20
    webtest-admin@lists.canoo.com =
[mailto:webtest-admin@lists.canoo.com]<B>On=20
    Behalf Of </B>Saba Sundke<BR><B>Sent:</B> Freitag, 22. August 2003=20
    12:53<BR><B>To:</B> Webtest<BR><B>Subject:</B> [Webtest] =
Previousresponse=20
    Question<BR><BR></FONT></DIV>
    <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=20
    page has 2 buttons. The 'Search' Button will lead to the Search =
Results page=20
    and the '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 =

    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=20
    at the default value</SPAN></DIV>
    <DIV><SPAN class=3D718293208-22082003>4. Click on 'Cancel' (Back to =
main=20
    page)</SPAN></DIV>
    <DIV><SPAN class=3D718293208-22082003>5. Verify title on main=20
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=20
    Search 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=20
    main 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=20
    normal 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=20
    step 7 passes (setting search criteria) and step 8 fails saying =
there is no=20
    'Search' button on the page. Step 8 failing is okay; how did step 7=20
    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=20
class=3D718293208-22082003></SPAN>&nbsp;</DIV></BLOCKQUOTE></BLOCKQUOTE><=
/BODY></HTML>

------=_NextPart_000_010A_01C368D4.D3601230--