Skip to main content

XDMS test FAILURES

3 replies [Last post]
eduardorey
Offline
Joined: 2008-09-08

When I test XDMS I get failures at this tests:

org.openxdm.xcap.client.test.subscription.SubscribeAppUsageTest
org.openxdm.xcap.client.test.error.ConstraintFailureTest
Test set: org.openxdm.xcap.client.test.subscription.SubscribeDocumentTest

I have the XDMS version included at mobicents-all-1.2.0.CR2.

The detail of the failures:

Test set: org.openxdm.xcap.client.test.subscription.SubscribeAppUsageTest
-------------------------------------------------------------------------------
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.904 sec <<< FAILURE!
test(org.openxdm.xcap.client.test.subscription.SubscribeAppUsageTest) Time elapsed: 0.249 sec <<< ERROR!
java.lang.RuntimeException: Unable to start sip stack. Exception msg: Cannot assign requested address: Cannot bind
at org.openxdm.xcap.client.test.subscription.SubscribeDocumentTest.runBefore(SubscribeDocumentTest.java:490)

SubscribeDocumentTest.java

en public void runBefore() throws IOException, InterruptedException

this.listeningPoint = sipStack.createListeningPoint(ServerConfiguration.SERVER_HOST, 6060,
transport);

ServerConfiguration.SERVER_HOST=10.95.12.223

javax.sip.InvalidArgumentException: Cannot assign requested address: Cannot bind

-------------------------------------------------------------------------------
Test set: org.openxdm.xcap.client.test.error.ConstraintFailureTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec <<< FAILURE!
test(org.openxdm.xcap.client.test.error.ConstraintFailureTest) Time elapsed: 0.016 sec <<< FAILURE!
java.lang.AssertionError: Put response content must be the expected and the response code should be 409
at org.junit.Assert.fail(Assert.java:69)
at org.junit.Assert.assertTrue(Assert.java:32)
at org.openxdm.xcap.client.test.error.ConstraintFailureTest.test(ConstraintFailureTest.java:52)

-------------------------------------------------------------------------------
Test set: org.openxdm.xcap.client.test.subscription.SubscribeDocumentTest
-------------------------------------------------------------------------------
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.016 sec <<< FAILURE!
test(org.openxdm.xcap.client.test.subscription.SubscribeDocumentTest) Time elapsed: 0 sec <<< ERROR!
java.lang.RuntimeException: Unable to start sip stack. Exception msg: Cannot assign requested address: Cannot bind
at org.openxdm.xcap.client.test.subscription.SubscribeDocumentTest.runBefore(SubscribeDocumentTest.java:490)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

Thanks in advance,

Eduardo Rey

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
eduardomartins
Offline
Joined: 2005-10-10

Are you testing the server remotely?

eduardorey
Offline
Joined: 2008-09-08

Yes, my XDMS is in other machine, is this a problem to pass tests?

I have changed configuration at:

xdms/tests/src/main/java/org/openxdm/xcap/client/test/ServerConfiguration, but i didn´t fix fails.

Thanks in advance,

Eduardo

eduardomartins
Offline
Joined: 2005-10-10

Do the tests locally, the tests tries to create a SIP stack in the same IP as the XDMS server.