Skip to content

Commit

Permalink
[2211] Add RCPTT and JUnit for REC/RPL creation on a fragmented model
Browse files Browse the repository at this point in the history
referencing a library

- Add RCPTT
- Add Junit

Bug: 2211
Change-Id: Ia8dcd2cca4e0c09a4961fad91b222ec8cfbc7465
Signed-off-by: Sandu Postaru <sandu.postaru@thalesgroup.com>
  • Loading branch information
sandupostaru authored and pdulth committed Oct 2, 2018
1 parent e78dc7b commit 3221e75
Show file tree
Hide file tree
Showing 42 changed files with 5,415 additions and 5 deletions.
7 changes: 4 additions & 3 deletions tests/plugins/org.polarsys.capella.test.rcptt/AllTests.suite
Expand Up @@ -5,8 +5,8 @@ Element-Type: testsuite
Element-Version: 2.0
Id: _H2g9YMEUEeWqb6y2_gGIKQ
Manually-Ordered: true
Runtime-Version: 2.2.0.201705230341
Save-Time: 9/25/18 10:34 AM
Runtime-Version: 2.3.0.201806262310
Save-Time: 10/1/18 1:55 PM

------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8
Content-Type: text/testcase
Expand Down Expand Up @@ -36,7 +36,6 @@ _GSPGkK6TEee2vO1UksePLw // kind: 'test' name: 'SequenceMessageProtocol' path: 'I
_tEBy8KkGEee0yuaysMB3Rg // kind: 'test' name: 'AccessPolicyRecRpl' path: 'Library/AccessPolicyRecRpl.test'
_vh5p8KkOEee0yuaysMB3Rg // kind: 'test' name: 'CloseDelete' path: 'Library/CloseDelete.test'
_yKF9QK86Eee2vO1UksePLw // kind: 'test' name: 'TriggerEvent' path: 'ModeAndState/TriggerEvent.test'
_QblmIKj2Eee0yuaysMB3Rg // kind: 'test' name: 'RecRpl' path: 'RecRpl/RecRpl.test'
_T-55YMCcEeidDq4eRTARFA // kind: 'test' name: 'TransitionUI' path: 'Transition/TransitionUI.test'
_GJay8KkbEee0yuaysMB3Rg // kind: 'test' name: 'CommandConfigurability' path: 'ValidationProfile/CommandConfigurability.test'
_4W6WAKnCEee0yuaysMB3Rg // kind: 'test' name: 'ProjectConfiguration' path: 'ValidationProfile/ProjectConfiguration.test'
Expand All @@ -56,5 +55,7 @@ _x3yKIJrrEeiYyJV_j_AxhQ // kind: 'test' name: 'NavigationMenu' path: 'Menu/Navig
_wlapMHoDEeiaPKaUZLw7uw // kind: 'test' name: 'RepresentationElementsOfInterest' path: 'RepresentationElementsOfInterest.test'
_vpoagHrAEeiFH4aXYyDXfw // kind: 'test' name: 'RepresentationPackage' path: 'RepresentationPackage.test'
_d6NhQLEMEeiU1LYbc1uWDg // kind: 'test' name: 'DoubleClickOnRepresentation' path: 'SemanticBrowser/DoubleClickOnRepresentation.test'
_QblmIKj2Eee0yuaysMB3Rg // kind: 'test' name: 'RecRpl' path: 'RecRpl/RecRpl.test'
_g1Gg0MVfEei8vKj86crSrA // kind: 'test' name: 'RecRplFragmentedModel' path: 'RecRpl/FragmentedModel.test'

------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8--
@@ -0,0 +1,187 @@
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _QY_SsMVqEei8vKj86crSrA
Element-Name: RecRplFragmentedModel
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _g1Gg0MVfEei8vKj86crSrA
Runtime-Version: 2.3.0.201806262310
Save-Time: 10/1/18 1:57 PM
Testcase-Type: ecl

------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Content-Type: text/plain
Entry-Name: .description

Tests the content of the "location" area for a fragmented model.
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content

////////////////////////// check EPBS Architecture
with [get-view "Capella Project Explorer" | get-tree] {
select "frag-model/frag-model.aird" | double-click
select "frag-model/frag-model.aird/frag-model/EPBS Architecture" | get-menu
-path "REC \\/ RPL/Instantiate RPL from REC" | click
}

// invoke the REC/RPL dialog
with [get-window "Replicable Elements"] {
get-group "" | get-button "Browse available elements" | click
with [get-window "Selection Dialog"] {
get-group "Select a name to find" | get-editbox -after [get-label "? = any character, * = any string"]
| set-focus
get-tree | select "frag-library/frag-library/REC Catalog/LA_REC" | double-click
}
}

