Navigation Menu

Skip to content

Commit

Permalink
Make sure we have XML messages for use with with xpathselect, for exa…
Browse files Browse the repository at this point in the history
…mple
  • Loading branch information
Michael Bridgen committed Sep 25, 2009
1 parent 44007fb commit 16ac035
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/performance/src/receiver_grinder_util.py
Expand Up @@ -12,7 +12,7 @@
grinder.statistics.registerSummaryExpression("Mean delivery time (ms)",
"(/ userLong1 (count timedTests))")

EXTRACT_ID_RE = re.compile(r".*\|\|MSG_ID=(.*)\|\|$")
EXTRACT_ID_RE = re.compile(r".*\|\|MSG_ID=(.*)\|\|.*$")

class ReceiverTestRunner(FeedsTestRunner):

Expand Down
1 change: 1 addition & 0 deletions test/performance/src/xml-messages.txt
@@ -0,0 +1 @@
<foo>MSG_ID</foo>
6 changes: 3 additions & 3 deletions test/performance/tests/new-thrash/sender.properties
Expand Up @@ -43,12 +43,12 @@ streams.test.msg_rate=0

# The file containing the message set to send. Each line in the file is treated
# as a message. There is no default value.
streams.test.message_set_file=test/performance/src/test-messages.txt
streams.test.message_set_file=test/performance/src/xml-messages.txt

# The regular expression to use to extract messages from the source file. The
# default is <label network=".*">(.*)</label>
#streams.test.extract_msg_re=
streams.test.extract_msg_re=(.*)

# The regular expression to use to insert an ID into a message. The default is
# $, i.e., at the end of the message
#streams.test.insert_id_re=
streams.test.insert_id_re=MSG_ID

0 comments on commit 16ac035

Please sign in to comment.