-
Notifications
You must be signed in to change notification settings - Fork 4
/
TableViewer_ApplyValueWithEnterKey_NoDeactivate.test
108 lines (106 loc) · 4.94 KB
/
TableViewer_ApplyValueWithEnterKey_NoDeactivate.test
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
--- RCPTT testcase ---
Format-Version: 1.0
Element-Name: TableViewer_ApplyValueWithEnterKey_NoDeactivate
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _Avm8cdWoEeOlZc8JjKKXkw
Runtime-Version: 1.5.6.qualifier
Save-Time: 4/1/15 12:04 PM
Tags: jface
Testcase-Type: ecl
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
with [get-view "Q7 Quality Mockups"] {
get-tree | select "jface/tableViewer/TableViewer Test"
with [get-group "TableViewer Test" | get-table] {
select 4 | activate-cell-edit -column 2
select 4 | get-editbox | set-text 1
get-editbox | key-type Enter
apply-cell-edit
select 8 | activate-cell-edit -column 2
select 8 | get-editbox | set-text 2
get-editbox | key-type Enter
apply-cell-edit
select 12 | activate-cell-edit -column 2
select 12 | get-editbox | set-text 3
get-editbox | key-type Enter
apply-cell-edit
select 2 | activate-cell-edit -column 2
select 2 | get-editbox | set-text 4
get-editbox | key-type Enter
apply-cell-edit
select 1 | activate-cell-edit -column 2
select 1 | get-editbox | set-text 5
get-editbox | key-type Enter
apply-cell-edit
select 7 | activate-cell-edit -column 2
select 7 | get-editbox | set-text 6
get-editbox | key-type Enter
apply-cell-edit
select 6 | activate-cell-edit -column 2
select 6 | get-editbox | set-text 7
get-editbox | key-type Enter
apply-cell-edit
select 3 | activate-cell-edit -column 2
select 3 | get-editbox | set-text 8
get-editbox | key-type Enter
apply-cell-edit
select 5 | activate-cell-edit -column 2
select 5 | get-editbox | set-text 9
get-editbox | key-type Enter
apply-cell-edit
select 11 | activate-cell-edit -column 2
select 11 | get-editbox | set-text 10
get-editbox | key-type Enter
apply-cell-edit
select 10 | activate-cell-edit -column 2
select 10 | get-editbox | set-text 11
get-editbox | key-type Enter
apply-cell-edit
select 9 | activate-cell-edit -column 2
select 9 | get-editbox | set-text 12
get-editbox | key-type Enter
apply-cell-edit
}
}
with [get-view "Q7 Quality Mockups" | get-group "TableViewer Test" | get-table] {
get-item 4 | get-property "columns[0]" | equals 4 | verify-true
get-item 4 | get-property "columns[1]" | equals April | verify-true
get-item 4 | get-property "columns[2]" | equals 1 | verify-true
get-item 8 | get-property "columns[0]" | equals 8 | verify-true
get-item 8 | get-property "columns[1]" | equals August | verify-true
get-item 8 | get-property "columns[2]" | equals 2 | verify-true
get-item 12 | get-property "columns[0]" | equals 12 | verify-true
get-item 12 | get-property "columns[1]" | equals December | verify-true
get-item 12 | get-property "columns[2]" | equals 3 | verify-true
get-item 2 | get-property "columns[0]" | equals 2 | verify-true
get-item 2 | get-property "columns[1]" | equals February | verify-true
get-item 2 | get-property "columns[2]" | equals 4 | verify-true
get-item 1 | get-property "columns[0]" | equals 1 | verify-true
get-item 1 | get-property "columns[1]" | equals January | verify-true
get-item 1 | get-property "columns[2]" | equals 5 | verify-true
get-item 7 | get-property "columns[0]" | equals 7 | verify-true
get-item 7 | get-property "columns[1]" | equals July | verify-true
get-item 7 | get-property "columns[2]" | equals 6 | verify-true
get-item 6 | get-property "columns[0]" | equals 6 | verify-true
get-item 6 | get-property "columns[1]" | equals June | verify-true
get-item 6 | get-property "columns[2]" | equals 7 | verify-true
get-item 3 | get-property "columns[0]" | equals 3 | verify-true
get-item 3 | get-property "columns[1]" | equals March | verify-true
get-item 3 | get-property "columns[2]" | equals 8 | verify-true
get-item 5 | get-property "columns[0]" | equals 5 | verify-true
get-item 5 | get-property "columns[1]" | equals May | verify-true
get-item 5 | get-property "columns[2]" | equals 9 | verify-true
get-item 11 | get-property "columns[0]" | equals 11 | verify-true
get-item 11 | get-property "columns[1]" | equals November | verify-true
get-item 11 | get-property "columns[2]" | equals 10 | verify-true
get-item 10 | get-property "columns[0]" | equals 10 | verify-true
get-item 10 | get-property "columns[1]" | equals October | verify-true
get-item 10 | get-property "columns[2]" | equals 11 | verify-true
get-item 9 | get-property "columns[0]" | equals 9 | verify-true
get-item 9 | get-property "columns[1]" | equals September | verify-true
get-item 9 | get-property "columns[2]" | equals 12 | verify-true
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--