content.txt
2.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
!|scenario|get history for page|page|
|check|request page|@page?pageHistory|200|
|$TESTPAGE=|echo|@page|
|show|content|
!|scenario|get top level history|
|check|request page|?testHistory|200|
|show|content|
!|scenario|the number of page histories should be|number|
|check|count of tag|TR|with id prefix|pageHistoryRow|@number|
!|scenario|the page history bar for|date|should have|number|elements of class|class|
|$date=|page history date signature of|@date|
|check|count of tag|TD|with id|element|and with class|@class|below tag|TR|with id prefix|pageHistoryRow_$date|@number|
!|scenario|the page title should be|title|
|ensure|content contains|<h1>@title</h1>|
!|scenario|the page title should be a link to|page|with value|value|
|ensure|content contains|<h1><a href="/@page">@value</a></h1>|
!|scenario|the bread crumb|crumb|should be a link to|page|
|ensure|content contains|<a href="/@page">@crumb</a>|
!|scenario|The page history bar for|date|should have a|id|with class|class|and value|value|
|$date=|page history date signature of|@date|
|ensure|content of tag with id|pageHistoryRow_$date|contains|<td id="@id" class="@class">@value</td>|
|show|content of tag with id|pageHistoryRow_$date|
!|scenario|The page history bar for|date|should have a date field with class|class|
|$date=|page history date signature of|@date|
|ensure|content of tag with id|pageHistoryRow_$date|contains|<td id="date_field" class="@class">|
!|scenario|the top level history line for|page|is a link to the page history|
|ensure|content contains|<a href="/@page?pageHistory">@page</a>|
!|scenario|The page history line for|date|should be a link to result|resultDate|
|ensure|content contains|<a href="$TESTPAGE?pageHistory&resultDate=@resultDate">@date</a>|
!|scenario|the top level history line for|page|should have a|class|link with|sign|to result|resultDate|
|ensure|content contains|<td class="@class"><a href="@page?pageHistory&resultDate=@resultDate">@sign</a></td>|
!|scenario|the top level history line for|page|should not have a link to|resultDate|
|reject|content contains|<a href="@page?pageHistory&resultDate=@resultDate">|
!|scenario|class for pass fail in top level history line|page||pass class||pass count||fail class||fail count|
|ensure|html contains|<a href="/@page?pageHistory">@page</a></td> <td class="@passClass">@passCount</td> <td class="@failClass">@failCount</td>|
!|scenario|assume time is|time|
|freeze clock at|@time|
!|scenario|with subpage|name|with content|content|
|create page|$IT.@name|with content|@content|
!|scenario|run suite|name|
|check|request page|@name?suite|200|