Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
ide_script [2020/05/03 03:46] admin [User Script] |
ide_script [2020/06/01 15:21] admin [Code Assist] |
||
---|---|---|---|
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 30: | Line 47: | ||
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:// | ||
---- | ---- | ||
Line 37: | Line 56: | ||
* [[#PAGES Script]] | * [[#PAGES Script]] | ||
* [[#STEPS Script]] | * [[#STEPS Script]] | ||
+ | * [[#MCASES Script]] | ||
* [[#User Script]] | * [[#User Script]] | ||
Line 66: | Line 86: | ||
* //trans// - executed on the specific transition | * //trans// - executed on the specific transition | ||
- | === Creating | + | === Create |
To create a // | To create a // | ||
Line 74: | Line 94: | ||
- | === TRIGGER | + | === Trigger |
Listing of states and transitions that have TRIGGER script created. | Listing of states and transitions that have TRIGGER script created. | ||
- | {{ wiki: | + | {{wiki: |
---- | ---- | ||
Line 88: | Line 108: | ||
| | ||
- | === Creating | + | === Create |
Use the following script to create a new page object: | Use the following script to create a new page object: | ||
page1 = $SYS.addPage(' | page1 = $SYS.addPage(' | ||
Line 94: | Line 114: | ||
- | === Adding | + | === Add Page Actions === |
Pages may contain one or many page actions. | Pages may contain one or many page actions. | ||
Line 103: | Line 123: | ||
}) | }) | ||
- | === Adding | + | === Add Page Elements === |
Pages may contain one or many page elements. | Pages may contain one or many page elements. | ||
Line 111: | Line 131: | ||
| | ||
- | === Adding | + | === Add Element Actions === |
Elements may contain one or many element actions. | Elements may contain one or many element actions. | ||
Line 142: | Line 162: | ||
- | === Creating | + | === Create |
//Steps// are annotated groovy functions as follows: | //Steps// are annotated groovy functions as follows: | ||
Line 165: | Line 185: | ||
+ | ==== MCASES Script ==== | ||
+ | //MCASE Script// is where //MCase// are defined. | ||
+ | |||
+ | //MCase// is a custom test case / workflow that you defined explicitly for the system to generate a sequence path from the model to achieve specific scenario. | ||
+ | |||
+ | 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 | ||
+ | |||
+ | | ||
+ | | ||
+ | |||
+ | In additional to follow through path and execute the automation script (// | ||
+ | |||
+ | |||
+ | |||
+ | ---- | ||
==== User Script ==== | ==== User Script ==== | ||
Besides [[#TRIGGER Script]], [[#PAGES Sript]] and [[#STEPS Script]], you may also add additional scripts. | Besides [[#TRIGGER Script]], [[#PAGES Sript]] and [[#STEPS Script]], you may also add additional scripts. | ||
Line 185: | Line 220: | ||
$SYS.log(' | $SYS.log(' | ||
} | } | ||
+ | |||
+ | ---- | ||
+ | ==== ShortCut Keys ==== | ||
+ | Shortcut keys allow you to perform basic editor functions with a keyboard. Below is the list of the shortcut keys (Windows key in **bold** / Mac key in // | ||
+ | |||
+ | * **Ctrl-Space**: | ||
+ | * **Ctrl-A** / //Cmd-A//: Select all | ||
+ | * **Ctrl-B**: Collapse / Expand current script tag that has children tags | ||
+ | * **Ctrl-D** / //Cmd-D//: Delete current line | ||
+ | * **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-R** / //Cmd-R//: Code-assist: | ||
+ | * **Ctrl-I** / //Cmd-I//: Insert a state/trans trigger (Trigger script only) | ||
+ | * **Ctrl-Z** / //Cmd-Z//: Undo changes | ||
+ | * **Ctrl-Y** / // | ||
+ | * **Ctrl-Home** or **Alt-Up** / //Cmd-Up//: Move cursor to the beginning of the script | ||
+ | * **Ctrl-End** or **Ctrl-Down** / // | ||
+ | * **Ctrl-Left** / // | ||
+ | * **Ctrl-Right** / // | ||
+ | * **Alt-Left** / // | ||
+ | * **Alt-Right** / '' | ||
+ | * **Ctrl-Backspace** / // | ||
+ | * **Ctrl-Delete** / // | ||
+ | * **Ctrl-[** / //Cmd-[//: shift line to the left (un-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:// | ||