new test for Bug 436965 - Encrypt passwords during test recording
diff --git a/rcpttTests/contexts/SetupAUTMockup.ctx b/rcpttTests/contexts/SetupAUTMockup.ctx
new file mode 100644
index 0000000..abec243
--- /dev/null
+++ b/rcpttTests/contexts/SetupAUTMockup.ctx
@@ -0,0 +1,49 @@
+--- RCPTT testcase ---
+Format-Version: 1.0
+Context-Type: org.eclipse.rcptt.ctx.ecl
+Element-Name: SetupAUTMockup
+Element-Type: context
+Element-Version: 2.0
+Id: _cQEZwD2QEeSxD9UFwnFS6w
+Runtime-Version: 1.5.3.201409120955
+Save-Time: 9/16/14 6:14 PM
+
+------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998
+Content-Type: text/ecl
+Entry-Name: .ecl.context
+
+proc "has-property" [val control -input] [val property] {
+ try {
+ $control | get-property $property -raw
+ bool true // return true
+ } -catch {
+ bool false // return false
+ }
+}
+
+//invoke-AUT selfQ7Mockups -args "-nosplash" -vmargs "-Xmx512m -XX:MaxPermSize=256m"
+invoke-AUT mockupsQ7 -inject [site-injection "http://build.xored.com/browse/Q7-Q7QUALITY/latest/artifact/PROD/repository"]
+ -args "-nosplash" -vmargs "-Xmx512m -XX:MaxPermSize=256m"
+
+
+loop [val count 0] {
+ if [$count | lt 10] {
+ if [get-view Applications | get-tree | get-item mockupsQ7 | has-property
+ "image.decorations[0].path"] {
+ try {
+ get-aut mockupsQ7 | eval {
+ clean-self-AUT
+ }
+ } -catch {
+ wait 5000
+ recur [$count | plus 1]
+ }
+ } -else {
+ wait 5000
+ recur [$count | plus 1]
+ }
+ } -else {
+ assert-true [bool false] "mockupsQ7 is not available"
+ }
+}
+------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998--
diff --git a/rcpttTests/platform_tests/selfAUTTests/Encrypt passwords during test recording.test b/rcpttTests/platform_tests/selfAUTTests/Encrypt passwords during test recording.test
new file mode 100644
index 0000000..5683dfc
--- /dev/null
+++ b/rcpttTests/platform_tests/selfAUTTests/Encrypt passwords during test recording.test
@@ -0,0 +1,52 @@
+--- RCPTT testcase ---
+Format-Version: 1.0
+Contexts: _cQEZwD2QEeSxD9UFwnFS6w
+Element-Name: Encrypt passwords during test recording
+Element-Type: testcase
+Element-Version: 3.0
+External-Reference: https://bugs.eclipse.org/bugs/show_bug.cgi?id=436965
+Id: _NuUnkD2QEeSxD9UFwnFS6w
+Runtime-Version: 1.5.3.201409120955
+Save-Time: 9/16/14 6:29 PM
+Testcase-Type: ecl
+
+------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
+Content-Type: text/ecl
+Entry-Name: .content
+
+
+get-view Applications | click
+get-button "Record a Snippet" | click
+
+get-aut "mockupsQ7" | eval {
+
+get-button "Open Perspective" | click
+get-menu "Other..." | click
+get-window "Open Perspective" | get-table | select "Q7 Quality" | double-click
+get-view "Q7 Quality Mockups" | get-tree | select "swt/text/Text" | double-click
+
+
+with [get-view "Q7 Quality Mockups"] {
+
+ with [get-group Text] {
+ get-editbox -after [get-label "Password text:"] | click-text 8
+ get-editbox -after [get-label "Password text:"] | set-text "abc"
+ get-editbox -after [get-label "Echo char text:"] | click-text 8
+ get-editbox -after [get-label "Echo char text:"] | set-text "123"
+ }
+}
+
+}
+
+get-window "Control Panel.*" | get-button Stop | click
+get-window "Control Panel - mockupsQ7" | get-text-viewer | get-property text
+ | equals "get-button \"Open Perspective\" | click\n"
+ + "get-window \"Open Perspective\" | get-table | select \"Q7 Quality\" | double-click\n"
+ + "with [get-view \"Q7 Quality Mockups\"] {\n"
+ + " get-tree | select \"swt/text/Text\" | double-click\n"
+ + " with [get-group Text] {\n"
+ + " get-editbox -after [get-label \"Password text:\"] | set-text [decrypt \"6r/A/MrzoNLVJW3qpPdEQA==\"]\n"
+ + " get-editbox -after [get-label \"Echo char text:\"] | set-text [decrypt \"NTdhumfwZO/89koco4Z2uA==\"]\n"
+ + " }\n"
+ + "}" | verify-true
+------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--
diff --git a/rcpttTests/rcptt.properties b/rcpttTests/rcptt.properties
index 3e7fe04..7846a19 100644
--- a/rcpttTests/rcptt.properties
+++ b/rcpttTests/rcptt.properties
@@ -6,7 +6,7 @@
Element-Version: 2.0
Id: _JjN3MQrxEeO2cNOBw62NGw
Runtime-Version: 1.5.3.201409120955
-Save-Time: 9/16/14 11:40 AM
+Save-Time: 9/16/14 11:48 AM
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Content-Type: text/plain