[Webtest] Clickbutton doesn't execute

Matt Raible webtest@lists.canoo.com
Tue, 07 Dec 2004 06:10:55 -0700


For some strange reason, I have a test where the clickbutton doesn't 
seem to execute.  It's really strange because the generated page is 
XHTML ( validated by validator.w3.org ) and it works when I use another 
framework.  It works with Struts, but not with Spring and the test is 
the same.  Everything works fine in the browser.

Any ideas?

This was working with build543, but not with build574.

Thanks,

Matt

    <!-- Sign up a new user (no login) -->
    <target name="Signup"
        description="Signup a new user">
        <canoo name="signup">
            &config;
            <steps>
                <invoke stepid="click signup link" url="/signup.html"/>
                <verifytitle stepid="view signup title" 
text="${webapp.prefix}${signup.title}"/>
               
                <setinputfield stepid="set username" name="username" 
value="signup-user"/>
                <setinputfield stepid="set password" name="password" 
value="test"/>
                <setinputfield stepid="set confirmPassword" 
name="confirmPassword" value="test"/>
                <setinputfield stepid="set firstName" name="firstName" 
value="Test"/>
                <setinputfield stepid="set lastName" name="lastName" 
value="Name"/>
                <setinputfield stepid="set city" name="address.city" 
value="Denver"/>
                <setinputfield stepid="set state" 
name="address.province" value="CO"/>
                <setselectfield stepid="Select country" 
name="address.country" value="US"/>
                <setinputfield stepid="set postalCode" 
name="address.postalCode" value="80210"/>
                <setinputfield stepid="set email" name="email" 
value="signup-user@raibledesigns.com"/>
                <setinputfield stepid="set website" name="website" 
value="http://raibledesigns.com"/>
                <setinputfield stepid="set passwordHint" 
name="passwordHint" value="test"/>
                <clickbutton label="${button.register}" stepid="Click 
button 'Signup'"/>

                <verifytitle stepid="view main menu" 
text="${webapp.prefix}${mainMenu.title}"/>
                <verifytext stepid="verify success message" 
text="${user.registered}"/>
            </steps>
        </canoo>
    </target>