extensions (version 0.8.8, 30 April 2002) | index c:\work\puffin\extensions.py |
The Puffin Framework is extensible in many ways. Each of the following
components can be customized:
-- input value generator - Generates a value for a given input for a test action.
-- input value list generator - Generate a list of values for a given input. Each time
the input is processed, the next value in the list is returned.
-- output extractor - Extracts a value for a given output for a test action. This can
be from the HTTP response, or from processing some previously processed value
from the token dictionary or simply the result from a custom python script.
-- response analyzer - Upon receipt of an HTTP response from the execution of a test
action, you can analyze those results to determine whether or not the test
action was successful or not. For example, you could filter the response for
a specific value or see if the server returned a specified HTTP code.
-------------------------------------------------------
Custom Input Value Generator Functions:
Custom Input Value Generator functions must match the following method signature:
def functionName(tokenDictionary, paramDictionary):
# Generate a value.
return customValue
Note that all input value generator functions must accept a tokenDictionary and a
paramDictionary, though you need not use either argument value.
-------------------------------------------------------
Custom Input Value List Generator Functions:
Custom Input Value List Generator Functions must match the same method signature:
def functionName(tokenDictionary, paramDictionary):
# Generate a value.
return customValueList
Note that all input value list generator functions must accept a tokenDictionary and a
paramDictionary, though you need not use either argument value. Also, an input value list
generator function must return a list of values.
-------------------------------------------------------
Custom Output Value Extractor Functions:
Custom output value extractor functions must match the following method signature:
def extractorName(actionResponse, tokenDictionary, paramDictionary):
# Extract a single value from the response (or create one).
return extractedValue
Note that all output extractor functions must accept an actionResponse, a tokenDictionary and
a paramDictionary. However, like in the input generator functions, you need not use any of
these. The value you "extract" could be completely custom created.
-------------------------------------------------------
Custom Response Analyzers:
All custom response analyzers are classes that extend the responseanalyzer.ResponseAnalyzer
class. See that class for more details.
Modules | ||||||
|
Classes | ||||||||||
|
Functions | ||
|
Data | ||
ARPA = <lazy module 'mx.DateTime.ARPA'> April = 4 August = 8 December = 12 Epoch = <DateTime object for '0001-01-01 00:00:00.00' at b08ad0> Feasts = <lazy module 'mx.DateTime.Feasts'> February = 2 Friday = 4 Gregorian = 'Gregorian' ISO = <lazy module 'mx.DateTime.ISO'> January = 1 Julian = 'Julian' July = 7 June = 6 Locale = <lazy module 'mx.DateTime.Locale'> March = 3 MaxDateTime = <DateTime object for '5867440-12-31 00:00:00.00' at adbeb0> MaxDateTimeDelta = <DateTimeDelta object for '2147483647:00:00:00.00' at a3a7d8> May = 5 MinDateTime = <DateTime object for '-5851455-01-01 00:00:00.00' at a79ef8> MinDateTimeDelta = <DateTimeDelta object for '-2147483647:00:00:00.00' at adbe30> Monday = 0 Month = {None: 0, 0: None, 1: 'January', 2: 'February', 3: 'March', 4: 'April', 5: 'May', 6: 'June', 7: 'July', 8: 'August', ...} NIST = <lazy module 'mx.DateTime.NIST'> November = 11 ODMG = <lazy module 'mx.DateTime.ODMG'> October = 10 POSIX = 1 Parser = <lazy module 'mx.DateTime.Parser'> Saturday = 5 September = 9 Sunday = 6 Thursday = 3 Tuesday = 1 Wednesday = 2 Weekday = {0: 'Monday', 1: 'Tuesday', 2: 'Wednesday', 3: 'Thursday', 4: 'Friday', 5: 'Saturday', 6: 'Sunday', 'Friday': 4, 'Monday': 0, 'Saturday': 5, ...} __author__ = 'Keyton Weissinger __date__ = '30 April 2002' __file__ = '.\\extensions.pyc' __name__ = 'extensions' __status__ = 'beta' __version__ = '0.8.8' current_myriad = 245 mxDateTimeAPI = <PyCObject object at 0x00B09210> oneDay = <DateTimeDelta object for '1:00:00:00.00' at b08c78> oneHour = <DateTimeDelta object for '01:00:00.00' at a1f820> oneMinute = <DateTimeDelta object for '00:01:00.00' at a1fe98> oneSecond = <DateTimeDelta object for '00:00:01.00' at 9798e8> oneWeek = <DateTimeDelta object for '7:00:00:00.00' at 9b9ff8> |
Author | ||
Keyton Weissinger <keyton@weissinger.org> |