blob: 168f02201feeef76bf6d67acce31e65207e12b50 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Context-Type: org.eclipse.rcptt.ctx.ecl
Element-Name: Library-EGit-Multiple-Branch-Init
Element-Type: context
Element-Version: 2.0
Id: _zFx5wJKhEeSdjeXOy8KSHw
Runtime-Version: 2.0.0.201506120617
Save-Time: 4/1/16 3:39 PM
------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998
Content-Type: text/ecl
Entry-Name: .ecl.context
get-button "Open Perspective" | click
with [get-window "Open Perspective"] {
get-table | select "Git"
get-button OK | click
}
//Removes all existing repositories if needed
try {
if [get-view "Git Repositories" | get-tree | is-empty] {
// Do nothing
} -else {
with [get-view "Git Repositories" | get-tree] {
get-items | foreach {
select-item
| get-menu "Remove Repository from View" | click
try {
get-window "Confirm Project Deletion" | get-button Yes | click
} -catch {
// Do nothing
}
}
}
}
} -catch {
// Do nothing
}
get-button "Add an existing local Git Repository to this view" | click
set-dialog-result Folder "platform:/resource/Library-EGit-Multiple-Branches/emf-compare-library-egit-multiple-branches"
get-window "Add Git Repositories" | get-group "Search criteria" | get-button "Browse..." | click
get-window "Add Git Repositories" | get-checkbox "Check All Repositories" | click
get-window "Add Git Repositories" | get-button Finish | click
try -command {
get-view "Git Repositories" | get-tree | get-property itemCount | equals 1 | verify-true
} -catch {wait 500} -times 30
get-view "Git Repositories" | get-tree
| select "(> )?emf-compare-library-egit-multiple-branches .*"
| get-menu "Import Projects..." | click
get-window "Import Projects from Git Repository .*"
| get-button "Next >" | click
get-window "Import Projects from Git Repository .*"
| get-button Finish | click
get-button "Open Perspective" | click
with [get-window "Open Perspective"] {
get-table | select "Java( \\(default\\))?"
get-button OK | click
}
with [get-view "Package Explorer" | get-tree] {
let [val nbItems [get-item "(> )?library.*" | expand-all | get-property "getItems().length" -raw]] {
if [$nbItems | equals 2] {
get-item "(> )?library.*" | get-property "getItems().TreeItem[0].getText()"
| equals "(> )?.project" | verify-true
get-item "(> )?library.*" | get-property "getItems().TreeItem[1].getText()"
| equals "(> )?library.ecore" | verify-true
} -else {
get-item "(> )?library.*" | get-property "getItems().TreeItem[0].getText()"
| equals "(> )?library.ecore" | verify-true
}
}
}
try {
// remove outer project since this may cause issues
get-view "Package Explorer" | get-tree | select "Library-EGit-Multiple-Branches" | get-menu Delete | click
get-window "Delete Resources" | get-button OK | click
} -catch {
// Do nothing
}
------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998--