[Webtest] [webtest][JIRA] Created: (WT-60) Create step <receive-response
enable="true/false"/>
Paul King
webtest@lists.canoo.com
Wed, 06 Jul 2005 08:01:11 +1000
Wouldn't the enableJavaScript step let you achieve the same thing (without
the extra invoke probably)?
Cheers, Paul.
Serge Maslyukov (JIRA) wrote:
> Create step <receive-response enable="true/false"/>
> ---------------------------------------------------
>
> Key: WT-60
> URL: http://webtest-community.canoo.com/jira/browse/WT-60
> Project: WebTest
> Type: New Feature
> Versions: 1.7-SNAPSHOT
> Reporter: Serge Maslyukov
>
>
> I'm work with WebSpherePortal 5.0. IBM's implementation of login page have a lot of JavaScript. As a result, after fill the login form and click on 'Login' button, I got JavaScriptException:
> Enclosed exception:
> org.mozilla.javascript.EcmaError: TypeError: captureEvents is not a function. (Embedded script#25)
>
> But if I skip a receive of response of clicking on 'Login', I can continue execute my webtest script.
>
> For this I would like to have a step <receive-response enable="true/false"/>
> This step must talk to webscript what all next responce must not be received.
>
> My script would be like this:
> <invoke stepid="get Login Page" url="${login-url}" save="login-"/>
> <setinputfield stepid="set user name" name="userid" value="${username}"/>
> <setinputfield stepid="set password" name="password" value="${password}"/>
> <receive-response enable="false"/>
> <clickbutton label="Log in" stepid="Click the submit button" save="after-login-"/>
> <receive-response enable="true"/>
> <invoke stepid="Invoke welcome page" url="/wps/myportal/portlets" save="welcome-page-"/>
>
>
> Serge Maslyukov
>
>