Enabling Cross-Domain Browser Tests

Document created by Chris Sommerstad Employee on Jul 20, 2017
Version 1Show Document
  • View in full screen mode

Test compositions that use WebUI/Ajax clips that utilize URLs from more than one domain, or that hit URLs requiring persmission, require some additional configuration steps to succeed.

These steps include:

  • Selecting a cross-domain option for browser playback in the relevant target(s)
  • Ensuring that the SOASTA Conductor in use in the test has multi-window support enabled.

Note: This is often first noticed when SOASTA CloudTest has already successfully recorded the browser actions in a test clip, but when played back the clip produces a "Transport Error" in the composition such as the one shown on the right. Note that Multi-Window support in SOASTA Conductor is enabled by default but this setting should be checked whenever the Transport Error shown below is encountered:

 

Error reported from Conductor: Name's conductor running Firefox: Coordinator fault: 'Conductor exception: Permission denied to get property Location.href (com.soasta.com.exceptions.Conductor.Exception)' (Conductor fault, operation: "performRemoteAction".)

 

Ensure Conductor Multi-Window Support Is Enabled

Before making any changes to the composition or its underlying system properties, ensure that each Conductor(s) in use with the composition, or tracks if more than one is defined, has multi-window support enabled.

  1. Open SOASTA Conductor application > Preferences > and check to ensure that "Multi-window ajax support" is checked.

 

Enable Cross-Domain Using a System Property Override

  1. With the composition open in the Composition Editor, click the Properties tab.

  1. The Properties screen will open showing a tree of the components of the Test Composition.
  2. Select the clip in the tree. For example, under Track 1, select SOASTA Store WebUI as shown on the right.
  3. Select the Property Sets tab. This is where you will set Browser Type (via a System Property override).
  4. In the Property Sets tab, Other Property Sets section, click the green Plus icon.

  1. A new row is added to the Other Property Sets list and icons appear in the original row. Cick the Path button (...). In the remaining steps we will override the default Conductor value of the given target and repeat that for each clip instance in this test.

  1. The Path dialog box appears. Select the target (e.g. SOASTA Store UI)
  2. In the System tab on the right, select the Browser Type system property.
  3. Click OK to exit the Path dialog box.

  1. The row is populated with the Browser Type property. Choose a Browser Type override value for this clip. For example, Firefox Cross-Domain or IE Cross Domain.
  2. Save the composition after making any changes.

Enable Cross-Domain Using the Target Editor

The same steps can be accomplished via the Target Editor rather than through the use of system property overrides as shown above. In some cases, it may be desirable to edit the target itself, rather than using an override. This method is probably just as useful if the settings for the given target will remain the same for every clip that uses that target.

  1. First, identify the target whose properties you want to change. Select the test clip in the Composition Editor.
  2. Right-click and then choose Open in New Tab from the context menu.

In Clip Editor, Messages/Actions tab, note the Included Target(s) listed. For each of these targets, cross-domain support must be enabled at the target level. For example, the clip on the right has one target, SOASTA Store UI.

  1. Once identified, double-click the target in the Included Target list to open it in the Target Editor.

  1. Click Central > Targets, locate the given target in the list, and double-click to open it.

The target opens in the Target Editor.

  1. Locate the Target Info, Settings, Browser drop-down and select from among Firefox Cross-Domain (not the standard Firefox option) or IE Cross-Domain (if this test is conducted in Internet Explorer).
  2. Click the Target item in the properties tree on the left and then select the Browser Type field.
  3. Click the Browser Type drop-down and select the option for Firefox cross-domain (not the standard Firefox option).
  4. Save the target after making any changes.

 

Attachments

    Outcomes