Playground Testing

Playgrounds can be tested in single user mode using the PTTP test harness available at http://pttp.mediaplaygrounds.co.uk.

An example form can be found in http://pttp.mediaplaygrounds.co.uk/forms.
You can copy this form and use it from your own site, or even as a file:/// from your own disk - as long as the POST URL is correct.
The form data will be converted to XML attributes and sent to socket “zelig”. It will be null terminated.
The POST URL can have various attributes in its query string. Most Playground designers will only need to set socket= and toy=. Other options are mainly for testing PTTP queuing.

toy=[toy name] Toy name will be used as the top level XML element.
socket=[socket name] Your own private socket name.
socket=zelig The public socket name.
socket=null XML goes to a black hole.
socket=echo Only use with status=echo. Echoes XML back in the response web page.
XML=attributes Send form data as XML attributes (default).
XML=data Send form data as XML data.
XML=none Send form as Lval=Rval, each on a separate line.
XML=raw Send form data as it was received.
status=[nnn] Return status code of nnn (default is 204 No Content).
status=echo Echo the HTTP headers.
redirect=[URL] Set the HTTP Location: header. Use in conjunction with status=3xx to redirect.
 
pttp/playground_testing.txt · Last modified: 2009/01/03 22:41 by tarim
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki