wiki:TwillProcessorMacro

Twill Processor Macro Plugin

Description

This plugin integrates Twill in Trac wiki pages. Twill is a simple Python-based domain specific language (DSL) originally intended for Web site testing. Twill itself is BSD-licensed.

Bugs/Feature Requests

Existing bugs and feature requests for TwillProcessorMacro are here.

If you have any issues, create a new ticket.

Download

Download the plugin from https://bitbucket.org/trbs/trac-twill-macro/raw/2be4460c5f79/TracTwillProcessor.py to your Trac plugin directory. This plugin requires a proper setup.py file.

Source

You can check out TwillProcessorMacro using:

hg clone https://bitbucket.org/trbs/trac-twill-macro

Or you can view it online at bitbucket.

Configuration

The following options are available:

  • continue_on_errors: Continue executing commands even after a command has failed.
  • echo: Turn on both echo_commands and echo_responses.
  • echo_commands: Print commands when executing.
  • echo_responses: Print results of the commands when executing.
  • header <text>: Use this text instead of 'twill' in the header of the result.

You can specify them in your script by putting them on separate lines prefixed by a hash (#) symbol, see below for examples.

Example

#!twill
#header Does trac-hacks.org yield http 200

go https://trac-hacks.org
code 200
#!twill
#header Does trac-hacks.org yield http 200

agent ie6
go http://somewhere.org
code 200
find something

Screenshot

Recent Changes

9922 by trbs on 2011-03-02 23:43:24
New hack TwillProcessorMacro, created by trbs
(more)

Author/Contributors

Author: trbs
Maintainer: trbs
Contributors:

Last modified 3 months ago Last modified on Feb 14, 2016, 9:15:05 AM

Attachments (1)

Download all attachments as: .zip