blob: a03eb8d2a284e23e264efa7ba87615c3a8f4561d [file] [log] [blame]
--- Q7 testcase ---
Q7-vendor: www.xored.com/q7
Format-Version: 1.0
Element-Name: GenerateReferencedProjectsSettings
Tags: Descriptor/AdvancedSettings
External-Reference: http://bugs.xored.com/browse/XMP-1048
Element-Type: testcase
Element-Version: 3.0
Contexts: _rHfkQKthEd-v8JwXbnu_tQ,_mfx9IEG2EeGhZJbTp_-43w
Save-Time: 4/24/12 7:26 PM
Id: _oUNqEGz2EeG1LJON5GuzxA
Testcase-Type: ecl
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Entry-Name: .description
Content-Type: text/plain
Test Steps:
1. Open tigerstripe.xml
2. Switch to dependencies
3. Check "Modify dependencies at generation runtime" check-box
4. Add dependencies
5. Switch to Advanced Settings tab
6. Set "Generate Referenced Projects"
7. Deploy generator
8. Select project in Tigerstripe Explorer and press "Generate..." in context menu
9. Make sure that "Generate referenced projects" check-box in Generate Tigerstripe Project
10. Press "Finish" button
11. Error message is displayed
12. Make sure that the report wasn't generated
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Entry-Name: .content
Content-Type: text/ecl
get-menu "File/Restart" | click
wait-until-eclipse-is-ready
get-view "Error Log" | get-button "Clear Log Viewer" | click
get-view "Tigerstripe Explorer" | get-tree | select "model-refactoring/tigerstripe.xml" | double-click
get-editor "model-refactoring/tigerstripe.xml" | get-tab-folder | get-tab-item "Advanced Settings" | click
get-editor "model-refactoring/tigerstripe.xml" | get-section Generation | get-button "Generate Referenced Projects"
| get-property enablement | equals false | verify-true
with [get-editor "model-refactoring/tigerstripe.xml"] {
get-tab-folder | get-tab-item Dependencies | click
with [get-section Dependencies] {
get-button "Modify dependencies at generation time (advanced)" | click
get-button Add | click
}
}
with [get-window "Select Tigerstripe Project"] {
with [get-table] {
key-type "M1+a"
select "com.cisco.testModule.*" "org.eclipse.tigerstripe.test.module.*"
}
get-button OK | click
}
with [get-editor "model-refactoring/tigerstripe.xml"] {
get-section Dependencies | get-button Add | key-type "M1+s"
get-tab-folder | get-tab-item "Advanced Settings" | click
}
with [get-editor "model-refactoring/tigerstripe.xml" | get-section Generation
| get-button "Generate Referenced Projects"] {
get-property enablement | equals true | verify-true
get-property selected | equals false | verify-true
}
with [get-editor "model-refactoring/tigerstripe.xml" | get-section Generation
| get-button "Generate Referenced Projects"] {
click
key-type "M1+s"
}
get-view "Tigerstripe Explorer" | get-tree | select "New Generator Project/ts-plugin.xml" | double-click
get-editor "New Generator Project/ts-plugin.xml" | get-section Testing | get-link "Package and deploy this generator"
| click
get-window "Deploy new generator" | get-button OK | click
get-window "New Generator Project Generator" | get-button OK | click
get-view "Tigerstripe Explorer" | get-tree | select "model-refactoring.*" | get-menu "Generate..." | click
with [get-window "Generate Tigerstripe Project" | get-group Generation | get-button "Generate referenced projects"] {
get-property enablement | equals false | verify-true
get-property caption | equals "Generate referenced projects" | verify-true
get-property selected | equals true | verify-true
}
get-window "Generate Tigerstripe Project" | get-button Finish | click
get-window "Generate Tigerstripe Project" | get-window "Generation Result" | get-tree
| get-item "org.eclipse.tigerstripe.workbench.base/An error was detected while generating a Tigerstripe project. Generation may be incomplete."
| get-property caption
| equals "An error was detected while generating a Tigerstripe project. Generation may be incomplete." | verify-true
get-window "Generate Tigerstripe Project" | get-window "Generation Result" | get-label "Generation Failed."
| get-property caption | equals "Generation Failed." | verify-true
get-window "Generate Tigerstripe Project" | get-window "Generation Result" | get-button OK | click
get-view "Error Log" | get-editbox | set-text "Unhandled event"
get-view "Error Log" | get-tree | get-property itemCount | equals 0 | verify-true
with [get-view "Tigerstripe Explorer" | get-tree] {
get-item "model-refactoring.*" | get-property childCount | equals 6 | verify-true
get-item "model-refactoring.*/src" | get-property caption | equals src | verify-true
get-item "model-refactoring.*/Model References" | get-property caption | equals "Model References" | verify-true
get-item "model-refactoring.*/default.wfc" | get-property caption | equals "default.wfc" | verify-true
get-item "model-refactoring.*/tigerstripe.xml" | get-property caption | equals "tigerstripe.xml" | verify-true
get-item "model-refactoring.*/outside-class-diagram" | get-property caption | equals "outside-class-diagram"
| verify-true
get-item "model-refactoring.*/outside-instance-diagram" | get-property caption | equals "outside-instance-diagram"
| verify-true
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--