hi,

I get the following exception when I am trying to verify user id and password.


Caused by: 
/Users/sagarp/sonydevelopment/workspaces/sony4/aspect/tlweb/src/test/webtest/tests/LoginWithUserIdPassword.xml:7:
 setInputField doesn't support the "text" attribute



1.  what is happening here ?
2. Does any one have a test that logs in a user and makes another request to 
the server.  I tried to follow the sample from canoo website.  It does not work.

Here are the details of my code

1.  Server is running on jetty/ MacOS snow leopard on a local laptop
2.  the code I am using ( I am not even verifying if the login has taken place)

<?xml version="1.0"?>
<!DOCTYPE project SYSTEM "../dtd/Project.dtd">
<project default="test">
  <target name="test">
    <webtest name="my simple Test">
<invoke url="http://localhost:8086/login"; description="Go to Tech Logger"/>
      <setInputField forLabel="email" text="admin"/>
      <setInputField forLabel="password" text="admin"/>
      <clickButton label="login"/>
    </webtest>
  </target>
</project>

3.  Form html


                <form method="POST" action="login" onkeypress="if 
(event.charCode == 13) this.submit();">
                        <input type="hidden" name="redirect" value="">
                        <table width="100%">
                                <tr><td 
align=right>Username&nbsp;&nbsp;</td><td><input type="text" name="email" 
class="rounded_borders" style="width: 300px;" value=""></td></tr>
                                <tr><td 
align=right>Password&nbsp;&nbsp;</td><td><input type="password" name="password" 
class="rounded_borders" style="width: 300px;"></td></tr>
                        </table>
                        <div onclick="document.forms[0].submit()" 
class="button" style="margin-right: 20px; margin-top: 20px; float: right; 
width: 100px; cursor: pointer">Login</div>
                </form>



________________________________
Disclaimer notice: This e-mail message, including any attachments, is for the 
sole use of the intended recipient(s) and may contain confidential and 
privileged information or otherwise be protected by law. Any unauthorized 
review, use, disclosure or distribution is prohibited. If you are not the 
intended recipient, please contact the sender by reply e-mail and destroy all 
copies of the original message.

Reply via email to