Can I define the macro in my build.xml file?
Josep,
In your example where are the actual values for username and password
defined?
thanks!
Indeed, as Murat sugests, I use a macro:
<macrodef name="loginIssuer" description="perform a login for the provided
user and password">
<attribute name="username"/>
<attribute name="password"/>
<sequential>
<invoke description="get Login Page" url="/"/>
<verifytitle description="we should see the login title"
text=".*${login.title}.*" regex="true"/>
<setinputfield description="set user name" name="j_username"
value="@{username}"/>
<setinputfield description="set password" name="j_password"
value="@{password}"/>
<clickbutton label="${button.login}" description="Click the submit
button"/>
<!--
<verifytitle description="Home Page follows if login ok"
text=".*${userDocumentList.title}.*" regex="true"/>
-->
</sequential>
</macrodef>
Josep
--
View this message in context:
http://old.nabble.com/Help-with-log-in-test-cases-tp30189200p30190245.html
Sent from the WebTest mailing list archive at Nabble.com.
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest