-
Notifications
You must be signed in to change notification settings - Fork 4
/
Button Radio Test.test
86 lines (83 loc) · 3.46 KB
/
Button Radio Test.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
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _2jXpEHTyEeKQnp4qYEvDRA
Element-Name: Button Radio Test
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _UPfZgJa6EeK184kZHmPTQQ
Runtime-Version: 1.5.6.qualifier
Save-Time: 4/1/15 12:04 PM
Tags: swt
Testcase-Type: ecl
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
get-view "Q7 Quality Mockups" | get-tree | select "swt/button/ButonRadio Test"
with [get-view "Q7 Quality Mockups" | get-group "ButonRadio Test"] {
with [get-button "Choice 1"] {
get-property className | equals "org.eclipse.swt.widgets.Button" | verify-true
get-property enablement | equals true | verify-true
get-property caption | equals "Choice 1" | verify-true
get-property selected | equals true | verify-true
get-property kind | equals Radio | verify-true
}
with [get-button "Choice 2"] {
get-property className | equals "org.eclipse.swt.widgets.Button" | verify-true
get-property enablement | equals false | verify-true
get-property caption | equals "Choice 2" | verify-true
get-property selected | equals false | verify-true
get-property kind | equals Radio | verify-true
}
with [get-button "Choice 3"] {
get-property className | equals "org.eclipse.swt.widgets.Button" | verify-true
get-property enablement | equals true | verify-true
get-property caption | equals "Choice 3" | verify-true
get-property selected | equals false | verify-true
get-property kind | equals Radio | verify-true
}
with [get-button "Choice 3" -index 1] {
get-property className | equals "org.eclipse.swt.widgets.Button" | verify-true
get-property enablement | equals true | verify-true
get-property caption | equals "Choice 3" | verify-true
get-property selected | equals false | verify-true
get-property kind | equals Radio | verify-true
}
with [get-button "Choice 4"] {
get-property className | equals "org.eclipse.swt.widgets.Button" | verify-true
get-property enablement | equals true | verify-true
get-property caption | equals "" | verify-true
get-property tooltip | equals "Choice 4" | verify-true
get-property selected | equals false | verify-true
get-property kind | equals Radio | verify-true
}
}
with [get-view "Q7 Quality Mockups" | get-group "ButonRadio Test"] {
get-button "Choice 3" | click
with [get-button "Choice 3" -index 1] {
click
click
}
get-button "Choice 4" | click
get-button "Choice 3" | click
get-button "Choice 3" -index 1 | click
get-button "Choice 4" | click
get-button "Choice 1" | click
get-button "Choice 3" | click
get-button "Choice 3" -index 1 | click
get-button "Choice 4" | click
with [get-button "Choice 3" -index 1] {
click
click
}
}
with [get-view "Q7 Quality Mockups"] {
get-group "ButonRadio Test" | get-button "Choice 5" | click
get-tree | select "swt/toolbar"
}
get-view "Q7 Quality Mockups" | get-group "ButonRadio Test" | get-editbox | get-property text | equals selected
| verify-true
get-view "Q7 Quality Mockups" | get-group "ButonRadio Test" | get-button "Choice 3" -index 1 | click
get-view "Q7 Quality Mockups" | get-group "ButonRadio Test" | get-editbox | get-property text | equals unselected
| verify-true
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--