[SIPForum-discussion] Need help with particular my own scenario- Automated Testing

Guddu Dhanoa guddu.dhanoa at yahoo.com
Wed Oct 27 23:54:37 UTC 2010



Hi Guys,

 

My requirement is to make 1000 calls per day
automatically according to following scenario (Automated testing).  Say each call should hang up after 15
secs automatically. 

 

Here is the scenario of manual testing what I really want to
write in client.xml. 

 



Scenario- Dial and hang up a call (Telephone line). 

1) Pick up the phone



2) Dial number using 300 or 400



3) Prompt will ask for Account number



3.1) If telephone user enter wrong Activation number then prompt will say
"Do again as Activation number is incorrect"



4) After successful Activation number, prompt will ask to enter "Pin
number"



4.1) If incorrect then prompt will say "Do again as Pin number is
incorrect"



5) After successful Pin number then user will hear beep sound which means the
phone is in use and will be recorded and user can now talk anything



6) Now user will hangup the phone (after 15 secs)


 

The above scenario didn’t work to make 1000 calls in a day
so I came up with Automated testing with SIPp. 

 

As this moment I made a script of client but it does simple call action but are missing from above scenario. See below the client file. Now I need your help to add script for above scenario. I really need urgently. 

Client.xml
client.xml : A client scenario is a scenario that starts with a "send" command


<scenario name="SIP test: Make a call">
  <send retrans="500">          
    <![CDATA[

      
     INVITE sip: [service]@[remote_ip]:[5060] SIP/2.0
     From: sipp <sip:sipp@[192.168.120.192]:[5060]>;tag=[1]
     To: Prolancer <sip:[service]@[remote_ip]:[5060]>
     Call-ID: [ABCD]
     CSeq: 1 INVITE
     Contact: sip:sipp@[192.168.120.192]:[5060]
     Allow: INVITE, ACK, BYE 
     Subject: Performance Testing
  

  ]]>
  </send>

//After sending the INVITE message, SIPp can wait for an answer by using the “revc” command

  <recv response="100" optional="true" </recv>


  <recv response="180" optional="true" </recv>


  <recv response="200"> </recv>   

//Now, send the ACK (Acknowledge)

   <send>
    <![CDATA[

      ACK sip:[service]@[remote_ip]:[5060] SIP/2.0
      Via: SIP/2.0/[UDP] [192.168.120.192]:[5060]
      From: sipp <sip:sipp@[192.168.120.192]:[5060]>;tag=[1]//tag=call_number
      To: sut <sip:[service]@[remote_ip]:[5060]>
      Call-ID: [ABCD]
      Cseq: 1 ACK
      Contact: sip:sipp@[192.168.120.192]:[5060]
      Max-Forwards: 70
      Subject: Performance Testing
      
      </send>

//A pause function will allow scenario to wait for 3 seconds at this point.
  <pause milliseconds="3000"/>
//And finish the call by sending a BYE (Hang up)and expecting the 200 OK:
  <send retrans="500">
     <![CDATA[

      BYE sip:[service]@[remote_ip]:[5060] SIP/2.0
      Via: SIP/2.0/[UDP] [192.168.120.192]:[5060]
      From: sipp  <sip:sipp@[192.168.120.192]:[5060]>;tag=[1]
      To: sut  <sip:[service]@[remote_ip]:[5060]>
      Call-ID: [ABCD]
      Cseq: 2 BYE
      Contact: sip:sipp@[192.168.120.192]:[5060]
      Subject: Performance Test

    ]]>
   </send>

   <recv response="200" crlf=”true”>         
//Displays an empty line after the arrow for the message in main SIPp screen.
   </recv>


</scenario>









 



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sipforum.org/pipermail/discussion/attachments/20101027/01b61e0e/attachment-0002.html>


More information about the discussion mailing list