blob: 01cb3f5c4d867cd0d54af279786ba7f4dc519080 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _DGqOIKPrEeWDWL6qw48qbg,_rd2zAKP5EeWDWL6qw48qbg
Element-Name: SearchElement
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _XJJcUKP8EeWDWL6qw48qbg
Runtime-Version: 2.1.0.201606221726
Save-Time: 7/24/17 11:00 AM
Testcase-Type: ecl
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
get-view "Model Explorer" | get-tree | select "org.eclipse.app4mc.amalthea.example.modeling/modeling_example_1.amxmi"
| double-click
get-editor "modeling_example_1.amxmi" | get-section "modeling_example_1.amxmi Contents"
| get-button "Search for model elements" | click
get-window -class SearchGUI | get-editbox -after [get-label "Search string:"] | set-text "Task_1"
exec-with-options {
exec-with-options {
get-window -class SearchGUI | get-button Search | click
} -allowStatusDialog
} -allowStatusDialog
//options
with [get-view Search | get-tree] {
get-property itemCount | equals 2 | verify-true
get-item "Periodic Stimulus Stimulus_Task_1" | get-property caption | equals "Periodic Stimulus Stimulus_Task_1" | verify-true
get-item "Task Task_1" | get-property caption | equals "Task Task_1" | verify-true
}
get-view Search | get-tree | select "Task Task_1" | double-click
with [get-editor "modeling_example_1.amxmi" | get-section "modeling_example_1.amxmi Contents" | get-tree] {
get-item "AMALTHEA.*/Software/Tasks.*/Task_1" | get-property caption | equals "Task_1" | verify-true
get-item "AMALTHEA.*/Software/Tasks.*/Task_1" | get-property selected | equals true | verify-true
}
get-view Search | get-tree | select "Periodic Stimulus Stimulus_Task_1" | double-click
with [get-editor "modeling_example_1.amxmi" | get-section "modeling_example_1.amxmi Contents" | get-tree] {
get-item "AMALTHEA.*/Stimuli/Stimulus_Task_1" | get-property caption | equals "Stimulus_Task_1" | verify-true
get-item "AMALTHEA.*/Stimuli/Stimulus_Task_1" | get-property selected | equals true | verify-true
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--