-
Notifications
You must be signed in to change notification settings - Fork 0
/
Test5.test
115 lines (112 loc) · 4.35 KB
/
Test5.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
109
110
111
112
113
114
115
--- RCPTT testcase ---
Format-Version: 1.0
Element-Name: Test5
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _8xfjoAffEee1LMUX2-3TUw
Runtime-Version: 2.1.0.201606221726
Save-Time: 4/6/17 5:55 PM
Testcase-Type: ecl
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Content-Type: text/plain
Entry-Name: .description
Highlight from Results View to CFG
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
get-button "Open Perspective" | get-property selected | equals false | verify-true
get-button "Open Perspective" | click
get-window "Open Perspective" | get-table | get-item Visuflow | get-property selected | equals false | verify-true
with [get-window "Open Perspective"] {
get-table | select Visuflow
get-button OK | click
}
get-menu "Window/Show View/Other..." | click
with [get-window "Show View"] {
with [get-tree] {
select "Visuflow/CFG" | key-type "M2+ARROW_DOWN"
select "Visuflow/CFG" "Visuflow/Results"
key-type "M2+ARROW_DOWN"
select "Visuflow/CFG" "Visuflow/Results" "Visuflow/Unit Inspection View"
}
get-button OK | click
}
get-menu "Window/Show View/Other..." | click
with [get-window "Show View"] {
get-tree | select "General/Project Explorer"
get-button OK | click
}
get-menu "File/Import..." | click
with [get-window Import] {
get-tree | select "General/Existing Projects into Workspace"
get-button "Next >" | click
}
set-dialog-result Folder "C:\\Users\\ram\\Downloads\\TaintProject\\TaintProject"
with [get-window Import] {
get-button "Browse..." | click
get-button Finish | click
}
get-menu "File/Import..." | click
with [get-window Import] {
get-tree | select "General/Existing Projects into Workspace"
get-button "Next >" | click
}
set-dialog-result Folder "C:\\Users\\ram\\Downloads\\visuflow-workspace\\VisuFlowSheet1"
with [get-window Import] {
get-button "Browse..." | click
get-button Finish | click
}
get-button "Link Target Project" | get-property selected | equals false | verify-true
get-button "Link Target Project" | click
with [get-window "Link Analysis and Target Project"] {
get-button "Browse..." | click
with [get-window "Folder Selection"] {
get-tree | select VisuFlowSheet1
get-button OK | click
}
get-button "Browse..." -after [get-label "Choose Target Project:"] | click
with [get-window "Folder Selection"] {
get-tree | select TaintProject
get-button OK | click
}
get-button Apply | click
}
with [get-view "Project Explorer" | get-tree] {
select VisuFlowSheet1 | get-menu "Configure/Disable Jimple Builder" | click
select VisuFlowSheet1 | get-menu "Configure/Enable Jimple Builder" | click
}
get-view CFG | click
get-view CFG | click
with [get-view Results] {
click
get-button "Highlight selected nodes on graph" | check
}
with [get-view "Unit Inspection View"] {
click
get-button "Sync with Graph View" | check
}
with [get-view "Unit Inspection View" | get-tree] {
get-menu "View in CFG" | get-property caption | equals "View in CFG" | verify-true
get-menu "View in CFG" | get-property selection | equals false | verify-true
}
get-view "Unit Inspection View" | get-tree
| select "r0.<de.visuflow.analyzeMe.ex2.TargetClass2$Container: java.lang.String notTainted> = \"foobar\""
| get-menu "View in CFG" | click
with [get-view Results] {
click
get-table | get-item "r1 := @parameter0: de.visuflow.analyzeMe.ex2.TargetClass2" -column Unit | check
}
with [get-view Results | get-table] {
get-item "r0.<de.visuflow.analyzeMe.ex2.TargetClass2$Container: java.lang.String notTainted> = \"foobar\""
-column Unit | get-property caption | equals "" | verify-true
get-item "r0.<de.visuflow.analyzeMe.ex2.TargetClass2$Container: java.lang.String notTainted> = \"foobar\""
-column Unit | get-property selection | equals false | verify-true
get-item "r0.<de.visuflow.analyzeMe.ex2.TargetClass2$Container: java.lang.String notTainted> = \"foobar\""
-column Unit | get-property checked | equals false | verify-true
}
get-view Results | get-table
| get-item "r0.<de.visuflow.analyzeMe.ex2.TargetClass2$Container: java.lang.String notTainted> = \"foobar\""
-column Unit | check
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--