Record a Flex Script

Note: You can generate a Flex Vuser script by analyzing an existing network traffic file (capture file). This method may be useful for creating Vuser scripts that emulate activity on mobile applications. For details, see Create a Vuser Script by Analyzing a Captured Traffic File.

  1. Create a new script or open an existing script.

    Select New Script and Solution > Flex protocol. For details, see Creating or Opening Vuser Scripts.

  2. Configure the recording options. The recording options affect the way that a Vuser script is generated after recording or regenerating the script.

    • 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

      Select 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.

  3. Initialize the recording session.

    When creating a new script, this occurs automatically. To manually start recording, click Start Record 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. For user interface details, see Start Recording Dialog Box. For details on the script sections into which you can record, see Vuser Script Sections.

  4. Perform business processes on your application.

    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 Stop on the floating toolbar when you are finished recording.

  5. Regenerate the script to determine if all the steps were parsed correctly. For details, see Code Generation in the Flex Protocol.

Back to top