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.
Launch
Silk Performer.
In the
Silk Performer menu, click
Settings
> System.
Click the
Recorder icon.
The
Recording Profiles page opens.
Click
Add to add a new recording profile for Java.
The
Recording Profile dialog box opens.
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.
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.
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.
In the
Application type list box, make sure that
Custom Application is selected.
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.
Click
OK to add the new Java profile to the list.
Ensure that you record the script in
Silk Performer with the newly created recording profile before invoking and running the test in
Java Explorer.
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).