blob: ed3d8299cede5bde2eaad2d81dec7e1c5d24ce84 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _SapwEL4pEeOsAoUpt_cnqw,_LOMGYGrvEeK_JdLra2Bk5A
Element-Name: ts009_tc003_logicalmodel_view
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _YOzEYWM6EeSnVZVQFV_quQ
Runtime-Version: 2.0.0.201506120617
Save-Time: 3/21/16 5:31 PM
Testcase-Type: ecl
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Content-Type: text/plain
Entry-Name: .description
This test just checks the existence of the Logical Model View, and the initial state of its toolbar buttons.
1. Select Window/Show View/Other...
2. Click on EMF Compare/Logical Model View item
3. Assert that the view has been opened and is active.
4. Assert that the synchro button is not active.
5. Assert that the list presentation is active.
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
//1. Select Window/Show View/Other...
get-menu "Window/Show View/Other..." | click
//2. Click on EMF Compare/Logical Model View item
with [get-window "Show View"] {
get-tree | select "EMF Compare/Logical Model View"
get-button OK | click
}
//3. Assert that the view has been opened and is active.
try {
get-tab-folder -index 4 | get-property activePage | equals "Logical Model View" | verify-true
} -catch {
get-tab-folder -index 3 | get-property activePage | equals "Logical Model View" | verify-true
}
//4. Assert that the synchro button is not active.
try -command {//From Mars release
with [get-view "Logical Model View" | get-button "Synchronize with Editor and Selection"] {
get-property selected | equals false | verify-true
}
} -catch {//Before Mars release
with [get-button "Synchronize with Editor and Selection"] {
get-property selected | equals false | verify-true
}
}
//5. Assert that the list presentation is active.
try {
get-button "View Menu" -index 3 | get-property selected | equals false | verify-true
get-button "View Menu" -index 3 | click
} -catch {
get-button "View Menu" -index 1 | get-property selected | equals false | verify-true
get-button "View Menu" -index 1 | click
}
get-menu "List" | get-property selection | equals true | verify-true
get-menu "Tree" | get-property selection | equals false | verify-true
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--