-
Notifications
You must be signed in to change notification settings - Fork 4
/
SectionWithButtonsTest.test
47 lines (45 loc) · 1.99 KB
/
SectionWithButtonsTest.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
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _2jXpEHTyEeKQnp4qYEvDRA
Element-Name: SectionWithButtonsTest
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: __Pq4QacuEeKVxpzXv84wSw
Runtime-Version: 2.5.0.201910250831
Save-Time: 11/7/19 5:49 PM
Tags: eclipse_forms
Testcase-Type: ecl
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
get-view "Q7 Quality Mockups" | get-tree | select "eclipse/form/SectionWithButtons"
with [get-view "Q7 Quality Mockups" | get-group SectionWithButtons | get-section "Section 1"] {
get-property className | equals "org.eclipse.ui.forms.widgets.Section" | verify-true
get-property "getDescription()" | equals "Section with buttons" | verify-true
get-property "getText()" | equals "Section 1" | verify-true
get-property "getClient().getClassName()" | equals "org.eclipse.swt.widgets.Composite" | verify-true
get-property "isExpanded()" | equals true | verify-true
get-property "getChildren().length" | equals 4 | verify-true
}
with [get-view "Q7 Quality Mockups" | get-group SectionWithButtons | get-section "Section 1"] {
get-button "Check button" | click
get-button "Radio button" | click
get-button "Push button" | click
}
with [get-view "Q7 Quality Mockups" | get-group SectionWithButtons | get-section "Section 1"] {
with [get-button "Radio button"] {
get-property caption | equals "Radio button" | verify-true
get-property selected | equals true | verify-true
}
with [get-button "Check button"] {
get-property caption | equals "Check button" | verify-true
get-property selected | equals true | verify-true
}
with [get-button "Push button"] {
get-property caption | equals "Push button" | verify-true
get-property tooltip | equals "This is a push button" | verify-true
}
get-button "Radio button 2" | get-property caption | equals "Radio button 2" | verify-true
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--