Implementing GWT-DFE Support

Applies to:

  • Web - HTTP/HTML Vuser scripts

  • Web - HTTP/HTML steps inside Flex Vuser scripts

This topic provides additional information about implementing DFE support, as described in Implement Data Format Extension (DFE) Support.

Prerequisites for implementing GWT-DFE support

LoadRunner includes OpenJDK 7 JRE. However, some applications may be compiled for JVM1.8 and higher. If your application is compiled with JDK1.8 or higher, replace the <;LoadRunner>\lib\openjdk32\jre folder with your own OpenJDK 8 or higher JRE before recording a GWT application.

Back to top

Recording GWT-DFE Headers

As part of the GWT-DFE support implementation process, it is necessary to specify that VuGen record x-gwt-permutation headers when recording business processes. This procedure, as described below, can be performed at any stage of the GWT-DFE support implementation process.

  1. Create a Web - HTTP/HTML protocol script .
  2. Select Record > Recording Options > HTTP Properties > Advanced and then click Headers.
  3. In the Headers dialog box, select Record headers in list.
  4. From the Headers list, select the x-gwt-permutation header check box.

Back to top

Applying GWT-DFE chains

When you implement any DFE support, you must apply the DFE chains to specific sections of the HTTP communication. The basic process is described in Apply DFE Chains to Sections of the HTTP Message. This topic includes information required when assigning chains while implementing GWT-DFE support.

When you assign the chains while implementing GWT-DFE support, you must specify the classpath entries that are associated with the application that is operated by the Vusers. To assign the classpath entries, you must have access to the GWT WAR folder that is used by your development team. The WAR folder includes the following file types:

  • *.gwt.rpc files
  • *.jar files
  • *.class files

Specifying the classpath entries

  1. Select Record > Recording Options > Data Format Extension > Chain Configuration.

  2. Under Chains, click to create and name a new DFE chain.

  3. Click .

  4. In the Add Data Format Extension dialog box, select GWT Extension and click OK.

  5. In the Add GWT dialog box, specify the classpath entries:

    1. If the classpath entries are contained in a single .war file, click and then specify the location of the .war file.

      Note: If you have write permissions in the folder containing the .war file, it automatically creates a new folder with the extracted contents. It adds the specific classes/jars to VuGen in the following structure:

      <ServerDir>\<applicationDir>\<MyGWTApplication>\<SomeDirContaining .gwt.rpc file>

      • WEB-INF\classes
      • WEB-INF\lib\gwt-servlet.jar
      • WEB-INF\lib\gwt-servlet-deps.jar
      • WEB-INF\lib\log4j.jar
      • WEB-INF\lib\<AdditionalAUTRelatedJarFile>.jar

      If you do not have write access, it will just add the .war file without extracting its contents.

    2. If the classpath entries are not contained in a single .war file:

      • Click to add the folder that contains .gwt.rpc files.
      • Click to add the application classes folder.
      • Click to add the application JAR files from the WEB-INF\lib folder.

      Note: If the location of the classpath entries is not the same on the computer on which the script was recorded and the computer on which the script will be replayed, then you must modify the runtime settings for the script. Select Replay > Runtime Settings > Data Format Extension > Chain Configuration and specify the location of the classpath entries on the computer on which the script will be replayed.

  6. Select Recording Options > Data Format Extension > Code Generation.

  7. Select the Enable data format extension check box.

  8. Under Configuration, select Code and snapshots from the Format list.

  9. Under Chain Assignment, select Body and select a chain. Select Headers and choose the same chain.

  10. Click OK.

Back to top

See also: