blob: e68923b4ae00ffc1f8cc2ac9188810ad2540757b [file] [log] [blame]
--- Q7 testcase ---
Q7-vendor: www.xored.com/q7
Format-Version: 1.0
Element-Name: GenerateReportSetting
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: _NJ4H8EJ-EeGhZJbTp_-43w
Testcase-Type: ecl
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Entry-Name: .description
Content-Type: text/plain
TEST STEPS
1. Open Tigerstripe Project Advanced Settings Tab;
2. Check "Generate Report" option;
3. Run generator and make sure that the report was generated;
4. Uncheck "Generate Report" option and run generator one more time;
5. 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 "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-editor "New Generator Project/ts-plugin.xml" | 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 "Advanced Settings" | click
with [get-section Generation | get-button "Generate report"] {
click
}
key-type "M1+s"
}
get-view "Tigerstripe Explorer" | 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/TigerstripeReport.xml"
| get-property caption | equals "TigerstripeReport.xml" | verify-true
with [get-editor "model-refactoring.*/tigerstripe.xml" | get-section Generation] {
get-button "Clear target directory before generate" | click
with [get-button "Generate report"] {
click
}
key-type "M1+s"
}
get-view "Tigerstripe Explorer" | 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 | verify-error{get-item "model-refactoring.*/target/tigerstripe.gen/TigerstripeReport.xml"}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--