Developed by Gene Mitelman (gene@smartedgellc.com).
Web site: www.smartedgellc.com.
readme.html | this file |
license.txt | GNU license |
xmlmessagetest.jar | a jar file with executable code |
xmlmessagetest-src.jar | a jar file with source code |
tests | a directory containing sample tests |
java -jar xmlmessagetest.jar http://www.smartedgellc.com/xmlmessagetest/xmlmessage tests
Any comments... (no special characters are needed to start the lines)
#MESSAGEIN: Add two numbers
<Add>
<param1>5</param1>
<param2>10</param2>
</Add>
#MESSAGEOUT
<Result>
<value>15</value>
</Result>
#MESSAGEIN
on a line above the actual XML message to be sent.
It should be followed with ":" and a description of the request, so that you can quickly zero in on failed tests.<%=
and %>
. The name of the
parameter must reflect the whole hierarchy. For example, if a prior response returned a parameter named <sessionid>
as part of <Session>
message, it can be sent in a follow up request as <%=Session.sessionid%>
instead of a hard-coded value.#MESSAGEOUT
on a line above the actual XML message expected back.<sessionid>1000</sessionid>
or
a parameter from prior response, such as <sessionid><%=Session.sessionid%></sessionid>
, or a
combination thereof.Test | will match the word "Test" | |
30 | will match number "30" | |
Echo <%=value%> | will match "Echo " followed by value parameter from a prior response | |
Test\. | will match the sentence "Test." (notice the period) | |
Test.* | will match any value starting with "Test" | |
.*Test | will match any value ending with "Test" | |
.*test.* | will match any value containing "test" | |
.* | will match any value | |
\d | will match a single digit | |
\d* | will match any number of digits | |
[a-zA-Z] | will match a single letter | |
[a-zA-Z]* | will match a single word |
java -jar xmlmessagetest.jar "url-to-run-against" "test-directory"
java -jar xmlmessagetest.jar "url-to-run-against" "test-directory" > "output-file"
<Values>
<value>2</value>
<value>3</value>
</Value>