« Back to General Discussion - All Versions

automated testing the CVP applications

Combination View Flat View Tree View
Threads [ Previous | Next ]
hi, i am trying to create a tool by which it could be possible to have the automated testing of the applications.
but i am stuck on a point ,
how can i initiate a call or how can i integrated a softphone with my java code?
i tried using the JTAPI but of no use.
 
has anyone tried this before?
 
would really appreciate if i could get some pointers on this.
 
 

I don't know how to automate the testing, but I use an XLite 3.0 sip softphone during my training classes and it's always worked really well. The XLite soft phone just needs to be installed and configured to call into the IP address of the gateway on default port 5060 (bypass UCM, don't need CUBE). (Note, there's also a way to configure XLite for work with UCM. I haven't done this, but I know people who have). You can configure XLite with a User Name to match the ANI you want. On the gateway, set up the dial peers to allow sip: dial-peer voice 4075 voip destination-pattern 4075 session protocol sipv2 session target ipv4:10.1.78.75 dtmf-relay rtp-nte codec g711ulaw no vad There also seems to be some sip configuration: ! voice service voip no ip address trusted authenticate allow-connections h323 to h323 allow-connections sip to sip signaling forward unconditional sip bind control source-interface FastEthernet0/0 bind media source-interface FastEthernet0/0 min-se 360 session-expires 360 header-passing !

What are you trying to test for with automated testing? I’m not sure how you could do that, it seems like it would be hard to have a computer figure out if a phone menu is working properly.

If you just want to execute all possible menu options, and make sure the script never throws an error, that would probably be possible, but it would probably get rather complicated.
You would have to either:
Manually tell the test how many menus there were and what options they had and which menu they led to next. Optimally you would also want to figure out how long each prompt was, so you could test both letting them all play and trying to barge in on some.
--or—
Have the testing program read the cvp app and look at all the menus and where they lead on its own.

The first method wouldn’t be much faster than manually testing I think. The second option would be really nice, but hard to do. Not impossible though. When you test the app though, you would need a way of determining if it was successful or not. I guess you could check the logs, but that will only tell you if the app threw an error.

Jtapi would be one route to go, as long as you have a physical phone to control. I’ve used jtapi before, it’s not too hard. You just need to make sure the phone you are trying to control is in the user you are using’s Controlled Devices list. Start with basic things like pressing the menu button or playing a sound.
Another route you might try exploring is a SIP softphone that is controllable through the command line.
Not sure if there is a softphone like that out there, but it’s worth checking out.

i am trying to build a tool , which will call my apps and execute my test scripts continuously, with no one to monitor the call manually. I have managed to put in the inputs for different menus,
which will be read from my test scripts, but the problem is that i am note sure how to initiate the call. i tried my hand on the jtapi but not fruitfull.
has any body tried doing this kinda approach before?

Asher,
thanks for the insight. do you have some sample code on you for the jtapi ?
i am not sure if it will work or not, but i am trying to inclub a softphone with my java code
and initiate a call to my apps.