I am currently working on telecom project and we use robotframework
for test automation. To test calls, we wrote of keywords to drive the
tool SIPP. I would like to know if anyone has any information on the
subject. I visited the following page: robotframework-
us...@googlegroups.com
An example of a simple test call (TestCase):
[SIPp UAC]-----------[SIP Proxy - System Under Test]------------[ SIPp
UAS]
step 1 : Register Phone 1
step 2 : Register Phone 2
step 3 : Make a call from Phone 1 to Phone 2
step 4 : Check that the call is established
step 5 : Hang up from Phone 2 for example
step 6 : Check that the communication is released
The problem is that with SIPp, the steps described above are not
visible because the sequence of steps described above are not visible
because everything is described in the scenario (xml) and the
performance is not representative of this test case.
Thank you in advance.
Regarding your scenario, it is likely you can't run it with RF in a
granular way, because SIPP is scenario based and not a stateless
command line tool, or offering any official API to hook into it to
drive SIP scenarios / testing.
Therefore, the best you could do to integrate with RF is simply using
the OperatingSystem library to call the SIPP tool externally running
some scenario XML file, and redirecting output to RF or file, and then
parse the SIPP results through RF so that RF can return a pass/fail
for the whole scenario as part of your RF test suite. So the RF
keywords will be run SIPP script, and analyze results (or you can
combine them together). But you won't be able to do something like hav
the following individual keywords: register phone 1, register phone2,
make a call, etc.
Well, actually you might in some cases, but it becomes a mess, you
have to run SIPP scripts in parallel with one script handling one step
(typically perhaps all running on same machine, but maybe not). One
script register user A, another register B, and third script will
handle A calls B, and you run registration scripts first, which
continue to run, then run call script, then kill registration scripts
if they don't auto end after call script ends.
FYI, my project is at
http://code.google.com/p/telcotools4robotframework/
and you might be able to get more granularity if driving a SIP tool
like a softphone via an API or command line wrapper making it
stateless and thus you can have RF keywords like call number, answer
call, hang up, etc. I've build that up for a library but haven't
released it yet. Let me know if you're interested and I'll post it up
sooner.
> --
> You received this message because you are subscribed to the Google Groups "robotframework-users" group.
> To post to this group, send email to robotframe...@googlegroups.com.
> To unsubscribe from this group, send email to robotframework-u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/robotframework-users?hl=en.
>