| --- Q7 testcase --- |
| Format-Version: 1.0 |
| Q7-vendor: www.xored.com/q7 |
| Contexts: _rr2EEFpSEeKcnaHGSt8OwA,_IuFcgFpZEeKcnaHGSt8OwA,_f3qEUVpSEeKcnaHGSt8OwA,__UtTgD-XEeK-yuKsz0Lang |
| Element-Name: MultiInt |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _YJbUcHXJEeK2tZkPdpUavQ |
| Save-Time: 3/2/13 3:53 PM |
| Testcase-Type: ecl |
| |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac |
| Content-Type: text/ecl |
| Entry-Name: .content |
| |
| get-view "Model Explorer" | get-tree | select "TestProject/Tournament Pro/Matchup/Game" | double-click |
| get-editor Game | get-control Any -index 39 | get-property "getChildren().length" | equals 0 | verify-true |
| get-editor Game | get-button "Add Entry" | click |
| get-editor Game | get-control Any -index 39 | get-property "getChildren().length" | equals 1 | verify-true |
| get-editor Game | get-button "Add Entry" | click |
| get-editor Game | get-control Any -index 39 | get-property "getChildren().length" | equals 2 | verify-true |
| with [get-editor Game] { |
| get-editbox -after [get-label Frames] | get-property text | equals 0 | verify-true |
| get-editbox -after [get-label Frames] -index 1 | get-property text | equals 0 | verify-true |
| } |
| get-editor Game | get-button "Create and link new Player" | click |
| get-window "New Reference Element" | get-button Cancel | click |
| with [get-editor Game] { |
| get-button "Add Entry" | click |
| get-editbox -after [get-label Frames] | set-text 1 |
| get-editbox -after [get-label Frames] -index 1 | set-text 2 |
| get-editbox -after [get-label Frames] -index 2 | set-text 3 |
| } |
| get-editor Game | close |
| with [get-view "Model Explorer" | get-tree] { |
| select "TestProject/Tournament Pro/Matchup/Game" | double-click |
| select "TestProject/Tournament Pro/Matchup/Game" | double-click |
| select "TestProject/Tournament Pro/Matchup" | double-click |
| } |
| get-editor Game | click |
| with [get-editor Game] { |
| get-control Any -index 39 | get-property "getChildren().length" | equals 3 | verify-true |
| get-editbox -after [get-label Frames] | get-property text | equals 1 | verify-true |
| get-editbox -after [get-label Frames] -index 1 | get-property text | equals 2 | verify-true |
| get-editbox -after [get-label Frames] -index 2 | get-property text | equals 3 | verify-true |
| } |
| get-editor Game | get-button -after [get-label Frames] -index 8 | click |
| with [get-editor Game] { |
| get-editbox -after [get-label Frames] | get-property text | equals 1 | verify-true |
| get-editbox -after [get-label Frames] -index 1 | get-property text | equals 3 | verify-true |
| get-editbox -after [get-label Frames] -index 2 | get-property text | equals 2 | verify-true |
| } |
| with [get-editor Game] { |
| get-button -after [get-label Frames] -index 5 | click |
| get-button -after [get-label Frames] -index 8 | click |
| } |
| with [get-editor Game] { |
| get-editbox -after [get-label Frames] | get-property text | equals 3 | verify-true |
| get-editbox -after [get-label Frames] -index 1 | get-property text | equals 2 | verify-true |
| get-editbox -after [get-label Frames] -index 2 | get-property text | equals 1 | verify-true |
| } |
| get-editor Matchup | click |
| with [get-editor Game] { |
| click |
| get-button "Add Entry" | click |
| get-editbox -after [get-label Frames] -index 3 | set-text 99999999999999999999 |
| get-editbox -after [get-label Frames] -index 2 | click-text 2 |
| } |
| with [get-editor Game | get-editbox -after [get-label Frames] -index 3] { |
| get-property "decorators.visible" -index 0 | equals true | verify-true |
| get-property "decorators.description" -index 0 | equals "Please enter a value between [-2,147,483,648] and [2,147,483,647] and with a similar format." | verify-true |
| } |
| get-editor Game | close |
| get-view "Model Explorer" | get-tree | select "TestProject/Tournament Pro/Matchup/Game" | double-click |
| get-editor Game | get-editbox -after [get-label Frames] -index 3 | get-property text | equals 0 | verify-true |
| with [get-editor Game] { |
| get-button -after [get-label Frames] -index 4 | click |
| get-button -after [get-label Frames] -index 1 | click |
| } |
| with [get-editor Game] { |
| get-control Any -index 39 | get-property "getChildren().length" | equals 2 | verify-true |
| get-editbox -after [get-label Frames] | get-property text | equals 1 | verify-true |
| get-editbox -after [get-label Frames] -index 1 | get-property text | equals 0 | verify-true |
| } |
| with [get-editor Game] { |
| get-button -after [get-label Frames] -index 4 | click |
| get-button -after [get-label Frames] -index 1 | click |
| } |
| get-editor Game | get-control Any -index 39 | get-property "getChildren().length" | equals 0 | verify-true |
| get-editor Game | close |
| get-editor Matchup | close |
| with [get-view "Model Explorer" | get-tree] { |
| select "TestProjectSecondCheckOut/League America/Player Jonas" | double-click |
| select "TestProjectSecondCheckOut/Tournament Pro/Matchup/Game" | double-click |
| } |
| get-editor "Player Jonas" | close |
| with [get-editor Game] { |
| with [get-button "Add Entry"] { |
| click |
| click |
| click |
| click |
| } |
| get-editbox -after [get-label Frames] | set-text 1 |
| get-editbox -after [get-label Frames] -index 1 | set-text 2 |
| get-editbox -after [get-label Frames] -index 2 | set-text 3 |
| get-editbox -after [get-label Frames] -index 3 | set-text A |
| close |
| } |
| get-view "Model Explorer" | get-tree | select TestProjectSecondCheckOut | get-menu Commit | click |
| get-window Commit | get-button OK | click |
| |
| with [get-view "Model Explorer" | get-tree] { |
| select "TestProject/Tournament Pro/Matchup/Game" | double-click |
| select TestProject | get-menu Update | click |
| } |
| get-window Update | get-button OK | click |
| with [get-editor Game] { |
| get-editbox -after [get-label Frames] | get-property text | equals 1 | verify-true |
| get-editbox -after [get-label Frames] -index 1 | get-property text | equals 2 | verify-true |
| get-editbox -after [get-label Frames] -index 2 | get-property text | equals 3 | verify-true |
| get-editbox -after [get-label Frames] -index 3 | get-property text | equals 0 | verify-true |
| } |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |