Learning center

FAQ

All commonly asked questions are posted here. Questions are classified by gategories to help you quickly access answers - click on a category below. Feel free to contact us if you are not able to find the answer here.

How does the graphical editor work?

You can choose between using the text-based editor or the menu-based (graphical) script editor when writing load scripts for your user scenarios. This guide will go through the menu-based editor.

The menu-based editor is split into 2 major parts: the left side, containing example use cases, and the right side, containing the actual editing area where you edit your load script code.


The use-case menu


picture of left-side menu

<—- This is a screenshot of the left side use-case menu, with its predefined use cases.

– Click on any of the use cases and the corresponding example code will be loaded into the editing area.

– This menu is collapsible – if you want to hide it you just press the small button in the top right corner.

















The editing area


The right side of the editor contains the editing area. This is where you can write your code using the editor’s built-in menu system. This is a sample screenshot of the editing area.
picture of the editing area






Buttons/controls

Editor element Description
picture of undo/redo buttons Undo/redo – undo or redo latest changes
picture of clear script button Clear script – erase script and start with a blank screen
picture of add statement button Add statement – Add a new statement
picture of change icon Change statement – change item (where “item” can be an expression, a constant, a variable, etc)
picture of an input field Input field – Field where you can type in text or numbers. Input fields can be of several different sub-types, see below.


Input fields


A lot of the things you can do in the editor requires you to input text information into various input fields. Whenever you have the option to input something into a field, you will see a dotted box around the field. The color and style of the text inside the input field, and the box surrounding it, may vary depending on the type of input expected, but the box will always be there to indicate that you can input text (or numbers) into the field.

Input field screenshot Characteristics Description
picture of variable name input field Purple, bold, italic text inside an input box Variable name – Input field that allows you to enter the name of a variable that is to be referenced.
picture of text constant input field Gray text inside an input box, enclosed by single quotes Text constant – Input field that allows you to enter a text constant (string).
picture of numeric input field Blue text inside an input box Numeric constant – Input field that allow you to enter a numeric constant (number).
picture of HTTP response item name input field Bold, black text inside an input box, enclosed by single quotes HTTP response item name input field – Input field that allows you to enter the name of an item that is to be referenced in a HTTP response object (basically, a specific sort of array index).



Code sections

In order to make it easier to read code in the editor, different code sections are enclosed in boxes and has different background colors, depending on their type:

Description Example
Statement

Statements are enclosed in boxes with yellowish/green background. On the image you can see an array assignment statement.
Statement background color
Comment

Comments are enclosed in light gray boxes. The comment text is a normal text input box.

Comment box
Logical expression

Logical expressions have a pink/orange background.
Logical expression



See also: - How does the text editor work?
- The Load Impact load script tutorial
- The Load Impact load script API


Permalink