-
Notifications
You must be signed in to change notification settings - Fork 0
/
Test15.test
93 lines (90 loc) · 3.37 KB
/
Test15.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
--- RCPTT testcase ---
Format-Version: 1.0
Element-Name: Test15
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _AzoD0BKKEeeWDM4Q2YTK8w
Runtime-Version: 2.1.0.201606221726
Save-Time: 3/27/17 8:37 AM
Testcase-Type: ecl
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Content-Type: text/plain
Entry-Name: .description
Failed Test: Navigate from Unit to Jimple View
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
get-button "Open Perspective" | click
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" | 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 "Unit Inspection View" | get-tree | get-menu "View Jimple Code" | get-property selection | equals false
| verify-true
get-view "Unit Inspection View" | get-tree
| select "r1.<de.visuflow.analyzeMe.ex2.TargetClass2$Container: de.visuflow.analyzeMe.ex2.TargetClass2 this$0> = r2"
| get-menu "View Jimple Code" | click
with [get-editor "de.visuflow.analyzeMe.ex2.TargetClass2$Container.jimple" | get-text-viewer] {
get-property "caretPosition.line" | equals 16 | verify-true
get-property "caretPosition.column" | equals 9 | verify-true
get-property "getShell().toString()"
| equals "Shell {aut-org.eclipse.epp.package.jee.product-2 - Visuflow - VisuFlowSheet1/sootOutput/de.visuflow.analyzeMe.ex2.TargetClass2$Container.jimple - Eclipse}"
| verify-true
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--