[jdev] Jabber test program and protocol

Helck, Christopher chelck at ebs.com
Wed Mar 24 17:11:23 CST 2004


Is there any interest in developing an open source test harness and protocol
for jabber?

I'm thinking of something along the lines of JUnit except that tests are
written in XML. The test harness connects to a jabber component and sends
stanzas to the component. It collects replies from the component and
compares them against expected results. So here's a sample script:

<snippet>
  <send>
    <iq type="get"  .../>
  </send>

  <expect>
    <assert_match>
      <iq type="result" ... />
    </assert_match>
  </expect>
</snippet>

The elipsis are not part of the script -- I'm just a lazy typest. Obviously
the protocol is more involved. Assertions based on smart XML comparisons,
regex, and XPath could be supported. Timeouts would have to be handled. A
single test script could talk to multiple components. I'd like to be able to
run the test against processes and libraries. The later allows more
JUnit-like unit testing. Some sort of support for properties is needed.
Plugins and so on.

You could use this tool to test jabberd, muc, or clients.

At this point I'm mostly interested in the test script protocol. If it were
an open source protocol than someone else could implement the test harness
itself :-). Could such a protocol become a JEP? 

Comments?

-C. Helck



The information contained in this e-mail is confidential. This e-mail is intended only for the stated addressee.  If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this e-mail. if you have received this e-mail in error, please inform us immediately and delete it and all copies from your system.

EBS Dealing Resources International Limited.  Registered address:  55-56 Lincoln's Inn Fields, London WC2A 3LJ, United Kingdom. Registered number 2633663.

EBS Dealing Resources, Inc, registered in Delaware. Address: 535 Madison Avenue, 24th Floor, New York, NY 10022, USA, and One upper Pond road, Building F - Floor 3, Parsippany, NJ 07054, USA.

EBS Dealing Resources Japan Limited, a Japanese Corporation. Address: Asteer Kayabacho Bldg, 6th Floor, 1-6-1, Shinkawa, Chuo-Ku,  Tokyo 104-0033, Japan.



More information about the JDev mailing list