Menu

#12 dynamic urls not possible

open
nobody
None
5
2002-08-23
2002-08-23
No

puffin only supports static urls for test actions. this
is problematic in the case where an action needs to
visit a url generated during the course of the tests.

this following was done as a hack against the current
puffin source code to allow actions to have dynamic
paths. testaction.py execute method

puffinlogging.frameworkLoggingChannel.debug('Dynamic
URI Processing')
path = self.getPath()
if path.count('$$$') > 0:
path = tokenprocessing.replaceTokens(path,
tokenDictionary)
self.setPath(path)

Discussion


Log in to post a comment.

MongoDB Logo MongoDB