Hi,

  I am trying to test the login of my portal using webtest, it doesn't
succeed. Its just a simple check for username and password but don't
know why it displays error. I'm using the scripts as given in user
manual (using the same webTest.xml. ) The script for login page test  is
as follows:

<?xml version="1.0"?>

 

<!DOCTYPE project SYSTEM "../dtd/Project.dtd">

 

<project name="demo.googleWebTest" default="test">

 

                <target name="test">

 

                                <webtest name="Home page test">

                         <invoke url="www.mylogin.com" username="aaaa"
password="1234" />

                                </webtest>

 

                </target>

</project>

I have directly given the username and password but it shows error. The
username and password are right (actual data not given here). 

I have also tried giving it as.,

<invoke description="het home page" url="www.mylogin.com"/>

<setInputField name="_58_login" value="aaaa"/>

<setInputField description="Set password field _58_password: 1234"
name="_58_password" value="1234"/>

<clickButton label="Sign In"/>

 

 I also tried checking my email login, even that doesn't work. Is there
any problem with the script? Test cases work for field names but not for
username and password. Any clues....?

 

Help Appreciated

 

Thanks in advance

 

-Jai

 

Reply via email to