The Page Fragment test element allows you to substitute a page fragment on your site with an alternate page fragment. There are two types of page fragment substitution:

For example, if you wanted to test a new navigation bar, you’d want to replace all navigation bars throughout the site with the test one so that test group sees a consistent navigation bar regardless of what page they view. In that case, replacing a page fragment everywhere it appears would be appropriate. In other circumstances, if you want to test a search box on the home page, for example, you might only want to test a particular use of a page fragment.

Follow these steps to set up a test element for testing page fragments.

  1. Create a new test or edit an existing test. See Creating a New Test or Editing Tests for more information.

  2. Select the Test Groups tab and set up the test groups for the test. See Defining Test Groups for more information.

  3. Click the New Element button in the test group that you want to test.

  4. Select Page Fragment and click Next. The Replace Page Fragment window opens.

  5. Select the page fragment that you want to replace from the list of files or enter a file name. Click Next. The Select New Page Fragment window opens.

  6. Select the page fragment you want to use in the test or enter a file name. Click Next to select the locations where you want the replacement to occur. Click Finish if you want to the replacement to occur everywhere the original page fragment is used. If you click Next, the Select Substitute Location window opens.

  7. Choose one of the following and click Finish.

    • Select Everywhere it occurs to replace the page fragment with the test fragment every time the fragment is used on the site.

    • Select Only at the following location if you want the page fragment replaced only when it is used on a specific page. Select the page or enter a file name.

After finishing the test element, you can add another element to the test group, preview the test group or start the test. See Previewing Tests and Completing and Deploying Tests for more information.