Custom Web Publishing Guide

Table Of Contents
Chapter 6
Testing and monitoring a site
Test your Custom Web Publishing site before deploying it. You can use log files to monitor the site during
testing or after deployment.
Testing a Custom Web Publishing site
Before notifying users that your Custom Web Publishing site is available, it is important to verify that it looks
and functions as you expect.
1 Test features like finding, adding, deleting, and sorting records with different accounts and privilege sets.
1 Verify that various privilege sets are performing as expected by logging in with different accounts. Make
sure unauthorized users can’t access or modify your data.
1 Check all scripts to verify that the outcome is expected. See “FileMaker scripts and Custom Web
Publishing” on page 13 for information on designing web-friendly scripts.
1 Test your site with different operating systems and web browsers.
Note If you don’t have a network connection and you have installed the web server, Web Publishing Engine,
and FileMaker Server on one computer, you can test your Custom Web Publishing site by using
http://localhost/ or http://127.0.0.1/ in the URL. For information on the URL syntax, see “About
the URL syntax for XML data and container objects” on page 23, and “About the URL syntax for FileMaker
XSLT stylesheets” on page 48.
Examples of stylesheets for testing XML output
Here are two examples of XSLT stylesheets that are useful for testing XML output.
1 The following stylesheet example outputs the requested XML data without doing any transformation. This
stylesheet is useful for displaying the actual XML data that the Web Publishing Engine is using.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fmrs="http://www.filemaker.com/xml/fmresultset">
<xsl:output method="xml"/>
<xsl:template match="/">
<xsl:copy-of select="."/>
</xsl:template>
</xsl:stylesheet>