SMPP simulator / Unit tests

639 views
Skip to first unread message

Leen Toelen

unread,
Jun 10, 2009, 2:11:42 AM6/10/09
to jsmpp
Hi,

what is the recommended way to develop an smpp client application
using jsmpp? Which practices do you use normally to test your code. Is
there a junit test suite that simulates an smpp server or are you
using the selenium simulator?

Regards,
Leen Toelen

Maciej Pigulski

unread,
Jun 10, 2009, 2:53:49 AM6/10/09
to js...@googlegroups.com
Hi,

in our project we've tested SMPP client application using Selenium simulator in junit tests and in integration tests.

We simply downloaded Selenium SMPP Simulator sources (it's pure java) and started this server in junit onSetUp() then we could test sending messages and counting delivery receipts to make assertions about message beeing sent. It is also posible to create a simple http client (from Apache libraries for example) and post messages directly to a running SMPP Sim instance so you can test RX capabilities of your client in junit in the same way I described earlier.

In integration tests we were using Selenium SMPP Simulator and jMeter to create requests.

Regards,
Maciej

Shantanu Kumar

unread,
Jun 10, 2009, 3:08:38 AM6/10/09
to js...@googlegroups.com
I have used Logica SMSC simulator and jSMPP to run the tests. The Logica SMSC simulator does not lend itself easily to be used in unit testing, so bit of inspection of source code was necessary to manipulate it. Another gotcha with Logica SMSC is delivery reports -- not sure how to simulate sending of delivery reports via code.

Thanks,
Shantanu
Reply all
Reply to author
Forward
0 new messages