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 Create and open 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 JVM, select this option and configure the path of the external JRE (Java Runtime Environment) for 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