Permalink
Browse files

tests on importing were added

  • Loading branch information...
1 parent 89af6ea commit 824fae1c6c4eb8cd17fd0dfed879b7eb851f77c5 @anastya anastya committed Jan 16, 2013
View

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,64 @@
+--- Q7 testcase ---
+Format-Version: 1.0
+Q7-vendor: www.xored.com/q7
+Contexts: _hcIFcC1oEeKgx4EWM9YkNw,_hecZoC1oEeKgx4EWM9YkNw,_zqTlwF4_EeKshaNlhvSbNA
+Element-Name: Import Duplicate Project
+Element-Type: testcase
+Element-Version: 3.0
+External-Reference:
+Id: _lAU0kF-zEeKTILEQp4mvMQ
+Save-Time: 1/16/13 3:15 PM
+Tags: Platform/Import
+Testcase-Type: ecl
+
+------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
+Content-Type: text/plain
+Entry-Name: .description
+
+TEST STEPS:
+
+1. Import project to workspace
+2. Import project to workspace with duplicate name
+3. Make sure that project cannot be imported to workspace
+------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
+------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
+Content-Type: text/ecl
+Entry-Name: .content
+
+get-view "Project Explorer" | get-tree | get-menu "Import..." | click
+with [get-window Import] {
+ get-tree | select "General/Existing Projects into Workspace"
+ get-button "Next >" | click
+}
+set-dialog-result Folder "platform:/resource/ImportingProject/TestProject2"
+with [get-window Import] {
+ get-button "Browse..." | click
+ get-button Finish | click
+}
+with [get-view "Project Explorer" | get-tree] {
+ get-property itemCount | equals 2 | verify-true
+ get-item TestProject2 | get-property caption | equals TestProject2 | verify-true
+}
+get-view "Project Explorer" | get-tree | get-menu "Import..." | click
+with [get-window Import] {
+ get-tree | select "General/Existing Projects into Workspace"
+ get-button "Next >" | click
+ get-button "Select archive file:" | click
+}
+set-dialog-result File "platform:/resource/ImportingProject/ProjectInZip.zip"
+get-window Import | get-button "Browse..." -index 1 | click
+with [get-window Import] {
+ with [get-tree] {
+ get-property itemCount | equals 1 | verify-true
+ get-item "TestProject2 \\(TestProject2\\)" | get-property caption | equals "TestProject2 (TestProject2)"
+ | verify-true
+ get-item "TestProject2 \\(TestProject2\\)" | get-property selection | equals false | verify-true
+ get-item "TestProject2 \\(TestProject2\\)" | get-property enablement | equals false | verify-true
+ }
+ get-button Finish | get-property enablement | equals false | verify-true
+ get-button "Next >" | get-property enablement | equals false | verify-true
+}
+get-window Import | get-editbox -after [get-label "Import Projects"] | get-property text
+ | equals "Some projects cannot be imported because they already exist in the workspace" | verify-true
+get-window Import | get-button Cancel | click
+------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--
@@ -0,0 +1,72 @@
+--- Q7 testcase ---
+Format-Version: 1.0
+Q7-vendor: www.xored.com/q7
+Contexts: _hcIFcC1oEeKgx4EWM9YkNw,_hecZoC1oEeKgx4EWM9YkNw,_zqTlwF4_EeKshaNlhvSbNA
+Element-Name: Import Existing Project Into Workspace
+Element-Type: testcase
+Element-Version: 3.0
+External-Reference:
+Id: _Ui2fIF77EeKTFKoCTCVW5Q
+Save-Time: 1/16/13 2:45 PM
+Tags: Platform/Import
+Testcase-Type: ecl
+
+------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
+Content-Type: text/plain
+Entry-Name: .description
+
+TEST STEPS:
+
+1. Select "Import" from File main menu
+2. Select "General\Existing Project Into Workspace" in Import Wizard
+3. Select root folder
+4. Press "Finish" button - make sure that project was imported
+5. Select "General\Existing Project Into Workspace" in Import Wizard
+6. Select archive file and press "Finish" button - make sure that project was imported
+------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
+------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
+Content-Type: text/ecl
+Entry-Name: .content
+
+get-view "Project Explorer" | get-tree | get-menu "Import..." | click
+with [get-window Import] {
+ get-tree | select "General/Existing Projects into Workspace"
+ get-button "Next >" | click
+}
+set-dialog-result Folder "platform:/resource/ImportingProject/TestProject1"
+get-window Import | get-button "Browse..." | click
+get-window Import | get-tree | get-property itemCount | equals 1 | verify-true
+get-window Import | get-button Finish | click
+get-view "Project Explorer" | get-tree | get-property itemCount | equals 2 | verify-true
+with [get-view "Project Explorer" | get-tree] {
+ get-item TestProject1 | get-property caption | equals TestProject1 | verify-true
+ get-item "TestProject1/doc" | get-property caption | equals doc | verify-true
+ get-item "TestProject1/setup" | get-property caption | equals setup | verify-true
+ get-item "TestProject1/tests" | get-property caption | equals tests | verify-true
+}
+get-view "Project Explorer" | get-tree | get-menu "Import..." | click
+with [get-window Import] {
+ get-tree | select "General/Existing Projects into Workspace"
+ get-button "Next >" | click
+ get-button "Select archive file:" | click
+}
+set-dialog-result File "platform:/resource/ImportingProject/ProjectInZip.zip"
+get-window Import | get-button "Browse..." -index 1 | click
+with [get-window Import | get-tree] {
+ get-property itemCount | equals 1 | verify-true
+ get-item "TestProject2 \\(TestProject2\\)" | get-property caption | equals "TestProject2 (TestProject2)"
+ | verify-true
+}
+get-window Import | get-button Finish | click
+get-view "Project Explorer" | get-tree | get-property itemCount | equals 3 | verify-true
+with [get-view "Project Explorer" | get-tree] {
+ get-item TestProject2 | get-property childCount | equals 6 | verify-true
+ get-item "TestProject2/MessageContent.java" | get-property caption | equals "MessageContent.java" | verify-true
+}
+get-view "Project Explorer" | get-tree | select TestProject2 | get-menu Properties | click
+with [get-window "Properties for TestProject2"] {
+ get-tree | select Resource
+}
+get-window "Properties for TestProject2" | get-editbox -after [get-label "Location:"] | get-property text
+ | equals [substitute-variables "${workspace_loc}\\TestProject2"] | verify-true
+------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--
@@ -0,0 +1,79 @@
+--- Q7 testcase ---
+Format-Version: 1.0
+Q7-vendor: www.xored.com/q7
+Contexts: _hcIFcC1oEeKgx4EWM9YkNw,_hecZoC1oEeKgx4EWM9YkNw,_zqTlwF4_EeKshaNlhvSbNA
+Element-Name: Import Project With Copying Into Workspace
+Element-Type: testcase
+Element-Version: 3.0
+External-Reference:
+Id: _8BKBAF-1EeKTILEQp4mvMQ
+Save-Time: 1/16/13 3:41 PM
+Tags: Platform/Import
+Testcase-Type: ecl
+
+------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
+Content-Type: text/plain
+Entry-Name: .description
+
+TEST STEPS:
+
+1. Select "Import" from File main menu
+2. Select "General\Existing Project Into Workspace" in Import Wizard
+3. Select root folder
+4. Make sure that "Copy projects into workspace" is not checked
+5. Press "Finish" button
+6. Make sure that files ic not copied to workspace
+7. Select "Import" from File main menu
+8. Select "General\Existing Project Into Workspace" in Import Wizard
+9. Select root folder
+10. Set "Copy projects into workspace" check-box
+11. Press "Finish" button
+12. Make sure that files of porject is copied to workspace
+------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
+------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
+Content-Type: text/ecl
+Entry-Name: .content
+
+get-view "Project Explorer" | get-tree | get-menu "Import..." | click
+with [get-window Import] {
+ get-tree | select "General/Existing Projects into Workspace"
+ get-button "Next >" | click
+}
+set-dialog-result Folder "platform:/resource/ImportingProject/TestProject1"
+get-window Import | get-button "Browse..." | click
+with [get-window Import | get-button "Copy projects into workspace"] {
+ get-property enablement | equals true | verify-true
+ get-property selected | equals false | verify-true
+}
+get-window Import | get-button Finish | click
+with [get-view "Project Explorer" | get-tree] {
+ get-property itemCount | equals 2 | verify-true
+ get-item TestProject1 | get-property caption | equals TestProject1 | verify-true
+}
+get-view "Project Explorer" | get-tree | select TestProject1 | get-menu Properties | click
+get-window "Properties for TestProject1" | get-tree | select Resource | double-click
+get-window "Properties for TestProject1" | get-editbox -after [get-label "Location:"] | get-property text
+ | equals [substitute-variables "${workspace_loc}\\ImportingProject\\TestProject1"] | verify-true
+get-window "Properties for TestProject1" | get-button OK | click
+get-view "Project Explorer" | get-tree | select TestProject1 | get-menu "Import..." | click
+with [get-window Import] {
+ get-tree | select "General/Existing Projects into Workspace"
+ get-button "Next >" | click
+}
+set-dialog-result Folder "platform:/resource/ImportingProject/TestProject2"
+with [get-window Import] {
+ get-button "Browse..." | click
+ get-button "Copy projects into workspace" | click
+ get-button Finish | click
+}
+get-view "Project Explorer" | get-tree | select TestProject2
+with [get-view "Project Explorer" | get-tree] {
+ get-property itemCount | equals 3 | verify-true
+ get-item TestProject2 | get-property caption | equals TestProject2 | verify-true
+}
+get-view "Project Explorer" | get-tree | select TestProject2 | get-menu Properties | click
+get-window "Properties for TestProject2" | get-tree | select Resource
+get-window "Properties for TestProject2" | get-editbox -after [get-label "Location:"] | get-property text
+ | equals [substitute-variables "${workspace_loc}\TestProject2"] | verify-true
+get-window "Properties for TestProject2" | get-button OK | click
+------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--
@@ -0,0 +1,67 @@
+--- Q7 testcase ---
+Format-Version: 1.0
+Q7-vendor: www.xored.com/q7
+Contexts: _hcIFcC1oEeKgx4EWM9YkNw,_hecZoC1oEeKgx4EWM9YkNw,_zqTlwF4_EeKshaNlhvSbNA
+Element-Name: Import Resource From Archive File
+Element-Type: testcase
+Element-Version: 3.0
+External-Reference:
+Id: _HJG20F77EeKTFKoCTCVW5Q
+Save-Time: 1/16/13 2:29 PM
+Tags: Platform/Import
+Testcase-Type: ecl
+
+------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
+Content-Type: text/plain
+Entry-Name: .description
+
+TEST STEPS:
+
+1. Select "Import" from File main menu
+2. Select "General\Archive File" in Import Wizard
+3. Select acrchive file
+4. Make sure that "Finish"button is disabled when Into Folder is not set
+5. Select into folder and press "Finish" button
+6. Make sure that project is imported
+------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
+------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
+Content-Type: text/ecl
+Entry-Name: .content
+
+get-menu "File/Import..." | click
+with [get-window Import] {
+ get-tree | select "General/Archive File"
+ get-button "Next >" | click
+}
+set-dialog-result File "platform:/resource/ImportingProject/ProjectInZip.zip"
+with [get-window Import] {
+ get-button "Browse..." | click
+ get-tree | select "\\//TestProject2"
+}
+with [get-window Import] {
+ get-button "Next >" | get-property enablement | equals false | verify-true
+ get-button Finish | get-property enablement | equals false | verify-true
+}
+with [get-window Import] {
+ get-button "Browse..." -after [get-label "Into folder:"] | click
+ with [get-window "Import into Folder"] {
+ get-tree | select MyProject
+ get-button OK | click
+ }
+ get-button Finish | click
+}
+get-view "Project Explorer" | get-tree | get-property itemCount | equals 1 | verify-true
+with [get-view "Project Explorer" | get-tree] {
+ get-item "MyProject/TestProject2" | get-property childCount | equals 6 | verify-true
+ get-item "MyProject/TestProject2/internal" | get-property caption | equals internal | verify-true
+ get-item "MyProject/TestProject2/org.eclipse.ui.editors" | get-property caption | equals "org.eclipse.ui.editors"
+ | verify-true
+ get-item "MyProject/TestProject2/org.eclipse.ui.ide" | get-property caption | equals "org.eclipse.ui.ide"
+ | verify-true
+ get-item "MyProject/TestProject2/org.eclipse.ui.views.log" | get-property caption
+ | equals "org.eclipse.ui.views.log" | verify-true
+ get-item "MyProject/TestProject2/MessageContent.java" | get-property caption | equals "MessageContent.java"
+ | verify-true
+ get-item "MyProject/TestProject2/messages.java" | get-property caption | equals "messages.java" | verify-true
+}
+------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--
@@ -0,0 +1,59 @@
+--- Q7 testcase ---
+Format-Version: 1.0
+Q7-vendor: www.xored.com/q7
+Contexts: _hcIFcC1oEeKgx4EWM9YkNw,_hecZoC1oEeKgx4EWM9YkNw,_zqTlwF4_EeKshaNlhvSbNA
+Element-Name: Import Resource From File System
+Element-Type: testcase
+Element-Version: 3.0
+External-Reference:
+Id: _1G4AcV76EeKTFKoCTCVW5Q
+Save-Time: 1/16/13 2:58 PM
+Tags: Platform/Import
+Testcase-Type: ecl
+
+------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
+Content-Type: text/ecl
+Entry-Name: .content
+
+get-menu "File/Import..." | click
+with [get-window Import] {
+ get-tree | select "General/File System"
+ get-button "Next >" | click
+}
+set-dialog-result Folder "platform:/resource/ImportingProject"
+with [get-window Import] {
+ get-button "Browse..." | click
+ with [get-tree] {
+ get-item "ImportingProject/TestProject1" | check
+ get-item "ImportingProject/TestProject2" | check
+ }
+ get-button "Filter Types..." | click
+ with [get-window "Select Types"] {
+ get-table | get-item "\\*.xml" | check
+ get-editbox -after [get-label "Other extensions:"] | set-text "*.java, *.db"
+ get-button OK | click
+ }
+ get-button "Browse..." -after [get-label "Into folder:"] | click
+ with [get-window "Import into Folder"] {
+ get-tree | select MyProject
+ get-button OK | click
+ }
+ get-group Options | get-button "Overwrite existing resources without warning" | click
+ get-button Finish | click
+}
+get-view "Project Explorer" | get-tree | get-item MyProject | get-property childCount | equals 4 | verify-true
+with [get-view "Project Explorer" | get-tree] {
+ get-item "MyProject/TestProject1" | get-property childCount | equals 2 | verify-true
+ get-item "MyProject/TestProject1/setup" | get-property caption | equals setup | verify-true
+ get-item "MyProject/TestProject1/Thumbs.db" | get-property caption | equals "Thumbs.db" | verify-true
+ get-item "MyProject/TestProject2" | get-property childCount | equals 6 | verify-true
+ get-item "MyProject/TestProject2/MessageContent.java" | get-property caption | equals "MessageContent.java"
+ | verify-true
+ get-item "MyProject/TestProject2/messages.java" | get-property caption | equals "messages.java" | verify-true
+}
+with [get-view "Project Explorer" | get-tree] {
+ get-item "MyProject/TestProject2/org.eclipse.ui.editors" | get-property childCount | equals 1 | verify-true
+ get-item "MyProject/TestProject2/org.eclipse.ui.editors/dialog_settings.xml" | get-property caption
+ | equals "dialog_settings.xml" | verify-true
+}
+------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--

0 comments on commit 824fae1

Please sign in to comment.