diff options
author | Johannes Faltermeier | 2017-10-18 14:49:25 +0000 |
---|---|---|
committer | Johannes Faltermeier | 2017-10-18 15:05:17 +0000 |
commit | 46b302979adada22f1e279680d97a77e001846b0 (patch) | |
tree | 69cb66364f9934af1b74f9f3632d14f87fdf79cd | |
parent | 1b2b02192dda3ced40b43175f04913de88b96322 (diff) | |
download | org.eclipse.emf.edapt-46b302979adada22f1e279680d97a77e001846b0.tar.gz org.eclipse.emf.edapt-46b302979adada22f1e279680d97a77e001846b0.tar.xz org.eclipse.emf.edapt-46b302979adada22f1e279680d97a77e001846b0.zip |
Bug 526001 - Tooling should give hints if a release is required
* RCPTT Tests
Change-Id: I03e25c57b599bc68b121fc015824837e42f2ddcf
Signed-off-by: Johannes Faltermeier <jfaltermeier@eclipsesource.com>
5 files changed, 64 insertions, 13 deletions
diff --git a/tests/org.eclipse.emf.edapt.rcptt/AllTests.suite b/tests/org.eclipse.emf.edapt.rcptt/AllTests.suite index 9ea7c5e..29f1f5c 100644 --- a/tests/org.eclipse.emf.edapt.rcptt/AllTests.suite +++ b/tests/org.eclipse.emf.edapt.rcptt/AllTests.suite @@ -4,8 +4,8 @@ Element-Name: AllTests Element-Type: testsuite Element-Version: 2.0 Id: _D99h4AkREeWg38ag0nnchw -Runtime-Version: 1.5.5.201503020312 -Save-Time: 6/2/15 12:21 PM +Runtime-Version: 2.2.0.201706152316 +Save-Time: 10/18/17 4:59 PM ------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8 Content-Type: text/testcase @@ -18,5 +18,6 @@ _x_NzcAkHEeWg38ag0nnchw // kind: 'test' name: 'Use Operation And Release' path: _eBMMgAkMEeWg38ag0nnchw // kind: 'test' name: 'Select Change' path: 'change_documentation/Select Change.test' _x1puIAkPEeWg38ag0nnchw // kind: 'test' name: 'Select EElement' path: 'element_changes/Select EElement.test' _spU9wAkQEeWg38ag0nnchw // kind: 'test' name: 'Select Change' path: 'reconstruction_view/Select Change.test' +_aedIALQUEee_6uXiZb2DRg // kind: 'test' name: 'Breaking change indication' path: 'general/Breaking change indication.test' ------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8-- diff --git a/tests/org.eclipse.emf.edapt.rcptt/change_documentation/Select Change.test b/tests/org.eclipse.emf.edapt.rcptt/change_documentation/Select Change.test index fd8d85a..ea905dd 100644 --- a/tests/org.eclipse.emf.edapt.rcptt/change_documentation/Select Change.test +++ b/tests/org.eclipse.emf.edapt.rcptt/change_documentation/Select Change.test @@ -6,8 +6,8 @@ Element-Type: testcase Element-Version: 3.0 External-Reference: Id: _eBMMgAkMEeWg38ag0nnchw -Runtime-Version: 1.5.5.201503020312 -Save-Time: 6/2/15 12:10 PM +Runtime-Version: 2.2.0.201706152316 +Save-Time: 10/18/17 4:52 PM Testcase-Type: ecl ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac @@ -50,7 +50,7 @@ with [get-editor "task.ecore" | get-tree] { get-item "platform:\\/resource\\/org.eclipse.emf.ecp.makeithappen.model\\/model\\/task.ecore/task/TaskDescription2/name2 : EString" | click key-type "M1+s" - get-item "platform:\\/resource\\/org.eclipse.emf.ecp.makeithappen.model\\/model\\/task.history/History/Release \\(not yet released\\)/Operation \"Rename\" has been executed \\(element = {TaskDescription2}, name = \"TaskDescription2\"\\)" + get-item "platform:\\/resource\\/org.eclipse.emf.ecp.makeithappen.model\\/model\\/task.history/History/Release \\(not yet released and potentially contains breaking changes\\)/Operation \"Rename\" has been executed \\(element = {TaskDescription2}, name = \"TaskDescription2\"\\)" | click } get-view "Change Documentation" | get-canvas | get-property text | equals "Operation \"Rename\"\r\n" @@ -58,7 +58,7 @@ get-view "Change Documentation" | get-canvas | get-property text | equals "Opera + "element: The metamodel element to be renamed\r\n" + "name: The new name\r\n" | verify-true get-editor "task.ecore" | get-tree - | get-item "platform:\\/resource\\/org.eclipse.emf.ecp.makeithappen.model\\/model\\/task.history/History/Release \\(not yet released\\)/name of {name2} has been changed from \"name\" to \"name2\"" + | get-item "platform:\\/resource\\/org.eclipse.emf.ecp.makeithappen.model\\/model\\/task.history/History/Release \\(not yet released and potentially contains breaking changes\\)/name of {name2} has been changed from \"name\" to \"name2\"" | click get-view "Change Documentation" | get-canvas | get-property text | equals "Primitive \"Set\"\r\n" + "In the metamodel, the value of an element's feature is changed. This primitive only applies to single-valued features which are either attribute or cross reference.\r\n" diff --git a/tests/org.eclipse.emf.edapt.rcptt/general/Breaking change indication.test b/tests/org.eclipse.emf.edapt.rcptt/general/Breaking change indication.test new file mode 100644 index 0000000..21fdb06 --- /dev/null +++ b/tests/org.eclipse.emf.edapt.rcptt/general/Breaking change indication.test @@ -0,0 +1,50 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _bma0MAkBEeWg38ag0nnchw,_CqPtsAkFEeWg38ag0nnchw,_NFFKUAkEEeWg38ag0nnchw,_3TFIgAkBEeWg38ag0nnchw,_rv0HYAkGEeWg38ag0nnchw,_qYMXsAkHEeWg38ag0nnchw +Element-Name: Breaking change indication +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _aedIALQUEee_6uXiZb2DRg +Runtime-Version: 2.2.0.201706152316 +Save-Time: 10/18/17 4:58 PM +Testcase-Type: ecl + +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +get-editor "task.ecore" | get-tree + | select "platform:\\/resource\\/org.eclipse.emf.ecp.makeithappen.model\\/model\\/task.ecore/task" +get-view "Operation Browser - task.ecore" | get-table | select "Create Class" +get-view "Operation Browser - task.ecore" | get-table -after [get-label "Parameters:"] | select name +get-view "Operation Browser - task.ecore" | get-table -after [get-label "Parameters:"] | select name + | activate-cell-edit -column 1 -type MouseClickSelection +get-view "Operation Browser - task.ecore" | get-table -after [get-label "Parameters:"] | get-editbox | set-text F +get-view "Operation Browser - task.ecore" | get-table -after [get-label "Parameters:"] | get-editbox | set-text Fo +get-view "Operation Browser - task.ecore" | get-table -after [get-label "Parameters:"] | get-editbox | set-text Foo +get-view "Operation Browser - task.ecore" | get-table -after [get-label "Parameters:"] | apply-cell-edit +get-view "Operation Browser - task.ecore" | get-table -after [get-label "Parameters:"] | apply-cell-edit +get-view "Operation Browser - task.ecore" | get-table -after [get-label "Parameters:"] | deactivate-cell-edit +get-view "Operation Browser - task.ecore" | get-button Execute | click +get-editor "task.ecore" | get-tree | get-item + -path "platform:\\/resource\\/org.eclipse.emf.ecp.makeithappen.model\\/model\\/task.history/History/Release \\(not yet released\\)" + | get-property caption | equals "Release (not yet released)" | verify-true +get-editor "task.ecore" | get-tree | get-item + -path "platform:\\/resource\\/org.eclipse.emf.ecp.makeithappen.model\\/model\\/task.ecore/task/Task" | click +get-view "Operation Browser - task.ecore" | get-table | select Rename +get-view "Operation Browser - task.ecore" | get-table -after [get-label "Parameters:"] | select name +get-view "Operation Browser - task.ecore" | get-table -after [get-label "Parameters:"] | select name + | activate-cell-edit -column 1 -type MouseClickSelection +get-view "Operation Browser - task.ecore" | get-table -after [get-label "Parameters:"] | get-editbox | click-text 1 5 +get-view "Operation Browser - task.ecore" | get-table -after [get-label "Parameters:"] | get-editbox | click-text 5 +get-view "Operation Browser - task.ecore" | get-table -after [get-label "Parameters:"] | get-editbox | set-text Task2 +get-view "Operation Browser - task.ecore" | get-table -after [get-label "Parameters:"] | apply-cell-edit +get-view "Operation Browser - task.ecore" | get-table -after [get-label "Parameters:"] | apply-cell-edit +get-view "Operation Browser - task.ecore" | get-table -after [get-label "Parameters:"] | deactivate-cell-edit +get-view "Operation Browser - task.ecore" | get-button Execute | click +get-editor "task.ecore" | get-tree | get-item + -path "platform:\\/resource\\/org.eclipse.emf.ecp.makeithappen.model\\/model\\/task.history/History/Release \\(not yet released and potentially contains breaking changes\\)" + | get-property caption | equals "Release (not yet released and potentially contains breaking changes)" | verify-true +get-editor "task.ecore" | get-tree | key-type "M1+s" +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/tests/org.eclipse.emf.edapt.rcptt/operation_browser/Use Operation And Release.test b/tests/org.eclipse.emf.edapt.rcptt/operation_browser/Use Operation And Release.test index c5b0429..df9a84d 100644 --- a/tests/org.eclipse.emf.edapt.rcptt/operation_browser/Use Operation And Release.test +++ b/tests/org.eclipse.emf.edapt.rcptt/operation_browser/Use Operation And Release.test @@ -6,8 +6,8 @@ Element-Type: testcase Element-Version: 3.0 External-Reference: Id: _x_NzcAkHEeWg38ag0nnchw -Runtime-Version: 1.5.5.201503020312 -Save-Time: 6/2/15 11:38 AM +Runtime-Version: 2.2.0.201706152316 +Save-Time: 10/18/17 4:48 PM Testcase-Type: ecl ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac @@ -49,11 +49,11 @@ with [get-editor "task.ecore" | get-tree] { key-type "M1+s" } with [get-editor "task.ecore" | get-tree] { - get-item "platform:\\/resource\\/org.eclipse.emf.ecp.makeithappen.model\\/model\\/task.history/History/Release \\(not yet released\\)/Operation \"Rename\" has been executed \\(element = {TaskDescription}, name = \"TaskDescription\"\\)" + get-item "platform:\\/resource\\/org.eclipse.emf.ecp.makeithappen.model\\/model\\/task.history/History/Release \\(not yet released and potentially contains breaking changes\\)/Operation \"Rename\" has been executed \\(element = {TaskDescription}, name = \"TaskDescription\"\\)" | get-property caption | equals "Operation \"Rename\" has been executed (element = {TaskDescription}, name = \"TaskDescription\")" | verify-true - get-item "platform:\\/resource\\/org.eclipse.emf.ecp.makeithappen.model\\/model\\/task.history/History/Release \\(not yet released\\)/Operation \"Rename\" has been executed \\(element = {TaskDescription}, name = \"TaskDescription\"\\)" + get-item "platform:\\/resource\\/org.eclipse.emf.ecp.makeithappen.model\\/model\\/task.history/History/Release \\(not yet released and potentially contains breaking changes\\)/Operation \"Rename\" has been executed \\(element = {TaskDescription}, name = \"TaskDescription\"\\)" | get-property index | equals 0 | verify-true } get-view "Operation Browser - task.ecore" | get-button Release | click diff --git a/tests/org.eclipse.emf.edapt.rcptt/reconstruction_view/Select Change.test b/tests/org.eclipse.emf.edapt.rcptt/reconstruction_view/Select Change.test index 2f7bffe..fcd7585 100644 --- a/tests/org.eclipse.emf.edapt.rcptt/reconstruction_view/Select Change.test +++ b/tests/org.eclipse.emf.edapt.rcptt/reconstruction_view/Select Change.test @@ -6,8 +6,8 @@ Element-Type: testcase Element-Version: 3.0 External-Reference: Id: _spU9wAkQEeWg38ag0nnchw -Runtime-Version: 1.5.5.201503020312 -Save-Time: 6/2/15 12:20 PM +Runtime-Version: 2.2.0.201706152316 +Save-Time: 10/18/17 4:50 PM Testcase-Type: ecl ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac @@ -28,7 +28,7 @@ with [get-view Properties | get-tree] { with [get-editor "task.ecore" | get-tree] { get-item "platform:\\/resource\\/org.eclipse.emf.ecp.makeithappen.model\\/model\\/task.ecore" | click key-type "M1+s" - get-item "platform:\\/resource\\/org.eclipse.emf.ecp.makeithappen.model\\/model\\/task.history/History/Release \\(not yet released\\)/name of {TaskDescription2} has been changed from \"TaskDescription\" to \"TaskDescription2\"" + get-item "platform:\\/resource\\/org.eclipse.emf.ecp.makeithappen.model\\/model\\/task.history/History/Release \\(not yet released and potentially contains breaking changes\\)/name of {TaskDescription2} has been changed from \"TaskDescription\" to \"TaskDescription2\"" | click } with [get-view "Reconstruction View"] { |