blob: 7d6de524f690f20313704d6f1178479f5a5d4b31 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _SapwEL4pEeOsAoUpt_cnqw,_LOMGYGrvEeK_JdLra2Bk5A,_Lp3WkHMdEeW_bZHq03AR-A,_d_GLMHDdEeWhSZQCADl_Kg
Element-Name: ts017_tc004.3_cherrypick_resource_location_test
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _Q5rGgHMhEeWJlLI5frq0hw
Runtime-Version: 2.0.0.201506120617
Save-Time: 3/21/16 5:04 PM
Testcase-Type: ecl
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Content-Type: text/plain
Entry-Name: .description
This test must validate the hability to merge a ResourceLocationChange.
- The initial state of the repository is a model with a resource controlled (the original model contains a diagram and the controlled resource contains uml elements and diagrams)
- On a second branch, a new element is added in the controlled resource (and in all the diagrams)
- On another branch based on the first one, the controlled resource is uncontrolled.
TEST STEPS
1) Checkout the branch branch2
2) Select the project, right-click and cherry-pick the last commit of branch3
// Assert that the result contains the new uml element
// Assert that the controlled resource has been uncontrolled the result fragment has been renamed
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
with [get-view "Project Explorer" | get-tree] {
select "papyrus[ ]+\\[emf-compare-papyrus-egit branch1\\]" | get-menu "Team/Switch To/branch2" | click
select "papyrus[ ]+\\[emf-compare-papyrus-egit branch2\\]" | get-menu "Team/Show in History" | click
}
with [get-view History] {
get-button "Link with Editor and Selection" | click
get-button "Show all changes in repository containing the selected resource" | click
get-button "Show All Branches and Tags" | click
get-table | select "e00e1a1" | get-menu "Cherry Pick..." | click
}
try -command {
get-window "Cherry Pick Commit" | get-button OK | click
} -catch {wait 500} -times 30
get-view "Project Explorer" | get-tree | get-item "papyrus[ ]+\\[emf-compare-papyrus-egit branch2\\]"
| get-property childCount | equals 1 | verify-true
get-view "Project Explorer" | get-tree | select "papyrus[ ]+\\[emf-compare-papyrus-egit branch2\\]/model" | double-click
with [get-view "Model Explorer" | get-tree] {
get-item "root/Diagram NewPackageDiagram" | click
get-item "root/Diagram NewPackageDiagram" | click
select "root/Diagram NewPackageDiagram" | double-click
}
with [get-editor "model.di" | get-diagram -index 1 | get-edit-part -name root | get-edit-part -name Package2] {
get-edit-part -text Package2 | get-property text | equals Package2 | verify-true
get-edit-part -className PackagePackageableElementCompartmentEditPart | get-edit-part -name Class2 | get-edit-part
-text Class2 | get-property text | equals Class2 | verify-true
}
with [get-view "Model Explorer" | get-tree] {
get-item "root/Package2/Diagram ClassDiagramP2" | click
get-item "root/Package2/Diagram ClassDiagramP2" | click
select "root/Package2/Diagram ClassDiagramP2" | double-click
}
with [get-editor "model.di" | get-diagram -index 1 | get-edit-part -name Package2] {
get-edit-part -name Class1 | get-edit-part -text Class1 | get-property text | equals Class1 | verify-true
get-edit-part -name Class2 | get-edit-part -text Class2 | get-property text | equals Class2 | verify-true
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--