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.
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.
- Create a Web - HTTP/HTML protocol script .
- Select Record > Recording Options > HTTP Properties > Advanced and then click Headers.
- In the Headers dialog box, select Record headers in list.
- From the Headers list, select the x-gwt-permutation header check box.
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
Select Record > Recording Options > Data Format Extension > Chain Configuration.
Under Chains, click to create and name a new DFE chain.
In the Add Data Format Extension dialog box, select GWT Extension and click OK.
In the Add GWT dialog box, specify the classpath entries:
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>
If you do not have write access, it will just add the .war file without extracting its contents.
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.
Select Recording Options > Data Format Extension > Code Generation.
Select the Enable data format extension check box.
Under Configuration, select Code and snapshots from the Format list.
Under Chain Assignment, select Body and select a chain. Select Headers and choose the same chain.