// check the dialogs
with [get-window "Replicable Elements" | get-tree -index 1] {
get-property "getItems().TreeItem[0].getText()" | equals "frag-model" | verify-true
get-property "getItems().TreeItem[0].getItemCount()" | equals 4 | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[0].getText()" | equals "Library Dependencies" | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[0].getItemCount()" | equals 1 | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[1].getText()" | equals ProgressStatus | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[1].getItemCount()" | equals 1 | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[2].getText()"
| equals "[projectApproach] SingletonComponents" | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[2].getItemCount()" | equals 0 | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[3].getText()" | equals "frag-model" | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[3].getItemCount()" | equals 1 | verify-true
}
get-window "Replicable Elements" | get-button Cancel | click




////////////////////////// check Physical Architecture
get-view "Capella Project Explorer" | get-tree | select "frag-model/frag-model.aird/frag-model/Physical Architecture"
| get-menu -path "REC \\/ RPL/Instantiate RPL from REC" | click

// invoke the REC/RPL dialog
with [get-window "Replicable Elements"] {
get-group "" | get-button "Browse available elements" | click
with [get-window "Selection Dialog"] {
get-group "Select a name to find" | get-editbox -after [get-label "? = any character, * = any string"]
| set-focus
get-tree | select "frag-library/frag-library/REC Catalog/PA_REC" | double-click
}
}

// check the dialogs
with [get-window "Replicable Elements" | get-tree -index 1] {
get-property "getItems().TreeItem[0].getText()" | equals "frag-model" | verify-true
get-property "getItems().TreeItem[0].getItemCount()" | equals 4 | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[0].getText()" | equals "Library Dependencies" | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[0].getItemCount()" | equals 1 | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[1].getText()" | equals ProgressStatus | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[1].getItemCount()" | equals 1 | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[2].getText()"
| equals "[projectApproach] SingletonComponents" | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[2].getItemCount()" | equals 0 | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[3].getText()" | equals "frag-model" | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[3].getItemCount()" | equals 1 | verify-true
}
get-window "Replicable Elements" | get-button Cancel | click




////////////////////////// check Logical Architecture
get-view "Capella Project Explorer" | get-tree | select "frag-model/frag-model.aird/frag-model/Logical Architecture"
| get-menu -path "REC \\/ RPL/Instantiate RPL from REC" | click

// invoke the REC/RPL dialog
with [get-window "Replicable Elements"] {
get-group "" | get-button "Browse available elements" | click
with [get-window "Selection Dialog"] {
get-group "Select a name to find" | get-editbox -after [get-label "? = any character, * = any string"]
| set-focus
get-tree | select "frag-library/frag-library/REC Catalog/LA_REC" | double-click
}
}

// check the dialogs
with [get-window "Replicable Elements" | get-tree -index 1] {
get-property "getItems().TreeItem[0].getText()" | equals "frag-model" | verify-true
get-property "getItems().TreeItem[0].getItemCount()" | equals 4 | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[0].getText()" | equals "Library Dependencies" | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[0].getItemCount()" | equals 1 | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[1].getText()" | equals ProgressStatus | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[1].getItemCount()" | equals 1 | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[2].getText()"
| equals "[projectApproach] SingletonComponents" | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[2].getItemCount()" | equals 0 | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[3].getText()" | equals "frag-model" | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[3].getItemCount()" | equals 1 | verify-true
}
get-window "Replicable Elements" | get-button Cancel | click




////////////////////////// check System Analysys
get-view "Capella Project Explorer" | get-tree | select "frag-model/frag-model.aird/frag-model/System Analysis"
| get-menu -path "REC \\/ RPL/Instantiate RPL from REC" | click

// invoke the REC/RPL dialog
with [get-window "Replicable Elements"] {
get-group "" | get-button "Browse available elements" | click
with [get-window "Selection Dialog"] {
get-group "Select a name to find" | get-editbox -after [get-label "? = any character, * = any string"]
| set-focus
get-tree | select "frag-library/frag-library/REC Catalog/SA_REC" | double-click
}
}

// check the dialogs
with [get-window "Replicable Elements" | get-tree -index 1] {
get-property "getItems().TreeItem[0].getText()" | equals "frag-model" | verify-true
get-property "getItems().TreeItem[0].getItemCount()" | equals 4 | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[0].getText()" | equals "Library Dependencies" | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[0].getItemCount()" | equals 1 | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[1].getText()" | equals ProgressStatus | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[1].getItemCount()" | equals 1 | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[2].getText()"
| equals "[projectApproach] SingletonComponents" | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[2].getItemCount()" | equals 0 | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[3].getText()" | equals "frag-model" | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[3].getItemCount()" | equals 1 | verify-true
}
get-window "Replicable Elements" | get-button Cancel | click




