[Webtest] help login page

Marc Guillemot Marc Guillemot <mguillemot@yahoo.fr>
Thu, 07 Dec 2006 15:12:52 +0100


I'm not sure to fully understand your problem therefore I can make only 
some remarks:

- your verifyInputField steps are quite useless here or do you want to 
test your test? ;-)
- such a script will work with correct as well as with incorrect 
username / password as long as you don't perform some verification to 
check what you expect to receive after the clickButton

Concerning buttons, clickButton should find buttons of type "button" 
too. Are you sure that your html is correct? This is most of the time 
the origin of the problem.


mamtha lalith wrote:
> hello everyone,
> i have been looking at canoo webtest since past 4 5
> days and it looks really intresting as i wanted to use
> for my project.
> i have written some xml files to test my application
> with around 75% of success.
> my first page is a login page so i wrote the following
> module
> <steps>
> 			<invoke description="Welcome" url=""/>
> 			<setInputField description="set username"
> value="${Login ID}" name="id"/>
> 			<verifyInputField description="set username"
> name="id" value="${Login ID}" />
> 			<setInputField description="set password" value="a"
> name="password"/>
> 			<verifyInputField description="set password"
> name="password" value="a"/>
> 			<clickButton label="Sign In" description="Click the
> submit button"/>
> 		</steps>
> and i did had this build successful when run on my
> command prompt. 
> i had u/n and password of a and a respectively which i
> tried it succesfully on both test and application 
> when i tried to change the username and password to
> something else say abc and abc respectively the test
> was also successful, and obviously the u/n and pwd
> didnt work on my application directly , i was
> surprised and thought how to check the dynamically the
> page authentication, like the test only recognises the
> u/n and pwd (whatever it might be) set in the test
> build rather than actual original values of the
> application, is there any other way to do this .
> and i have another problem with clickbutton its fine
> untill the button is of type submit but when the
> button is of type button it says no button was found
> on the page.
> hope, I ll have my questions answered by the
> exprienced proffessionals here
> thanking you
>                                MamthaLalith
> ____________________________________________________________________________________
> Any questions? Get answers on any topic at www.Answers.yahoo.com.  Try it now.
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest