Skip to content

Commit

Permalink
[Test] Migrate RCPTT tests to Oxygen
Browse files Browse the repository at this point in the history
Change-Id: I983e4deda9ed1d8481cf45dac2a8751390830959
Signed-off-by: Tu Ton <minhtutonthat@gmail.com>
  • Loading branch information
minhtutonthat committed Jun 26, 2018
1 parent bc7af0b commit b08ca8c
Show file tree
Hide file tree
Showing 20 changed files with 113 additions and 121 deletions.
Expand Up @@ -6,8 +6,8 @@ Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _52c24PqOEeausLS47mMhRA
Runtime-Version: 2.3.0.201712190725
Save-Time: 1/23/18 3:36 PM
Runtime-Version: 2.3.0.201803290557
Save-Time: 6/25/18 3:43 PM
Testcase-Type: ecl

------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Expand Down Expand Up @@ -46,10 +46,10 @@ get-window "New System Data Flow Blank" | get-button OK | click
get-editor "[SDFB] Root System Function" | get-diagram -index 1 | get-edit-part -name "[SDFB] Root System Function"
get-tab-folder -index 2 | get-tab-item "*test" | click
get-editor test | close
get-window "Save Resource" | get-button No | click
get-window "Save Resource" | get-button "Don't Save" | click
// Open the Activity Explorer
get-view "Capella Project Explorer" | get-tree | select "test/*test.aird" | get-menu "Open Activity Explorer" | click
// Close the Activity Explorer
get-editor test | close
get-window "Save Resource" | get-button No | click
get-window "Save Resource" | get-button "Don't Save" | click
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--
Expand Up @@ -5,8 +5,8 @@ Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _oVQaQMN9EeWBxdbwkOo7Xg
Runtime-Version: 2.3.0.201712190725
Save-Time: 1/23/18 2:30 PM
Runtime-Version: 2.3.0.201803290557
Save-Time: 6/25/18 3:35 PM
Testcase-Type: ecl

------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Expand Down Expand Up @@ -39,7 +39,7 @@ with [get-window Preferences] {
select "Operational Analysis"
get-item "Operational Analysis" | uncheck
}
get-button OK | click
get-button "Apply and Close" | click
}
get-view "Capella Project Explorer" | get-tree | select "Project/Project.aird" | get-menu "Open Session" | click
get-view "Capella Project Explorer" | get-tree | select "Project/Project.aird" | get-menu "Open Activity Explorer"
Expand All @@ -57,7 +57,7 @@ with [get-window Preferences] {
}
get-button Apply | click
}
get-window Preferences | get-button OK | click
get-window Preferences | get-button "Apply and Close" | click
with [get-editor "Project" | get-tab-folder] {
get-tab-item "Operational Analysis" | click
}
Expand Down
Expand Up @@ -6,8 +6,8 @@ Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _7NrmAK8sEee2vO1UksePLw
Runtime-Version: 2.1.0.201606221726
Save-Time: 3/21/18 2:31 PM
Runtime-Version: 2.3.0.201803290557
Save-Time: 6/25/18 4:47 PM
Testcase-Type: ecl

