blob: f1fdf1d35cba399a31073af98ddb00b44042a34f [file] [log] [blame]
--- Q7 testcase ---
Format-Version: 1.0
Q7-vendor: www.xored.com/q7
Contexts: _rr2EEFpSEeKcnaHGSt8OwA,_f3qEUVpSEeKcnaHGSt8OwA,_IuFcgFpZEeKcnaHGSt8OwA,__UtTgD-XEeK-yuKsz0Lang
Element-Name: DirtyDecorator
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _z2GgIEBxEeKAxsN-kffdlw
Save-Time: 3/2/13 1:21 AM
Testcase-Type: ecl
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
with [get-view "Model Explorer" | get-tree] {
select "TestProject/Tournament Pro/Matchup" | get-menu Game | click
select "TestProjectSecondCheckOut/Tournament Pro/Matchup" | get-menu Game | click
}
with [get-view "Model Explorer" | get-tree] {
get-item TestProject | get-property "getImage().getImageData().transparentPixel" | equals "-1" | verify-true
get-item TestProjectSecondCheckOut | get-property "getImage().getImageData().transparentPixel" | equals "-1"
| verify-true
}
get-view "Model Explorer" | get-tree | select TestProject | get-menu Commit | click
get-window Commit | get-button OK | click
get-view "Model Explorer" | get-tree | get-item TestProject | get-property "getImage().getImageData().transparentPixel"
| equals [get-by-os -macosx "0" -win "53" -linux "0"] | verify-true
get-view "Model Explorer" | get-tree | get-item TestProjectSecondCheckOut
| get-property "getImage().getImageData().transparentPixel" | equals "-1" | verify-true
get-view "Model Explorer" | get-tree | select TestProjectSecondCheckOut | get-menu Commit | click
get-window Confirmation | get-button OK | click
get-window Update | get-button OK | click
get-window Commit | get-button OK | click
get-view "Model Explorer" | get-tree | select [get-item "TestProjectSecondCheckOut/Tournament Pro/Matchup"
| get-item Game -index 2] | get-menu "Delete Model Element" | click
get-view "Model Explorer" | get-tree | get-item TestProjectSecondCheckOut
| get-property "getImage().getImageData().transparentPixel" | equals "-1" | verify-true
get-view "Model Explorer" | get-tree | select TestProjectSecondCheckOut | get-menu Delete | click
get-window Delete | get-button OK | click
get-view "Model Repositories" | get-tree | select "Local EMFStore/TestProject" | get-menu "Checkout..." | click
with [get-window Checkout] {
get-editbox -after [get-label "Project name:"] | set-text TestProjectSecondCheckout
get-button Finish | click
}
with [get-view "Model Explorer" | get-tree] {
select [get-item "TestProjectSecondCheckout/Tournament Pro/Matchup" | get-item Game -index 2]
| get-menu "Delete Model Element" | click
select TestProjectSecondCheckout | get-menu Commit | click
}
get-window Commit | get-button OK | click
get-view "Model Repositories" | get-tree | select "Local EMFStore/TestProject" | get-menu "Checkout..." | click
with [get-window Checkout] {
get-editbox -after [get-label "Project name:"] | set-text TestProjectThirdCheckout
get-button Finish | click
}
get-view "Model Explorer" | get-tree | get-item TestProjectThirdCheckout
| get-property "getImage().getImageData().transparentPixel" | equals [get-by-os -macosx "0" -win "53" -linux "0"] | verify-true
with [get-view "Model Explorer" | get-tree] {
select "TestProjectThirdCheckout/Tournament Pro/Matchup/Game" | get-menu "Delete Model Element" | click
select "TestProjectThirdCheckout/League Europe" | get-menu "Delete Model Element" | click
select "TestProjectThirdCheckout/League America" | get-menu "Delete Model Element" | click
select "TestProjectThirdCheckout/Tournament Pro" | get-menu "Delete Model Element" | click
select TestProjectThirdCheckout | get-menu "Undo Last Operation" | click
select TestProjectThirdCheckout | get-menu "Revert All Operations" | click
}
get-window Confirmation | get-button Yes | click
get-window Revert | get-button OK | click
get-view "Model Explorer" | get-tree | get-item TestProjectThirdCheckout
| get-property "getImage().getImageData().transparentPixel" | equals [get-by-os -macosx "0" -win "53" -linux "0"] | verify-true
with [get-view "Model Explorer" | get-tree] {
select "TestProjectSecondCheckout/League America/Player Jonas" | get-menu "Delete Model Element" | click
select "TestProjectSecondCheckout/League America/Player Maximilian" | double-click
}
get-editor "Player Maximilian" | get-editbox -after [get-label Name] | set-text Maximilianiks
get-view "Model Explorer" | get-tree | select "TestProjectSecondCheckout/Tournament Pro" | double-click
get-editor "Tournament Pro" | get-combo -after [get-label Type] | set-text Amateur
get-view "Model Explorer" | get-tree | get-item TestProjectSecondCheckout
| get-property "getImage().getImageData().transparentPixel" | equals "-1" | verify-true
get-view "Model Explorer" | get-tree | select TestProjectSecondCheckout | get-menu "Undo Last Operation" | click
get-view "Model Explorer" | get-tree | get-item TestProjectSecondCheckout
| get-property "getImage().getImageData().transparentPixel" | equals "-1" | verify-true
get-view "Model Explorer" | get-tree | select TestProjectSecondCheckout | get-menu "Undo Last Operation" | click
get-view "Model Explorer" | get-tree | get-item TestProjectSecondCheckout
| get-property "getImage().getImageData().transparentPixel" | equals "-1" | verify-true
get-view "Model Explorer" | get-tree | select TestProjectSecondCheckout | get-menu "Undo Last Operation" | click
get-view "Model Explorer" | get-tree | get-item TestProjectSecondCheckout
| get-property "getImage().getImageData().transparentPixel" | equals [get-by-os -macosx "0" -win "53" -linux "0"] | verify-true
get-view "Model Explorer" | get-tree | get-menu "Create new project" | click
with [get-window "Create Project"] {
get-combo -after [get-label "Provider:"] | set-text EMFStore
get-editbox -after [get-label "Project Name:"] | set-text NeuesProjekt
get-button Finish | click
}
get-view "Model Explorer" | get-tree | get-item NeuesProjekt
| get-property "getImage().getImageData().transparentPixel" | equals [get-by-os -macosx "0" -win "53" -linux "0"] | verify-true
get-view "Model Explorer" | get-tree | select NeuesProjekt | get-menu "New Model Element" | click
get-window "Add new model element" | get-tree | select "bowling/Player" | double-click
get-view "Model Explorer" | get-tree | get-item NeuesProjekt
| get-property "getImage().getImageData().transparentPixel" | equals [get-by-os -macosx "0" -win "53" -linux "0"] | verify-true
get-view "Model Explorer" | get-tree | select NeuesProjekt | get-menu Share | click
with [get-window "ECPRepository Wizard"] {
get-button "Select existing repository" | click
get-button "Next >" | click
get-table | select "Local EMFStore"
get-button Finish | click
}
get-window "Share succeeded" | get-button OK | click
get-view "Model Explorer" | get-tree | get-item NeuesProjekt
| get-property "getImage().getImageData().transparentPixel" | equals [get-by-os -macosx "0" -win "53" -linux "0"] | verify-true
get-view "Model Explorer" | get-tree | select "NeuesProjekt/Player" | double-click
with [get-editor Player] {
get-editbox -after [get-label Name] | set-text h
close
}
get-view "Model Explorer" | get-tree | select NeuesProjekt
get-view "Model Explorer" | get-tree | get-item NeuesProjekt
| get-property "getImage().getImageData().transparentPixel" | equals "-1" | verify-true
get-view "Model Explorer" | get-tree | select NeuesProjekt | get-menu Commit | click
get-window Commit | get-button OK | click
get-view "Model Explorer" | get-tree | get-item NeuesProjekt
| get-property "getImage().getImageData().transparentPixel" | equals [get-by-os -macosx "0" -win "53" -linux "0"] | verify-true
with [get-view "Model Explorer" | get-tree] {
select "NeuesProjekt/Player h" | get-menu "Delete Model Element" | click
select [get-item "TestProjectSecondCheckout/Tournament Pro/Matchup" | get-item Game -index 1]
| get-menu "Delete Model Element" | click
select "TestProject/Tournament Pro" | get-menu "Delete Model Element" | click
select "TestProjectThirdCheckout/Tournament Pro" | get-menu "Delete Model Element" | click
select TestProjectSecondCheckout | get-menu "Revert All Operations" | click
}
get-window Confirmation | get-button Yes | click
get-window Revert | get-button OK | click
get-view "Model Explorer" | get-tree | select TestProjectThirdCheckout | get-menu "Revert All Operations" | click
get-window Confirmation | get-button Yes | click
get-window Revert | get-button OK | click
with [get-view "Model Explorer" | get-tree] {
get-item TestProjectThirdCheckout | get-property "getImage().getImageData().transparentPixel" | equals [get-by-os -macosx "0" -win "53" -linux "0"]
| verify-true
get-item NeuesProjekt | get-property "getImage().getImageData().transparentPixel" | equals "-1" | verify-true
get-item TestProjectSecondCheckout | get-property "getImage().getImageData().transparentPixel" | equals [get-by-os -macosx "0" -win "53" -linux "0"]
| verify-true
get-item TestProject | get-property "getImage().getImageData().transparentPixel" | equals "-1" | verify-true
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--