blob: 7af14de182a555748e12f6487e642674935e6306 [file] [log] [blame]
--- Q7 testcase ---
Q7-vendor: www.xored.com/q7
Format-Version: 1.0
Element-Name: ClearTargetDirectoryBeforeGenerate
Tags: Descriptor/AdvancedSettings
External-Reference:
Element-Type: testcase
Element-Version: 3.0
Contexts: _rHfkQKthEd-v8JwXbnu_tQ,_mfx9IEG2EeGhZJbTp_-43w
Save-Time: 4/24/12 7:26 PM
Id: _zA200EJ2EeGhZJbTp_-43w
Testcase-Type: ecl
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Entry-Name: .description
Content-Type: text/plain
TEST STEPS
1. Run Generator without using facet;
2. Open Tigerstripe Project Advanced Settings Tab;
3. Check "Clear Target Directory Before Generate" option;
4. Run generator one more time (using facet rules);
5. Make sure that taget directory was cleared before generation.
------=_.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 "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/tigerstripe.xml" | double-click -nowait
with [get-editor "model-refactoring/tigerstripe.xml"] {
get-tab-folder | get-tab-item "Generator Settings" | click
with [get-section "New Generator Project(3.0) (enabled) [Generic]"] {
click
with [get-editbox -after [get-label "Use Facet"]] {
key-type "M1+a"
set-text ""
}
}
key-type "M1+s"
close
}
with [get-editor "New Generator Project/ts-plugin.xml"] {
click
close
}
with [get-view "Tigerstripe Explorer"] {
click
get-tree | select "model-refactoring" | get-menu "Generate..." | click
}
with [get-window "Generate Tigerstripe Project"] {
get-button Finish | click
get-window "Generation Result" | get-button OK | click
}
get-view "Tigerstripe Explorer" | get-tree | get-item "model-refactoring/target/tigerstripe.gen"
| get-property childCount | equals 23 | verify-true
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 "Advanced Settings" | click
with [get-section Generation | get-button "Clear target directory before generate"] {
click
key-type "M1+s"
}
close
}
with [get-view "Tigerstripe Explorer"] {
click
get-tree | select "model-refactoring/tigerstripe.xml" | double-click -nowait
}
with [get-editor "model-refactoring/tigerstripe.xml"] {
get-tab-folder | get-tab-item "Generator Settings" | click
with [get-section "New Generator Project(3.0) (enabled) [Generic]"] {
click
get-button "Select..." | click
}
}
get-window "Select Facet" | get-tree | select "default.wfc" | double-click -nowait
with [get-editor "model-refactoring/tigerstripe.xml"] {
get-section "New Generator Project(3.0) (enabled) [Generic]" | get-button "Select..." | key-type "M1+s"
close
}
with [get-view "Tigerstripe Explorer"] {
click
get-tree | select "model-refactoring" | get-menu "Generate..." | click
}
with [get-window "Generate Tigerstripe Project"] {
get-button Finish | click
get-window "Generation Result" | get-button OK | click
}
get-view "Tigerstripe Explorer" | get-tree | get-item "model-refactoring/target/tigerstripe.gen"
| get-property childCount | equals 4 | verify-true
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--