------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Expand Down Expand Up @@ -112,14 +112,12 @@ with [get-editor "[IS] Capability 1"] {
mouse-move 1012 434 -height 663 -width 1042
}
with [get-palette] {
get-palette-entry "Scenario Elements" | mouse-move 11 373 -height 679 -width 125
with [get-palette-entry "Constraints"] {
mouse-move 9 13 button1 -height 23 -width 240
mouse-press 9 13 button1 -height 23 -width 240
mouse-release 9 13 button1 524288 -height 23 -width 240
mouse-move 10 13 -height 71 -width 240
}
get-palette-entry "ConstraintElement" | mouse-move 43 22 -height 23 -width 240
with [get-palette-entry "Constraints" -index 1] {
mouse-move 42 8 button1 -height 23 -width 240
mouse-press 42 8 button1 -height 23 -width 240
Expand Down Expand Up @@ -177,15 +175,9 @@ with [get-editor "[IS] Capability 1" | get-diagram -index 1 | get-edit-part -nam

//With tool Insert/Remove ExchangeContext, remove it

with [get-view "Fast Linker" | get-canvas] {
mouse-enter 16 168 -height 272 -width 392
mouse-move 344 232 -height 272 -width 392
mouse-exit 410 284 -height 272 -width 392
}
with [get-editor "[IS] Capability 1"] {
get-diagram -index 1 | get-edit-part -name "[IS] Capability 1" | mouse-move 1037 321 -height 663 -width 1042
get-diagram -index 1 | get-edit-part -name "[IS] Capability 1"
with [get-palette] {
get-palette-entry "Allocated Function" | mouse-move 30 4 -height 23 -width 240
with [get-palette-entry "Exchange Context"] {
mouse-move 48 7 button1 -height 23 -width 240
mouse-press 48 7 button1 -height 23 -width 240
Expand Down
Expand Up @@ -6,8 +6,8 @@ Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _tEBy8KkGEee0yuaysMB3Rg
Runtime-Version: 2.1.0.201606221726
Save-Time: 3/21/18 2:32 PM
Runtime-Version: 2.3.0.201803290557
Save-Time: 6/25/18 6:03 PM
Testcase-Type: ecl

------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Expand Down Expand Up @@ -163,7 +163,7 @@ with [get-editor "[SDFB] Root System Function"] {
mouse-release 95 54 button3 2097152 -height 68 -width 148
}
}
get-menu "REC \\/ RPL/Create a REC from selection" | click
get-menu "REC \\/ RPL/Create REC/From selection..." | click
}
}

Expand Down Expand Up @@ -204,7 +204,7 @@ get-editor "[LAB] Logical System" | get-diagram -index 1 | get-edit-part -name "
| mouse-move 68 317 -height 687 -width 1042
get-view "Capella Project Explorer" | get-tree
| select "LibProjectSuper/*LibProjectSuper.aird/LibProjectSuper/Logical Architecture/Logical System/LogicalComponent 1"
| get-menu "REC \\/ RPL/Create a REC from selection" | click
| get-menu "REC \\/ RPL/Create REC/From selection..." | click
get-window "Replicable Elements" | get-button OK | click

with [get-view "Capella Project Explorer" | get-tree] {
Expand All @@ -216,7 +216,7 @@ with [get-view "Capella Project Explorer" | get-tree] {

with [get-view "Capella Project Explorer" | get-tree] {
select "MAProjectReadOnlyLib/MAProjectReadOnlyLib.aird/MAProjectReadOnlyLib/System Analysis/System Functions/Root System Function"
| get-menu "REC \\/ RPL/Instantiate a RPL from a REC" | click
| get-menu "REC \\/ RPL/Instantiate RPL from REC" | click
}
with [get-window "Replicable Elements"] {
get-group "" | get-button "Browse available elements" | click
Expand Down Expand Up @@ -257,8 +257,8 @@ get-view "Capella Project Explorer" | get-tree


get-button "View Menu" | click
get-view "Capella Project Explorer" | get-menu "Customize View..." | click
with [get-window "Available Customizations"] {
get-view "Capella Project Explorer" | get-menu "Filters and Customization..." | click
with [get-window "Filters and Customization"] {
get-tab-folder | get-tab-item Filters | click
with [get-table] {
get-item "Functional Exchanges" | uncheck
Expand Down Expand Up @@ -314,7 +314,7 @@ get-view "Capella Project Explorer" | get-tree

get-view "Capella Project Explorer" | get-tree
| select "MAProjectReadWriteLib/MAProjectReadWriteLib.aird/MAProjectReadWriteLib/Logical Architecture/Logical System"
| get-menu "REC \\/ RPL/Instantiate a RPL from a REC" | click
| get-menu "REC \\/ RPL/Instantiate RPL from REC" | click
with [get-window "Replicable Elements"] {
get-group "" | get-button "Browse available elements" | click
with [get-window "Selection Dialog"] {
Expand Down Expand Up @@ -352,7 +352,7 @@ get-view "Capella Project Explorer" | get-tree

get-view "Capella Project Explorer" | get-tree
| select "MAProjectReadWriteLib/*MAProjectReadWriteLib.aird/MAProjectReadWriteLib/System Analysis/System Functions/Root System Function"
| get-menu "REC \\/ RPL/Instantiate a RPL from a REC" | click
| get-menu "REC \\/ RPL/Instantiate RPL from REC" | click
with [get-window "Replicable Elements"] {
get-group "" | get-button "Browse available elements" | click
with [get-window "Selection Dialog"] {
Expand Down
Expand Up @@ -6,8 +6,8 @@ Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _g6DIAFpOEeaZtZLaGPKybA
Runtime-Version: 2.3.0.201712190725
Save-Time: 1/23/18 2:28 PM
Runtime-Version: 2.3.0.201803290557
Save-Time: 6/25/18 3:48 PM
Testcase-Type: ecl

------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Expand All @@ -34,8 +34,8 @@ with [get-window "Migration of 'previous_version'"] {
// Unhide AFM resources
get-view "Capella Project Explorer" | get-tree | select "previous_version/previous_version.aird"
get-button "View Menu" | click
get-view "Capella Project Explorer" | get-menu "Customize View..." | click
with [get-window "Available Customizations"] {
get-view "Capella Project Explorer" | get-menu "Filters and Customization..." | click
with [get-window "Filters and Customization"] {
get-tab-folder | get-tab-item Filters | click
get-table | get-item "\\*.afm resources" | uncheck
get-button OK | click
Expand Down
Expand Up @@ -5,8 +5,8 @@ Element-Name: InitEnvironmentForPattern
Element-Type: context
Element-Version: 2.0
Id: _56REoGYJEeaVsIgvj-cA7g
Runtime-Version: 2.3.0.201712190725
Save-Time: 1/19/18 3:28 PM
Runtime-Version: 2.3.0.201803290557
Save-Time: 6/25/18 5:10 PM

------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998
Content-Type: text/ecl
Expand All @@ -17,8 +17,8 @@ closeCatalog

// Show Functional Exchanges to be able to see them later
get-button "View Menu" | click
get-view "Capella Project Explorer" | get-menu "Customize View..." | click
with [get-window "Available Customizations"] {
get-view "Capella Project Explorer" | get-menu "Filters and Customization..." | click
with [get-window "Filters and Customization"] {
get-tab-folder | get-tab-item Filters | click
get-table | get-item "Functional Exchanges" | uncheck
get-table | get-item "Parts" | uncheck
Expand Down
Expand Up @@ -5,8 +5,8 @@ Element-Name: ValidationProfileActions
Element-Type: context
Element-Version: 2.0
Id: _ZR3fQKKHEeaAAPJPtfviTA
Runtime-Version: 2.1.0.201605312320
Save-Time: 2/22/18 1:44 PM
Runtime-Version: 2.3.0.201803290557
Save-Time: 6/25/18 5:47 PM

------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998
Content-Type: text/ecl
Expand All @@ -18,7 +18,7 @@ proc referenceConfigProject [val capellaProjectName] [val configProjectName]{
with [get-window [concat "Properties for " $capellaProjectName] ] {
get-tree | select "Capella Project References"
get-table | get-item $configProjectName | check
get-button OK | click
get-button "Apply and Close" | click
}
}

Expand All @@ -34,7 +34,7 @@ proc selectOnlyQualityConstraints {
get-item "Capella/Quality" | check
}
get-button Apply | click
get-button OK | click
get-button "Apply and Close" | click
}
}

Expand Down Expand Up @@ -98,7 +98,7 @@ proc exportEPFFileToConfigProject [val configProjectName] {
get-menu "Window/Show View/Other..." | click
with [get-window "Show View"] {
get-tree | select "General/Project Explorer"
get-button OK | click
get-button "Open" | click
}
with [get-view "Project Explorer"] {
with [get-tree] {
Expand Down Expand Up @@ -133,7 +133,7 @@ proc selectSomeConstraints_step1 {
get-item "DCOM_15 - Exchange item allocation consistency" | check
get-item "DCOM_16 - Interface Exchange item allocation consistency" | uncheck
}
get-button OK | click
get-button "Apply and Close" | click
}
}

Expand All @@ -157,7 +157,7 @@ proc selectSomeConstraints_step2 {
get-item "DCOM_15 - Exchange item allocation consistency" | uncheck
get-item "DCOM_16 - Interface Exchange item allocation consistency" | check
}
get-button OK | click
get-button "Apply and Close" | click
}
}

Expand All @@ -181,7 +181,7 @@ proc selectSomeConstraints_validation {
checkPropertyItemSelected "DCOM_15 - Exchange item allocation consistency" true
checkPropertyItemSelected "DCOM_16 - Interface Exchange item allocation consistency" true
}
get-button OK | click
get-button "Apply and Close" | click
}
}

Expand Down Expand Up @@ -332,7 +332,7 @@ proc "changePreferences" [val projectName] {
get-group Log | get-button "Enable log in Information view" | uncheck

// Quit the window
get-button OK | click
get-button "Apply and Close" | click
}
}

Expand Down Expand Up @@ -531,7 +531,7 @@ proc "restoreDefaultPreferences" [val projectName] {
get-button "Restore Defaults" | click
get-button Apply | click

get-button OK | click
get-button "Apply and Close" | click

}
}
Expand All @@ -548,7 +548,7 @@ proc checkValidationProfile {
get-item "Capella/Design" | check
}
get-button Apply | click
get-button OK | click
get-button "Apply and Close" | click
}

// Check config ConfigProject1_preferences
Expand Down
Expand Up @@ -6,21 +6,21 @@ Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _8tBCsOSeEeeF_6848eoV8Q
Runtime-Version: 2.3.0.201712190725
Save-Time: 1/23/18 2:29 PM
Runtime-Version: 2.3.0.201803290557
Save-Time: 6/26/18 10:05 AM
Testcase-Type: ecl

------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content

get-button "View Menu" | click
get-view "Capella Project Explorer" | get-menu -path "Customize View..." | click
with [get-window "Available Customizations"] {
get-view "Capella Project Explorer" | get-menu "Filters and Customization..." | click
with [get-window "Filters and Customization"] {
get-tab-folder | get-tab-item Filters | click
get-editbox -after [get-label "Select the filters to apply (matching items will be hidden):"] | set-text parts
get-table | select Parts
}
get-window "Available Customizations" | get-table | get-item -path Parts | get-property checked | equals true
get-window "Filters and Customization" | get-table | get-item -path Parts | get-property checked | equals true
| verify-true
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--
Expand Up @@ -6,25 +6,25 @@ Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _r_UEYOSgEeeF_6848eoV8Q
Runtime-Version: 2.3.0.201712190725
Save-Time: 1/23/18 2:29 PM
Runtime-Version: 2.3.0.201803290557
Save-Time: 6/26/18 10:07 AM
Testcase-Type: ecl

------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content

get-button "View Menu" | click
get-view "Capella Project Explorer" | get-menu -path "Customize View..." | click
with [get-window "Available Customizations"] {
get-view "Capella Project Explorer" | get-menu "Filters and Customization..." | click
with [get-window "Filters and Customization"] {
get-tab-folder | get-tab-item Filters | click
get-editbox -after [get-label "Select the filters to apply (matching items will be hidden):"] | set-text comp
get-table | select "Component Exchanges"
}
get-window "Available Customizations" | get-table | get-item -path "Component Exchanges" | get-property checked
get-window "Filters and Customization" | get-table | get-item -path "Component Exchanges" | get-property checked
| equals true | verify-true

get-window "Available Customizations" | get-button OK | click
get-window "Filters and Customization" | get-button OK | click
with [get-view "Capella Project Explorer" | get-tree] {
select "In-Flight Entertainment System/In-Flight Entertainment System.aird" | double-click
select "In-Flight Entertainment System/In-Flight Entertainment System.aird/In-Flight Entertainment System/Logical Architecture/IFE System/\\[LAB\\] IFE System - All Components, CEs"
Expand Down Expand Up @@ -77,12 +77,12 @@ get-view "Capella Project Explorer" | get-tree | get-item

get-view "Capella Project Explorer" | click
get-button "View Menu" | click
get-view "Capella Project Explorer" | get-menu -path "Customize View..." | click
with [get-window "Available Customizations"] {
get-view "Capella Project Explorer" | get-menu "Filters and Customization..." | click
with [get-window "Filters and Customization"] {
get-tab-folder | get-tab-item Filters | click
get-editbox -after [get-label "Select the filters to apply (matching items will be hidden):"] | set-text co
}
get-window "Available Customizations" | get-table | get-item -path "Component Exchanges" | get-property checked
get-window "Filters and Customization" | get-table | get-item -path "Component Exchanges" | get-property checked
| equals false | verify-true

------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--

0 comments on commit b08ca8c

Please sign in to comment.