Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
from scratch realm canoo tests started
- Loading branch information
1 parent
31258bc
commit 53dc3b0
Showing
18 changed files
with
1,201 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
src/realms/from-scratch-realm-template/src/test/canoo/definitions/login.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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']) > 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> |
12 changes: 12 additions & 0 deletions
12
src/realms/from-scratch-realm-template/src/test/canoo/definitions/logout.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> | ||
|
||
|
6 changes: 6 additions & 0 deletions
6
src/realms/from-scratch-realm-template/src/test/canoo/dtd/MyWebTest.dtd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
|
||
<!ENTITY % webtest SYSTEM "./WebTest.dtd" > | ||
<!ENTITY % project SYSTEM "./Project.dtd"> | ||
%webtest; | ||
%project; |
Oops, something went wrong.