Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMélanie Bats2016-07-21 12:10:02 +0000
committerPierre-Charles David2016-08-02 07:22:57 +0000
commit05d7fe5524093ac7cf2cf56190ccd9e473057ca0 (patch)
tree127c0c77b96f74ea6c8f5e4b2c5e04962db27e74
parent46498f8eea971e4ed14a664fff10d914e2c62d06 (diff)
downloadorg.eclipse.sirius-05d7fe5524093ac7cf2cf56190ccd9e473057ca0.tar.gz
org.eclipse.sirius-05d7fe5524093ac7cf2cf56190ccd9e473057ca0.tar.xz
org.eclipse.sirius-05d7fe5524093ac7cf2cf56190ccd9e473057ca0.zip
[497248] Add RCPTT tests for radio edition and select edition
Bug: 497248 Change-Id: I7810f3d4ee87a9aec2141b6da9096f2c4210e55d Signed-off-by: Mélanie Bats <melanie.bats@obeo.fr>
-rw-r--r--plugins/org.eclipse.sirius.tests.rcptt/README.txt5
-rw-r--r--plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/radio/RadioWidgetEdition.test66
-rw-r--r--plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/select/SelectWidgetEdition.test65
3 files changed, 136 insertions, 0 deletions
diff --git a/plugins/org.eclipse.sirius.tests.rcptt/README.txt b/plugins/org.eclipse.sirius.tests.rcptt/README.txt
new file mode 100644
index 0000000000..77296c5f6d
--- /dev/null
+++ b/plugins/org.eclipse.sirius.tests.rcptt/README.txt
@@ -0,0 +1,5 @@
+To run the tests locally:
+- Build the Sirius RCPTT test product :
+./build.sh neon package rcptt
+- Launch the tests locally with maven :
+DISPLAY=:1 SWT_GTK3=0 mvn -f plugins/org.eclipse.sirius.tests.rcptt/pom.xml test \ No newline at end of file
diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/radio/RadioWidgetEdition.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/radio/RadioWidgetEdition.test
new file mode 100644
index 0000000000..25fc5f6018
--- /dev/null
+++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/radio/RadioWidgetEdition.test
@@ -0,0 +1,66 @@
+--- RCPTT testcase ---
+Format-Version: 1.0
+Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_iiAwYB5uEea-TdrfW8_m6g,_ZuJ8AAifEea7hcZ9Jto1HQ
+Element-Name: RadioWidgetEdition
+Element-Type: testcase
+Element-Version: 3.0
+External-Reference:
+Id: _EDZmwE8fEeaGffyg90Bppg
+Runtime-Version: 2.1.0.201606221726
+Save-Time: 7/21/16 2:47 PM
+Testcase-Type: ecl
+
+------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
+Content-Type: text/plain
+Entry-Name: .description
+
+This test aims to check the radio widget.
+
+The test :
+* loads the tests projects released with the Sirius test product,
+* opens the test diagram,
+* selects the radio viewpoint,
+* selects an element in the diagram,
+* check the original value of the radio
+* edit the radio value
+* select another element in the diagram
+* re-select the edited element to force the refresh of the roperties view
+* check that the selected radio value is the value we selected before
+------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
+------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
+Content-Type: text/ecl
+Entry-Name: .content
+
+// Check the original value of the radio
+with [get-view Properties | get-section Radio | get-button Literal1] {
+ get-property selected | equals true | verify-true
+}
+
+// Edit the radio value
+get-view Properties | get-section Radio | get-button Literal3 | click
+
+// Select another element in the diagram
+with [get-editor RootDiagram | get-diagram -index 1 | get-edit-part -name RootDiagram] {
+ mouse-move 216 110 -height 443 -width 924
+ with [get-edit-part -name Element2 | get-edit-part -className SquareEditPart] {
+ mouse-move 40 81 button1 -height 100 -width 100
+ mouse-press 40 81 button1 -height 100 -width 100
+ mouse-release 44 81 button1 524288 -height 100 -width 100
+ mouse-hover 44 81 -height 100 -width 100
+ }
+ // Re-select the edited element to force the refresh of the properties view
+ mouse-move 108 89 -height 443 -width 920
+ with [get-edit-part -name Element1 | get-edit-part -className SquareEditPart] {
+ mouse-move 89 81 button1 -height 100 -width 100
+ mouse-press 89 81 button1 -height 100 -width 100
+ mouse-hover 89 81 -height 100 -width 100
+ mouse-release 89 81 button1 524288 -height 100 -width 100
+ }
+ mouse-move 966 170 -height 443 -width 924
+}
+
+// Check that the selected radio value is the value we selected before
+with [get-view Properties | get-section Radio | get-button Literal3] {
+ get-property selected | equals true | verify-true
+}
+------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--
diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/select/SelectWidgetEdition.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/select/SelectWidgetEdition.test
new file mode 100644
index 0000000000..ad7704698a
--- /dev/null
+++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/select/SelectWidgetEdition.test
@@ -0,0 +1,65 @@
+--- RCPTT testcase ---
+Format-Version: 1.0
+Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_F4Hs4B5wEea-TdrfW8_m6g,_ZuJ8AAifEea7hcZ9Jto1HQ
+Element-Name: SelectWidgetEdition
+Element-Type: testcase
+Element-Version: 3.0
+External-Reference:
+Id: _rMacEE8_EeaGffyg90Bppg
+Runtime-Version: 2.1.0.201606221726
+Save-Time: 7/21/16 2:47 PM
+Testcase-Type: ecl
+
+------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
+Content-Type: text/plain
+Entry-Name: .description
+
+This test aims to check the radio widget.
+
+The test :
+* loads the tests projects released with the Sirius test product,
+* opens the test diagram,
+* selects the radio viewpoint,
+* selects an element in the diagram,
+* check the original value of the combo
+* edit the combo value
+* select another element in the diagram
+* re-select the edited element to force the refresh of the properties view
+* check that the selected combo value is the value we selected before
+------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
+------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
+Content-Type: text/ecl
+Entry-Name: .content
+
+// Check the initial selected value
+get-view Properties | get-section Select | get-combo | get-property selection | equals Element2 | verify-true
+
+// Edit the combo value
+get-view Properties | get-section Select | get-combo | get-property selection | equals Element2 | verify-true
+
+// Select another element in the diagram
+get-editor RootDiagram | get-diagram -index 1 | get-edit-part -name RootDiagram | mouse-move 136 441 -height 443
+ -width 924
+get-view Properties | get-section Select | get-combo | select Element11
+with [get-editor RootDiagram | get-diagram -index 1 | get-edit-part -name RootDiagram] {
+ mouse-move 237 123 -height 443 -width 924
+ with [get-edit-part -name Element2 | get-edit-part -className SquareEditPart] {
+ mouse-move 67 69 button1 -height 100 -width 100
+ mouse-press 67 69 button1 -height 100 -width 100
+ mouse-release 71 69 button1 524288 -height 100 -width 100
+ }
+ // Re-select the edited element to force the refresh of the properties view
+ mouse-move 102 77 -height 443 -width 920
+ with [get-edit-part -name Element1 | get-edit-part -className SquareEditPart] {
+ mouse-move 55 80 button1 -height 100 -width 100
+ mouse-press 55 80 button1 -height 100 -width 100
+ mouse-hover 55 80 -height 100 -width 100
+ mouse-release 55 80 button1 524288 -height 100 -width 100
+ }
+ mouse-move 120 1 -height 443 -width 924
+}
+
+
+// Check that the selected combo value is the value we selected before
+get-view Properties | get-section Select | get-combo | get-property selection | equals Element11 | verify-true
+------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--

Back to the top