Difference between revisions of "OtfOtlEditor"

From emotive
Jump to navigation Jump to search
Line 1: Line 1:
 
{{DISPLAYTITLE:Open Test Framework - OTL Code Editor}}[[Category:OTF]]
 
{{DISPLAYTITLE:Open Test Framework - OTL Code Editor}}[[Category:OTF]]
UNDER DEVELOPMENT...
+
'''UNDER DEVELOPMENT...'''
 
{|
 
{|
 
| style="vertical-align:top; text-align:justify;"|
 
| style="vertical-align:top; text-align:justify;"|
==Overview==
+
== Overview ==
 
For professional users it is much more efficient to create and edit OTX in a code editor, especially for big OTX projects. EMOTIVE has developed OTL - Open Test Language. OTL is a Java-like scripting language for the OTX. Designer and code editor synchronize continuously. This allows to seamlessly switch between the two ways of working. The code editor has powerful syntax highlighting and auto complete features.
 
For professional users it is much more efficient to create and edit OTX in a code editor, especially for big OTX projects. EMOTIVE has developed OTL - Open Test Language. OTL is a Java-like scripting language for the OTX. Designer and code editor synchronize continuously. This allows to seamlessly switch between the two ways of working. The code editor has powerful syntax highlighting and auto complete features.
 +
 +
To open an OTX document in the OTL editor, you can right click on the document node (or a procedure node in that document) and select the 'View code (OTL)' menu, or you can select the document node (or a procedure node in that document) and press 'F7' key.
 +
 +
...
  
 
The structure and features of the OTL code editor are described in the following sections.
 
The structure and features of the OTL code editor are described in the following sections.
  
==Structure==
+
== OTL Editor Features ==
  
  
Line 14: Line 18:
 
{{ImageStyleCenter|OtfOtlCodeEditor.png|1000|OTL code editor}}
 
{{ImageStyleCenter|OtfOtlCodeEditor.png|1000|OTL code editor}}
  
The OTL has the similar structure of an OTX document.
+
<!--The OTL has the similar structure of an OTX document.-->
 +
 
 +
=== OTX VS OTL ===
 +
The OTL has the similar structure of an OTX document. It has a document info section, a global element section and some procedure (local) sections.
 +
 
 +
=== Line Numbers ===
 +
 
 +
With line numbers, you can trace your OTL code easily. Line numbers aren't added to your code; they're just for reference. To show or hide the line numbers, you can use the right click menu of the OTL editor and select the 'Show line numbers' menu. You can also switch the current view of the editor to a particular line number with the right click menu 'Go to line' or with the key shortcut 'CTRL + G'.
 +
 
 +
=== Collapsable Code Block ===
 +
 
 +
The OTL support users folding the code block to manage large amounts of code while viewing only those subsections in needed time. If a block is unfolded, the folding toggle box [-] indicates the beginning of the region while the line extending below the square box indicates the extent of the code region, the line ends with an edge '&#x0221F;' which marks the end of the block. For folded blocks, the toggle box is shown as [+] with the [...].
 +
 
 +
To collapse (hide) a code block, you can click on the box [-] at the beginning of that block. To expand (show) a collapse block, you can click on the box [+] or double clicking on the [...] of that block. You can also collapse or expand all the code blocks by using the right click menu of the OTL editor or using the key shortcuts (Collapse All: 'CTRL + SHIFT + E' and Expand All: 'CTRL + E').
 +
 
 +
 
 +
 
 
|}
 
|}

Revision as of 08:32, 23 November 2018

UNDER DEVELOPMENT...

Overview

For professional users it is much more efficient to create and edit OTX in a code editor, especially for big OTX projects. EMOTIVE has developed OTL - Open Test Language. OTL is a Java-like scripting language for the OTX. Designer and code editor synchronize continuously. This allows to seamlessly switch between the two ways of working. The code editor has powerful syntax highlighting and auto complete features.

To open an OTX document in the OTL editor, you can right click on the document node (or a procedure node in that document) and select the 'View code (OTL)' menu, or you can select the document node (or a procedure node in that document) and press 'F7' key.

...

The structure and features of the OTL code editor are described in the following sections.

OTL Editor Features

OtfOtlCodeEditor.png
OTL code editor


OTX VS OTL

The OTL has the similar structure of an OTX document. It has a document info section, a global element section and some procedure (local) sections.

Line Numbers

With line numbers, you can trace your OTL code easily. Line numbers aren't added to your code; they're just for reference. To show or hide the line numbers, you can use the right click menu of the OTL editor and select the 'Show line numbers' menu. You can also switch the current view of the editor to a particular line number with the right click menu 'Go to line' or with the key shortcut 'CTRL + G'.

Collapsable Code Block

The OTL support users folding the code block to manage large amounts of code while viewing only those subsections in needed time. If a block is unfolded, the folding toggle box [-] indicates the beginning of the region while the line extending below the square box indicates the extent of the code region, the line ends with an edge '∟' which marks the end of the block. For folded blocks, the toggle box is shown as [+] with the [...].

To collapse (hide) a code block, you can click on the box [-] at the beginning of that block. To expand (show) a collapse block, you can click on the box [+] or double clicking on the [...] of that block. You can also collapse or expand all the code blocks by using the right click menu of the OTL editor or using the key shortcuts (Collapse All: 'CTRL + SHIFT + E' and Expand All: 'CTRL + E').