Sorry for the delay. I saw you mentioned you have moved to an
alternative but I thought I'd put out an answer just the same so that
we'd have it on the record.
На 19.05.11 15:23, Joost Cassee написа:
Since last month I have been looking at how to use the Jitsi
components to test SIP servers. I would like to do without separate
property files, and I am currently looking at Pax Exam. Using that I
have succeeded in loading Jitsi bundles into a JUnit testcase.
I am mainly interested in using the SIP protocol component, but when I
load the protocol / protocol-sip bundles I end up chasing the
dependency chain. What bundles do I need to just use the protocol
layer of Jitsi? Or is there an easy way to find out myself?
The bundle list we use for unit testing (felix.unit.test.properties) is
probably a good starting point. You can then take it from there and get
rid of bundles you think you wouldn't need.
That said, if you only need SIP signalling and no media, then using
Jitsi would probably be an overkill. Using things like SipUnit or JSIP
directly would probably be a better call.
Hope this helps,
2011/4/20 Joost Cassee <email@example.com>:
2011/4/20 Damian Minkov <firstname.lastname@example.org>:
the example on the developers page is a gui plugin, but plugins can be
with no gui dependency. But as you want to run your tests with junit
you can easily write tests like those that already exist in Jitsi.
Thanks, I should have thought of that.
The bundles that are started when testing are controled through
lib/felix.unit.test.properties, the tests that will run are controlled
from lib/testing.properties. And you can look at the existing test
sources in the "test" folder under the main tree of the project. Run
tests with "ant cc-buildloop".
I am including Jitsi as a jar in my project, so I would probably have
to configure Felix / OSGi to load the right components. (I have no
experience with it). I could then probably create testcases like the
ones in the Jetsi source. Setting up a call looks easy enough.
Thanks Emil and Damencho for your help.
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
email@example.com PHONE: +188.8.131.52.43.30
http://jitsi.org FAX: +184.108.40.206.47.31