Capturing an HTTP Response

By default, Java Explorer does not allow you to view the HTTP response when running a test against a Web service. As an alternative, you can use Silk Performer to record and capture the server response.

  1. Launch Silk Performer.
  2. In the Silk Performer menu, click Settings > System .
  3. Click the Recorder icon. The Recording Profiles page opens.
  4. Click Add to add a new recording profile for Java. The Recording Profile dialog box opens.
  5. In the Profile name text box, type a unique name for the Java recording profile. The profile name is required to identify the application in the Silk Performer Recorder window.
  6. In the Application path text box, type the name of the Java application's executable and the directory in which it resides. To locate the executable, click Browse.
    Note: There may be multiple Java executables. Therefore, it is important that the Recording Profile should match the Java executable used in the Java Explorer runtime settings.
  7. In the Working directory text box, type the working directory of the Java application. The working directory is the folder that contains the application or related files. Some applications need files located in other directories, so you might have to specify the folder in which these files reside.
  8. In the Application type list box, make sure that Custom Application is selected.
  9. In the Protocol selection area, select the Web check box, which identifies that the Silk Performer Recorder hooks into a Web application, intercepts all function calls, and displays the results.
  10. Click OK to add the new Java profile to the list.
  11. Ensure that you record the script in Silk Performer with the newly created recording profile before invoking and running the test in Java Explorer.
  12. After you save the recording, you can view the HTTP response in TrueLog Explorer by selecting the In Body tab of the recorded TrueLog file (.xlg).