How to Record a Flex Script
This task describes how to record a script using the Flex Vuser protocol.
Select New Script and Solution > Flex protocol
For details, see Creating or Opening Vuser Scripts.
The recording options contain options that affect the way that a Vuser script is generated after recording or regenerating the script.
In a Flex script, you will need to configure the following recording options:
Recording options > Flex > RTMP > Generate single step for RTMPT/Streaming
This option, selected by default, enables VuGen to create a single step while recording a stream. However, when you create a single step, certain actions are not replayed, such as pause and seek. If you want to be able to replay these actions, disable the option.
Recording Options > Flex > Configuration > Use External JVM
If you are using an external Java Virtual Machine select this option and configure the path of the JVM in the value field.
Recording Options > Flex > Configuration > Use GraniteDS
Check this option if you are using GraniteDS as a sever side Data Service configuration.
Recording Options > Flex > Externalizable Objects
This option enables you to specify additional .jars that are required to record your script.
For details, see Externalizable Objects in Flex Scripts.
Recording Options > HTTP Properties > Advanced
Make sure that the Save snapshot resources locally option is enabled, as local snapshots are required for data loading.
For details, see HTTP Properties > Advanced Recording Options.
For concept and user interface details, see Recording Options.
When creating a new script, this occurs automatically. To manually start recording, click the Start Record button on the VuGen toolbar, complete the Start Recording dialog box, and then click Start Recording. VuGen's floating toolbar appears, VuGen opens your application and begins recording your actions.
Perform the desired business processes that you wish to record. The floating toolbar allows you to insert transactions, rendezvous points, and comments. You can also use the floating toolbar to specify into which section of the script to record. For user interface details, see Floating Recording Toolbar.
Click the Stop button on the floating toolbar when you are finished recording.
After recording, regenerate the script to determine if all the steps have been correctly parsed.
For details, see Code Generation in the Flex Protocol.