Test a web socket based application

Testing a web socket application involves validating application headers, validating web socket URIs and and overall testing.

Testing using header simulation allows you to validate header fields if required.
Complete testing should always be performed to validate that the application is behaving as expected for all URIs.

Topics

 

Configure application for simulation testing

Important Note

Important

This section covers testing using header based simulation and is only required if testing passing of values using application headers.

To configure an application for header simulation testing:

  1. Navigate to the Access Gateway Admin UI console
  2. From the Topology tab or the Applications tab, open the application.
  3. Select the Settings pane.
  4. Expand the Essentials sub tab.
  5. Note the current value of Protected Web Resource.
  6. Change the Protected Web Resource field to:
    ValueBehavior
    https://header.service.spgwWhen running a test, results in the display of information related to the header, cookie, session, and other information.
    Important Note

    Important

    Copy and save the original back end Protected Web Resource value.

  7. Expand the Advanced sub-tab.
  8. Set the Debug toggle to Enable.
    The debug toggle, which can be found in the Advanced application settings.
  9. Click Done.
  10. Tip

    Tip

    When debugging header based applications: Consider testing attributes with static known good values. For example, change dynamic IDP based fields to static with known good values.
    When debugging policy based applications: Test with no policy or open policy first.

Simulation testing

Header and policy simulation testing involves temporarily replacing the Protected Web resource field in an application and then testing various target URLs, evaluating whether the headers and policies return the expected result.

To test an application using header or policy simulation:

  1. Configure the application for header or policy simulation testing as described in the Configure application for simulation testing section.
  2. Connect to the Access Gateway Management console and begin monitoring.
    For details see the monitoring section in Troubleshooting Applications.
  3. Select the Applications tab.
  4. On the row containing the application, click Goto application > SP Initiated.
  5. Examine the header or policy information returned.
  6. Repeat for each protected URI.
  7. When complete disable debugging as described in the Disable debug section.

Completed application testing

Completed application testing as required.

  1. Return to the application.
  2. Return the Projected Web Resource to its original production value and save changes.
  3. The Applications tab, on the row containing the application, click Goto application > SP Initiated.
  4. Repeat testing using Goto application > IDP Initiated.
  5. Repeat testing using each specialized policy URI.
  6. If required, disable debugging.

Disable debug

  1. Return to the Access Gateway Management console.
  2. Enter [ctrl][c] to exit the log display.
  3. Enter 3 - Disable debug.
  4. Exit the command line console
  5. Return to the Access Gateway Admin UI console
  6. Navigate to the application being tested
  7. Expand the Setting sub tab.
  8. Expand the Essentials sub tab.
  9. Return the Protected Web Resource field back to its original value.
  10. Expand the Advanced sub tab.
  11. Set the Debug toggle to Disable.
  12. Save your changes.