Web - HTTP/HTML Vuser scripts
SAP - Web Vuser scripts
Web - HTTP/HTML steps inside Flex Vuser scripts
The GWT-DFE support helps to generate Vuser scripts for GWT-based websites that use the GWT-RPC mechanism. When you record a GWT-RPC based website without enabling the GWT-DFE support, the resulting Vuser script may contain significant amounts of data that is cryptic and therefore difficult to decipher, as shown in the code segment below:
The encoded data format makes it difficult to identify text strings that you may want to use for correlation, parameterization, and verification.
Tip: The presence of numerous pipes in the recorded data indicates that the recorded site may be a GWT-based website that uses the GWT-RPC mechanism.
When you enable GWT-DFE support, VuGen is able to decode much of the complex data in the HTTP responses and requests. This enables VuGen to generate Vuser scripts that contain data in XML format. In addition, the original coded data contains only values, without the associated names of the data fields. After applying GWT-DFE, the resulting XML-formatted data includes both the names and the values of the data fields. The XML-formatted data in the scripts is therefore easier to decipher, making the scripts easier to correlate, parameterize, and use for verification purposes.
To enable VuGen to decode the complex data in the HTTP communication, you must identify the .war file that is used by the web application. Occasionally, an application uses .jar files. All considerations below about .war files apply equally to .jar.
The .war file contains the logic used by GWT to encode and decode the information in the HTTP communication. VuGen needs access to the .war file so that VuGen can perform similar encoding and decoding procedures. Typically, these .war files are located on the application server, under the web applications folder.
Note: Make sure that the .war file that you associate with the Vuser script is the most up-to-date .war file for your application. The .war file is changed each time changes are made to the web application. GWT-DFE support will function correctly only if the most up-to-date .war file is available.
- GWT-DFE provides an automatic solution for GWT specific (STRONG_NAME_HEADER) correlations.
VuGen is able to parse Client Fields with GWT-DFE.
|Original Script - without GWT-DFE Support|
|GWT User|inside object|java.util.HashSet/1594477813|java.lang.String/2004016611|add string1|
|Script after applying GWT-DFE Support|
Auto-detection of GWT remote procedure calls (RPCs)
When VuGen generates or regenerates a Vuser script, VuGen scans the HTTP headers in the requests that are sent to the server. If VuGen detects both a x-gwt-module-base text string and a x-gwt-permutation text string in any of these HTTP headers, VuGen displays a warning in the VuGen Error tab. The warning recommends that you enable GWT-DFE for the Vuser script.
Note: VuGen will continue to issue the above warning - each time the script is generated or regenerated - until the GWT-DFE is enabled.