[Jameleon-cvscommits] jameleon/tst/java/net/sf/jameleon/function/tutorial HackUser.java,NONE,1.1.2.1
Brought to you by:
engrean
From: <en...@us...> - 2003-09-13 00:38:43
|
Update of /cvsroot/jameleon/jameleon/tst/java/net/sf/jameleon/function/tutorial In directory sc8-pr-cvs1:/tmp/cvs-serv30652/tst/java/net/sf/jameleon/function/tutorial Added Files: Tag: jameleon-2_0-dev HackUser.java Log Message: test that the user is a user that is known for hacking --- NEW FILE: HackUser.java --- /* Jameleon - An automation testing tool.. Copyright (C) 2003 Christian W. Hargraves (en...@ho...) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package net.sf.jameleon.function.tutorial; import org.apache.commons.jelly.MissingAttributeException; import org.apache.commons.jelly.XMLOutput; import net.sf.jameleon.function.HttpUnitFunctionTag; /** * @jameleon.function name="jameleon-tutorial-hack-user" * type="validation" * Represents the validation of the tutorial hack user page */ public class HackUser extends HttpUnitFunctionTag{ public HackUser(){ super(); addRequiredAttribute("errorMsg"); } /** * Error messaeg in the hack user page * @jameleon.attribute required="true" */ public void setErrorMsg(String msg){ setDefaultVariableValue("errorMsg", msg); } public void testBlock(XMLOutput out) throws MissingAttributeException{ assertTitleEquals("Jameleon Tutorial - Hack Account"); assertTextPresent(getVariableAsString("errorMsg")); } } |