blob: b8ce082cc50de5e84cee5f9e79512d993dd9cc8c [file] [log] [blame]
--- Q7 testcase ---
Format-Version: 1.0
Q7-vendor: www.xored.com/q7
Contexts: _SapwEL4pEeOsAoUpt_cnqw,_LOMGYGrvEeK_JdLra2Bk5A,_YvO_QG9-EeKmUfxl9qSLpg,_pj0X4HBcEeKTzKjv1SXOgA
Element-Name: ts005_tc001_compare_with_commit
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _EbIXcG9_EeKmUfxl9qSLpg
Q7-Runtime-Version: 1.3.10.201312200736
Save-Time: 8/22/14 2:11 PM
Testcase-Type: ecl
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Content-Type: text/plain
Entry-Name: .description
This test must validate a comparison with egit > compare with > commit.
TEST STEPS
1) Select the library project and then select the library.ecore file.
2) Right-click Compare With > Commit.
3) On the Select a commit window, select the commit with id db84a95
4) The Compare editor must show one diff : Library [eClassifiers delete] under library package.
//Asserts that the compare editor is open.
//Asserts that the structure merge viewer contains one diff that is Library [eClassifiers delete].
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
get-view "Package Explorer" | get-tree | select "(> )?library .*/(> )?library.ecore"
| get-menu "Compare With/Commit..." | click
with [get-window "Select a Commit"] {
get-table | select db84a95
get-button OK | click
}
get-tab-folder -index 1 | get-property activePage | equals "Compare library.ecore Current and db84a95" | verify-true
with [get-editor "Compare library.ecore Current and db84a95" | get-tree] {
get-property itemCount | equals 1 | verify-true
get-property "getItems().TreeItem[0].getText()" | equals "> Local: library.ecore" | verify-true
get-property "getItems().TreeItem[0].getItems().length" | equals 1 | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[0].getText()" | equals "> library" | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[0].getItems().length" | equals 1 | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[0].getItems().TreeItem[0].getText()" | equals "Library [eClassifiers delete]"
| verify-true
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--