////////////////////////// check Operational Analysys
get-view "Capella Project Explorer" | get-tree | select "frag-model/frag-model.aird/frag-model/Operational Analysis"
| get-menu -path "REC \\/ RPL/Instantiate RPL from REC" | click

// invoke the REC/RPL dialog
with [get-window "Replicable Elements"] {
get-group "" | get-button "Browse available elements" | click
with [get-window "Selection Dialog"] {
get-group "Select a name to find" | get-editbox -after [get-label "? = any character, * = any string"]
| set-focus
get-tree | select "frag-library/frag-library/REC Catalog/OA_REC" | double-click
}
}

// check the dialogs
with [get-window "Replicable Elements" | get-tree -index 1] {
get-property "getItems().TreeItem[0].getText()" | equals "frag-model" | verify-true
get-property "getItems().TreeItem[0].getItemCount()" | equals 4 | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[0].getText()" | equals "Library Dependencies" | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[0].getItemCount()" | equals 1 | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[1].getText()" | equals ProgressStatus | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[1].getItemCount()" | equals 1 | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[2].getText()"
| equals "[projectApproach] SingletonComponents" | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[2].getItemCount()" | equals 0 | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[3].getText()" | equals "frag-model" | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[3].getItemCount()" | equals 1 | verify-true
}
get-window "Replicable Elements" | get-button Cancel | click
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--
@@ -0,0 +1,23 @@
--- RCPTT testcase ---
Format-Version: 1.0
Context-Type: org.eclipse.rcptt.ctx.workspace
Element-Name: ImportFragModelAndLib
Element-Type: context
Element-Version: 2.0
Id: _QY_SsMVqEei8vKj86crSrA
Runtime-Version: 2.3.0.201806262310
Save-Time: 10/1/18 1:12 PM

------=_.q7.content-3d2e0690-ce48-3609-83e0-c704d49f1eaf
Content-Type: q7/binary
Entry-Name: .q7.content

UEsDBBQACAgIAAAAIQAAAAAAAAAAAAAAAAAIAAkALmNvbnRlbnRVVAUAAQAAAAClkstOwzAQRfdI/IPl
NbWBBaqiBFRCkSoaCah4rSrXmaZp/Qj20KR/j9O0RawqxM5jn7l35srxTaMVWYPzpTUJvWDnlICRNi9N
kdAvnPf69Ob69CS2rmAgVVl5YE5WiExiw2rrVr4SEqK3/Sm1BqFB0ugyOuhetrrByfgo3Cd0gVhFnNd1
zawuWBDn79lojxzxOrTvmbZ9y/HA8QNHiRE60CNdWYf3ThSZzUENTD4uZ5SUeUKnTx/Tic9eP4dQ9tcP
y/6VdBM3CI+FsQ7y202qQLhHgQgu7JGKCpQSqdVatDIGxrZgC9TqjGR3w2donXb1ixcFMGULGvIjJJZt
MAa3RSgrZ5cgMWis/G7QeRixp8qZE25DyQ5IaBtHZZVwfuOZ7CZgCB67cAIpcJFQ3S7n+S8Rfsxt2/Q/
r06ic4r5z5Yx/+ufCU3fUEsHCNotn/dIAQAAkAIAAFBLAQIUABQACAgIAAAAIQDaLZ/3SAEAAJACAAAI
AAkAAAAAAAAAAAAAAAAAAAAuY29udGVudFVUBQABAAAAAFBLBQYAAAAAAQABAD8AAACHAQAAAAA=
------=_.q7.content-3d2e0690-ce48-3609-83e0-c704d49f1eaf--
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>frag-library</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
<nature>org.polarsys.capella.library.nature</nature>
</natures>
</projectDescription>
@@ -0,0 +1,2 @@
A REC library project defining a REC for each architecture layer.
This project is to be used in combination with the 'frag-model' project.
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata:Metadata xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:metadata="http://www.polarsys.org/kitalpha/ad/metadata/1.0.0" id="_z4a4YML8Eei03oqhw1GQCA">
<viewpointReferences id="_z9iB4ML8Eei03oqhw1GQCA" vpId="org.polarsys.capella.core.viewpoint" version="1.3.0"/>
</metadata:Metadata>

0 comments on commit 3221e75

Please sign in to comment.