Testing Transclusion module

A number of sample pages are distributed with the module to demonstrate the process of relinking and form submission.

The tests can be automated, but also experimented with by hand. To begin:

  1. Enable the transclusion entity module. This provides a 'Wrapper' content type. (yeah, the naming is confusing, but deliberately simplified for real-world use). It has some dependencies, in order to re-use existing useful field types. The transclusion functionality can be enabled without 'Wrapper', but 'Wrapper' is a quickstart and most common use-case.
  2. Check that the status at /admin/structure/features/transclusion_entity is clean. Revert it if not.
  3. Create a page of type 'wrapper' just for testing. Leave the body content empty for now.
  4. Set the URL source as http://your server/sites/all/modules/transclusion/tests/content or the equivalent for your setup. If using a strictly local or *new* top level domain (TLD) you maybe will need to change the link field settings to *not* validate URLs before you can test on localised domain names.
  5. Set the extraction method to XPATH and the pattern to //div[@id="content"]. //body also works well for simple scrapes.
  6. This should produce a coherant set of pages, each containing (at least) the word "PASS". To test, visit the Node you have created and click around. Content you see there is all loaded via 'transclusion' and is effectively being proxied.
  7. To continue testing, switch to a different external URL and see how it performs.