hi

  you can try dump current response via

<groovy>
println step.context.currentResponse.asXml()
</groovy>

 and you can enable debug mode (in log4j.properties in lib directory (add
another appender to file))
  Regards,
 Robert

2008/1/4, Fly High <[EMAIL PROTECTED]>:
>
>  Thanks for the reply Marc,
>
>    I have tried the <sleep> option as well as a wait loop.  The page
> changes its title once the login has completed, but WebTest <verifyTitle>
> never sees the title change.   I'm running version R_1646 which I downloaded
> yesterday.
>
>    A little more info on the app, in the "login window" when the "login"
> button is clicked, a new window (appWindow) is created for the
> application.  The "login window" then establishes a "session" on a back end
> server and executes a appWindow.location.replace(sessionURL) to connect
> the application window to the back end session.  This effectively refreshes
> the appWindow with a new URL.  When this occurs, WebTest no longer see any
> changes in the appWindow.
>
> Here are the step I'm using (I've hidden the username and password) for
> this post:
>
>          <steps>
>             <invoke
>               description="get Login Page"
>               url="" />
>             <verifyTitle
>               description="we should see the LogiQuest login page title"
>               text="LogiQuest(R) - Logistics Research Service" />
>             <setInputField description="Set the Username" htmlid="nUser"
> value="***" />
>             <setInputField description="Set the Password" htmlid="nPass"
> value="***" />
>             <clickButton description="Click the Login Button - this will
> open a new window" htmlid="nLoginBtn" />
>             <verifyTitle description="we should see the login title in the
> new window" text="LogiQuest(R) Login" />
>             <verifyElementText description="Check Progress box text in the
> new window" htmlid="nProgress" text="Processing login request. Please Wait."
> />
>
>             <sleep description="sleep for a second" seconds="30"/>
>             <verifyTitle description="Main application title again"
> text="LogiQuest(R) - Logistics Research Service" />
>          </steps>
>
> Here's the end of the output:
>
>
> [setInputField]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
> setInputField "Set the Username" (3/10)
> [setInputField]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
> setInputField "Set the Password" (4/10)
> [clickButton]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
> clickButton "Click the Login Button - this will open a new window" (5/10)
> [clickButton]  INFO (com.canoo.webtest.steps.request.ClickButton) - ->
> findTarget(by input): name= value=L
> [clickButton]  INFO (com.canoo.webtest.engine.WebClientContext) - Content
> of window changed to 
> (url<http://tcidb1.terabase.com:9084/s2w001/frm_connect.html>of new app 
> window - removed for this post) (text/html)
> [clickButton]  INFO (com.canoo.webtest.engine.WebClientContext) - Content
> loaded in newly opened window, its content will become current response
> [clickButton]  INFO (com.canoo.webtest.engine.WebClientContext) - Current
> form set to none
> [clickButton]  INFO (com.canoo.webtest.engine.WebClientContext) - Current
> response now: (url<http://tcidb1.terabase.com:9084/s2w001/frm_connect.html>of 
> new app window - removed for this post) (text/html)
> [clickButton]  INFO (com.canoo.webtest.engine.WebClientContext) - Content
> of window changed to 
> (url<http://tcidb1.terabase.com:9084/$S2W/s2w?LOGIN=&1199465171912>of backend 
> session - removed for this post) (text/html)
> [clickButton]  INFO (com.canoo.webtest.engine.WebClientContext) - Content
> of window changed with javascript, it will NOT become current response
> [verifyTitle]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
> verifyTitle "we should see the login title in the new window" (6/10)
> [verifyElementText]  INFO (com.canoo.webtest.steps.Step) - >>>> Start
> Step: verifyElementText "Check Progress box text in the new window" (7/10)
> [verifyElementText]  INFO (com.canoo.webtest.steps.Step) - >>>> Start
> Step: verifyElementText "Check Progress box text in the new window - this
> should fail" (9/10)
> [verifyTitle]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
> verifyTitle "Main application title again" (10/10)
>  INFO (com.canoo.webtest.engine.WebClientContext) - Responses restored
>  INFO (com.canoo.webtest.ant.WebtestTask) - Finished executing webtest
> "myTest" (C:\Program Files\Webtest\logintest.xml:7: )
>  INFO (com.canoo.webtest.ant.WebtestTask) - No report to write according
> to config
>
> BUILD FAILED
> C:\Program Files\Webtest\logintest.xml:29: Wrong document title found!.
> Expected value "LogiQuest« - Logistics Research Service" but got "LogiQuest«
> Login", Step: VerifyTitle at C:\Program Files\Webtest\logintest.xml:29:
> with (taskName="verifyTitle")
> Total time: 42 seconds
>
>
>
> > From: [EMAIL PROTECTED]
> > To: [email protected]
> > Subject: Re: [Webtest] RE: Displaying pages modified by Javascript in
> Webtest results
> > Date: Fri, 4 Jan 2008 10:25:05 +0100
> >
> > Hi,
> >
> > the mail you mention only discuss the pages presented in the reports,
> > this means that it doesn't help your login problem.
> >
> > Concerning your problem:
> > - which WebTest build do you use?
> > - what happens if you add something like <sleep seconds="5"/> (it's
> > quite extreme, but it's just to know)?
> >
> > Cheers,
> > Marc.
> > --
> > Blog: http://mguillem.wordpress.com
> >
> >
> > Fly High wrote:
> > > Hello,
> > >
> > > This is my first day with Webtest. My app. is AJAX based with the
> > > client side updated via Javascript. I can't seem to get past the login
> > > page. After WebTest "clicks" the login button I get: "Content of
> window
> > > changed with javascript, it will NOT become curent response". I can
> not
> > > get any further with the testing after this point.
> > >
> > > I did some searching of the mail list and found this:
> > > http://lists.canoo.com/pipermail/webtest/2006q4/007344.html (subject:
> > > Displaying pages modified by Javascript in Webtest results) posted
> last
> > > year. Sounds like what I'm running into. Has any progress been made on
> > > this front?
> > >
> > > Thanks,
> > >
> > > John
> > >
> > >
> ------------------------------------------------------------------------
> > > Get the power of Windows + Web with the new Windows Live. Get it now!
> > > <http://www.windowslive.com?ocid=TXT_TAGHM_Wave2_powerofwindows_122007
> >
> >
> > _______________________________________________
> > WebTest mailing list
> > [email protected]
> > http://lists.canoo.com/mailman/listinfo/webtest
>
>
> ------------------------------
> Get the power of Windows + Web with the new Windows Live. Get it 
> now!<http://www.windowslive.com?ocid=TXT_TAGHM_Wave2_powerofwindows_012008>
>

Reply via email to