Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
ide_script [2020/05/28 02:00] admin [ShortCut Keys] |
ide_script [2024/01/02 19:28] (current) admin [Plugins] |
||
---|---|---|---|
Line 10: | Line 10: | ||
* auto formatting | * auto formatting | ||
* code collapse | * code collapse | ||
- | * code assist | + | * [[#code assist]] |
* search | * search | ||
* replace | * replace | ||
Line 16: | Line 16: | ||
The tool pallet on the upper-right corner of the editor gives you quick access to common editor features. | The tool pallet on the upper-right corner of the editor gives you quick access to common editor features. | ||
- | |||
{{ wiki: | {{ wiki: | ||
Line 22: | Line 21: | ||
Click //P// to open a dialog to activate [[# | Click //P// to open a dialog to activate [[# | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Code Assist ==== | ||
+ | Code assist is supported on [[https:// | ||
+ | |||
+ | Code assist can be opened with // | ||
+ | * on a blank line or after a " | ||
+ | |||
+ | {{wiki: | ||
+ | |||
+ | * on chained system or plugin function calls | ||
+ | |||
+ | {{wiki: | ||
+ | |||
+ | * on java classes | ||
+ | |||
+ | {{wiki: | ||
---- | ---- | ||
Line 31: | Line 48: | ||
Activated plugins will automatically added to code assist (Ctrl-Space). | Activated plugins will automatically added to code assist (Ctrl-Space). | ||
- | More info can be found at [[Plugins]] and [[http:// | + | More info can be found at [[Plugins]] and [[http:// |
---- | ---- | ||
Line 171: | Line 188: | ||
//MCASE Script// is where //MCase// are defined. | //MCASE Script// is where //MCase// are defined. | ||
- | // | + | Often times you may have a set of specific test scenarios you want to make sure are covered to complement the system generated test cases. |
Consider your model as a map to //GPS//, //MCase// is just a set of way points you want to visit. When you execute //MCase//, a sequence | Consider your model as a map to //GPS//, //MCase// is just a set of way points you want to visit. When you execute //MCase//, a sequence | ||
Line 184: | Line 201: | ||
---- | ---- | ||
==== User Script ==== | ==== User Script ==== | ||
- | Besides [[#TRIGGER Script]], [[#PAGES Sript]] | + | Besides [[#TRIGGER Script]], [[#PAGES Sript]], [[# |
To create a user script, click on " | To create a user script, click on " | ||
Line 203: | Line 220: | ||
$SYS.log(' | $SYS.log(' | ||
} | } | ||
+ | |||
+ | ---- | ||
+ | ==== Include File ==== | ||
+ | You may include script file into your TRIGGER script. | ||
+ | | ||
+ | |||
+ | The above script will literally inject the content of the included file into current script before TRIGGER script is executed. | ||
+ | |||
+ | The side effect of using this INCLUDE_FILE is that the injected scripts will mess up the script line # reported on errors. | ||
---- | ---- | ||
Line 210: | Line 236: | ||
* **Ctrl-Space**: | * **Ctrl-Space**: | ||
* **Ctrl-A** / //Cmd-A//: Select all | * **Ctrl-A** / //Cmd-A//: Select all | ||
- | * **Ctrl-B** | + | * **Ctrl-B**: Collapse / Expand current script tag that has children tags |
* **Ctrl-D** / //Cmd-D//: Delete current line | * **Ctrl-D** / //Cmd-D//: Delete current line | ||
- | * **Ctrl-E** / //Cmd-E//: Execute highlighted script expression in [[Execution Monitor]] | + | * **Ctrl-E** / //Cmd-E//: Execute highlighted script expression in [[ide_monitor |Execution Monitor]] |
* **Ctrl-F** / //Cmd-F//: Search and replace a string, enter lower case for case insensitive search | * **Ctrl-F** / //Cmd-F//: Search and replace a string, enter lower case for case insensitive search | ||
* **Ctrl-R** / //Cmd-R//: Code-assist: | * **Ctrl-R** / //Cmd-R//: Code-assist: | ||
* **Ctrl-I** / //Cmd-I//: Insert a state/trans trigger (Trigger script only) | * **Ctrl-I** / //Cmd-I//: Insert a state/trans trigger (Trigger script only) | ||
* **Ctrl-Z** / //Cmd-Z//: Undo changes | * **Ctrl-Z** / //Cmd-Z//: Undo changes | ||
- | * **Ctrl-Y** / //Cmd-Y//: Redo changes | + | * **Ctrl-Y** / //Shift-Cmd-Z//: Redo changes |
* **Ctrl-Home** or **Alt-Up** / //Cmd-Up//: Move cursor to the beginning of the script | * **Ctrl-Home** or **Alt-Up** / //Cmd-Up//: Move cursor to the beginning of the script | ||
* **Ctrl-End** or **Ctrl-Down** / // | * **Ctrl-End** or **Ctrl-Down** / // | ||
Line 228: | Line 254: | ||
* **Ctrl-[** / //Cmd-[//: shift line to the left (un-indent) | * **Ctrl-[** / //Cmd-[//: shift line to the left (un-indent) | ||
* **Ctrl-]** / //Cmd-]//: shift line to the right (indent) | * **Ctrl-]** / //Cmd-]//: shift line to the right (indent) | ||
+ | |||
+ | Except for **Ctrl-R / Ctrl-I** for windows and //Cmd-R / Cmd-I// for Mac, check out [[https:// | ||
+ | |||