blob: 75698bf8aa3ba486307c74a173a33f9ccf2b6490 [file] [log] [blame]
--- Q7 testcase ---
Q7-vendor: www.xored.com/q7
Format-Version: 1.0
Element-Name: MergeAllFacetsForGeneration
Tags: Descriptor/Facets
External-Reference: http://bugs.xored.com/browse/XMP-955
Element-Type: testcase
Element-Version: 3.0
Contexts: _rHfkQKthEd-v8JwXbnu_tQ,_ZjuwgUZjEeG4Y7AG6wNDZw
Save-Time: 3/29/12 4:37 PM
Id: _55DbkEZvEeG4Y7AG6wNDZw
Testcase-Type: ecl
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Entry-Name: .description
Content-Type: text/plain
TEST STEPS
1. Open Facets Tab in Project Descriptor;
2. Click "Merge all facets for generation" checkbox;
3. Run generator. Make sure that "Merge all facets for generation" checkbox is selected in Generate Tigerstripe Project window.
------=_.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 "Tigerstripe Explorer" | get-tree | select "model-refactoring/tigerstripe.xml" | double-click -nowait
with [get-editor "model-refactoring/tigerstripe.xml"] {
get-tab-folder | get-tab-item Facets | click
with [get-section -after [get-label "Facets References"] -index 1 | get-section "Facet References"
| get-button "Merge all facets for generation"] {
click
key-type "M1+s"
}
}
get-editor "model-refactoring/tigerstripe.xml" | get-section -after [get-label "Facets References"] -index 1
| get-section "Facet References" | get-button "Merge all facets for generation" | get-property caption
| equals "Merge all facets for generation" | verify-true
get-view "Tigerstripe Explorer" | get-tree | select "New Generator Project/ts-plugin.xml" | double-click -nowait
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
get-window "Generate Tigerstripe Project" | get-group Facets | get-button "Merge facets for generation"
| get-property caption | equals "Merge facets for generation" | verify-true
with [get-window "Generate Tigerstripe Project"] {
get-button Finish | click
get-window "Generation Result" | get-button OK | click
}
with [get-view "Tigerstripe Explorer" | get-tree] {
get-item "model-refactoring/target/tigerstripe.gen" | get-property childCount | equals 5 | verify-true
get-item "model-refactoring/target/tigerstripe.gen/logs" | get-property caption | equals logs | verify-true
get-item "model-refactoring/target/tigerstripe.gen/allArtifacts.txt" | get-property caption
| equals "allArtifacts.txt" | verify-true
get-item "model-refactoring/target/tigerstripe.gen/Exception0.txt" | get-property caption | equals "Exception0.txt"
| verify-true
get-item "model-refactoring/target/tigerstripe.gen/Exception2.txt" | get-property caption | equals "Exception2.txt"
| verify-true
get-item "model-refactoring/target/tigerstripe.gen/simple.txt" | get-property caption | equals "simple.txt"
| verify-true
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--