-
Notifications
You must be signed in to change notification settings - Fork 0
/
Test4.test
98 lines (94 loc) · 3.67 KB
/
Test4.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
--- RCPTT testcase ---
Format-Version: 1.0
Element-Name: Test4
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _yhleQAfYEeedoapedcqh7A
Runtime-Version: 2.1.0.201606221726
Save-Time: 4/6/17 5:54 PM
Testcase-Type: ecl
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Content-Type: text/plain
Entry-Name: .description
Navigate from Unit inspection View to Jimple Code
------=_.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
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 "r0.<de.visuflow.analyzeMe.ex2.TargetClass2$Container: de.visuflow.analyzeMe.ex2.TargetClass2 this$0> = r1"
| 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--