Revision: 55ab5495d92a
Author: jean.deruelle <[email protected]>
Date: Thu Jun 28 11:53:09 2012
Log: Edited wiki page SipUnit through web user interface.
http://code.google.com/p/commtesting/source/detail?r=55ab5495d92a&repo=wiki
Modified:
/SipUnit.wiki
=======================================
--- /SipUnit.wiki Thu Jun 28 11:50:39 2012
+++ /SipUnit.wiki Thu Jun 28 11:53:09 2012
@@ -12,14 +12,13 @@
# Either extends SipTestCase (Junit 3 style) or statically imports
assert methods from the equivalent class SipAssert (for JUnit 4 and beyond)
# Creates SipUnit API objects - SipStack, SipPhone, SipCall, etc.
- # Calls methods on the object(s) to set up and initiate action toward a
SIP test target. For example: SipPhone.makeCall("sip:[email protected]",
SipResponse.OK, ....) makes a vanilla call to sip:[email protected] and blocks
until an OK is received or a timeout occurs. SipPhone.addBuddy(...) and
SipPhone.refer(...) send out SUBSCRIBE and REFER messages and start a
subscription, etc. The test target could be any node up to and including
the final destination of the outgoing request message.
- # Verifies the results of the action involving the test target using
both the SIP-specific assert methods provided by SipUnit and the standard
JUnit assert methods. For example:
assertHeaderContains(sipCall.getLastReceivedResponse(), "From", "sip:[email protected]"),
assertEquals("Unexpected response received", SipResponse.OK,
sipCall.getReturnCode()).
+ # Calls methods on the object(s) to set up and initiate action toward a
SIP test target. For example: _SipPhone.makeCall("sip:[email protected]",
SipResponse.OK, ....)_ makes a vanilla call to sip:[email protected] and
blocks until an OK is received or a timeout occurs.
+ # Verifies the results of the action involving the test target using
both the SIP-specific assert methods provided by SipUnit and the standard
JUnit assert methods. For example:
_assertHeaderContains(sipCall.getLastReceivedResponse(), "From", "sip:[email protected]"),
assertEquals("Unexpected response received", SipResponse.OK,
sipCall.getReturnCode())._
SipUnit API highlights:
* JUnit-like test development and execution environment with
SIP-specific assertions added - assertHeaderPresent(),
assertHeaderContains(), assertBodyPresent(), etc.
- * Different levels of SIP handling abstraction depending on test case
needs. If you don't care how a setup call gets established, use the highest
level - SipPhone.makeCall(). But if you need to create specific INVITE
header(s) with certain values, use a lower level that allows this kind of
message manipulation.
- * Provides blocking method calls so that the test program is a simple,
sequential set of logical steps and assertions (easy to read, easy to write)
+ * Different levels of SIP handling abstraction depending on test case
needs. If you don't care how a setup call gets established, use the highest
level - SipPhone.makeCall().
* Support for registration and call handling with or without
authentication
* Support for presence subscription handling (SUBSCRIBE/NOTIFY)
* CANCEL handling
@@ -27,7 +26,6 @@
* REFER and associated subscription handling
* Support for NAT traversal (STUN)
* Support for testcase-specified timeouts
- * Can work with or without a SIP proxy server (works with servers that
support standard SIP signaling such as CafeSip's SipExchange Server)
* A test can act as more than one network element - ie, it can act as
both the caller and callee endpoints to test a network element between the
two.
*For more information on how to use SipUnit, please read the
[https://mobicents.ci.cloudbees.com/job/SipUnit/lastSuccessfulBuild/artifact/sipunit/docs/jdocbook-mobicents/target/docbook/publish/en-US/html_single/index.html
User Guide]