Skip to content

Commit

Permalink
from scratch realm canoo tests started
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwechner committed Aug 7, 2012
1 parent 31258bc commit 53dc3b0
Show file tree
Hide file tree
Showing 18 changed files with 1,201 additions and 0 deletions.
@@ -0,0 +1,21 @@
<!--
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 .../>)
-->
<macrodef name="login" description="Login">
<sequential>
<invoke description="Load the toolbar to procede with the login"
url="${realm.path}de/index.html?yanel.toolbar=on" />
<ifStep>
<condition>
<verifyXPath description="Check if login available"
xpath="count(//input[@name='yanel.login.username']) &gt; 0" />
</condition>
<!-- Log in -->
<setInputField name="yanel.login.username" value="lenya" />
<setInputField name="yanel.login.password" value="levi" />
<clickButton label="Login" fieldIndex="0"/>
</ifStep>
<!-- Assume logged in -->
</sequential>
</macrodef>
@@ -0,0 +1,12 @@
<!--
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 .../>)
-->
<macrodef name="logout" description="Logout">
<sequential>
<invoke description="Logout"
url="${realm.path}de/index.html?yanel.usecase=logout"/>
</sequential>
</macrodef>


@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>

<!ENTITY % webtest SYSTEM "./WebTest.dtd" >
<!ENTITY % project SYSTEM "./Project.dtd">
%webtest;
%project;

0 comments on commit 53dc3b0

Please sign in to comment.