[Yanel-commits] rev 41062 - in
public/yanel/trunk/src/realms/yanel-website/src/test/canoo:
definitions tests
michi at wyona.com
michi at wyona.com
Tue Jan 20 12:25:00 CET 2009
Author: michi
Date: 2009-01-20 12:25:00 +0100 (Tue, 20 Jan 2009)
New Revision: 41062
Added:
public/yanel/trunk/src/realms/yanel-website/src/test/canoo/tests/login-logout.xml
Modified:
public/yanel/trunk/src/realms/yanel-website/src/test/canoo/definitions/login.xml
public/yanel/trunk/src/realms/yanel-website/src/test/canoo/definitions/logout.xml
public/yanel/trunk/src/realms/yanel-website/src/test/canoo/tests/allTests.xml
Log:
login logout fixed
Modified: public/yanel/trunk/src/realms/yanel-website/src/test/canoo/definitions/login.xml
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/src/test/canoo/definitions/login.xml 2009-01-20 11:16:22 UTC (rev 41061)
+++ public/yanel/trunk/src/realms/yanel-website/src/test/canoo/definitions/login.xml 2009-01-20 11:25:00 UTC (rev 41062)
@@ -1,16 +1,14 @@
-<!--
-Like all files of this folder, this content will be executed in target wt.defineMacros
-and therefore made be available for the tests (here the macro <fillParticipantData .../>)
--->
+<!-- Do NOT add an XML declaration! -->
<macrodef name="login" description="Login">
<sequential>
- <invoke description="Get the page: Login to realm" url="${realm.prefix}"/>
+ <invoke description="Get the page: Login to realm" url="${realm.prefix}index.html?yanel.toolbar=on"/>
+ <verifyText description="Verify that text is contained in the page" text="Login"/>
+
<setInputField name="yanel.login.username" value="lenya"/>
<setInputField name="yanel.login.password" value="levi"/>
- <clickButton name="submit"/>
+ <clickButton label="Login" fieldIndex="0"/>
<!--
<clickButton name="Senden"/>
-->
- <verifyText description="Verify that text is contained in the page" text="Willkommen"/>
</sequential>
</macrodef>
Modified: public/yanel/trunk/src/realms/yanel-website/src/test/canoo/definitions/logout.xml
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/src/test/canoo/definitions/logout.xml 2009-01-20 11:16:22 UTC (rev 41061)
+++ public/yanel/trunk/src/realms/yanel-website/src/test/canoo/definitions/logout.xml 2009-01-20 11:25:00 UTC (rev 41062)
@@ -6,6 +6,5 @@
<sequential>
<invoke description="Get the page: Logout from realm"
url="${realm.prefix}?yanel.usecase=logout"/>
- <verifyText description="Verify that text is contained in the page" text="Login"/>
</sequential>
</macrodef>
Modified: public/yanel/trunk/src/realms/yanel-website/src/test/canoo/tests/allTests.xml
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/src/test/canoo/tests/allTests.xml 2009-01-20 11:16:22 UTC (rev 41061)
+++ public/yanel/trunk/src/realms/yanel-website/src/test/canoo/tests/allTests.xml 2009-01-20 11:25:00 UTC (rev 41062)
@@ -5,5 +5,7 @@
<!-- note: the order of the tests matters because some tests depend on others -->
<ant antfile="exists-homepage.xml"/>
+ <ant antfile="login-logout.xml"/>
+ <!--<ant antfile="workflow.xml"/>-->
</target>
</project>
Added: public/yanel/trunk/src/realms/yanel-website/src/test/canoo/tests/login-logout.xml
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/src/test/canoo/tests/login-logout.xml (rev 0)
+++ public/yanel/trunk/src/realms/yanel-website/src/test/canoo/tests/login-logout.xml 2009-01-20 11:25:00 UTC (rev 41062)
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<!DOCTYPE project SYSTEM "../dtd/Project.dtd">
+
+<project name="login-toolbar-logout" default="test-login">
+
+ <import file="../definitions.xml"/>
+
+ <target name="test-login" depends="wt.defineMacros">
+ <webtest name="Login - Toolbar - Logout">
+ &config;
+ <login/>
+ <invoke description="Get the login page: " url="${realm.prefix}index.html?yanel.toolbar=on"/>
+ <verifyText description="Verify that text is contained in the page" text="Turn off toolbar"/>
+ <logout/>
+ <invoke description="Get the login page: " url="${realm.prefix}index.html?yanel.toolbar=on"/>
+ <verifyText description="Verify that text is contained in the page" text="Login"/>
+ </webtest>
+ </target>
+
+</project>
More information about the Yanel-commits
mailing list