Quantcast
Channel: LoadRunner Practitioners Forum topics
Viewing all articles
Browse latest Browse all 3978

Load test SMPP in LR

$
0
0

HI, All!

Please help me make working script to test smpp sms send in LR 12.50

I already tryed to record traffic with wireshark and make csript from it - nothin working.

Now debugging this one - 

Action()
{
    
 char *user_name = "SMPP Gateway";
 char *password = "777";
 //char *system_type = "transmitter";
 char *system_type = "SMPP Gateway";
 char *msg_name = "message123";
 char *To = "to=9991234567";
 
 char *headers_and_multiparts = "source_addr=78123273233,source_addr_ton=1,source_addr_npi=1,destination_addr=1009,dest_addr_ton=1,dest_addr_npi=1,short_message='Hello my world',sm_lenght=14,esm_class=0,data_coding=0,x-mms-priority=high";
 char *confirmation_message ="";
 int Result_code = 0;
 char *p;
 
 Result_code = mm_set_smpp_user( user_name, password , system_type );
 lr_output_message("mm_set_smpp_user result code= : %s",Result_code);
  
 Result_code = mm_create_submit_message( msg_name, To, headers_and_multiparts, LAST );  
 lr_output_message("mm_create_submit_message result code= : %s",Result_code);

 Result_code = mm_send_message( msg_name, confirmation_message, headers_and_multiparts, LAST ); 
 lr_output_message("mm_send_message result = : %s",Result_code);
 lr_output_message("confirmation_message code= : %s",confirmation_message);

 
 if (mm_notification_wait("my notification", LAST) == LR_PASS)

{

...some work

}
    return 0;
}

In attaches - screenshot from my testing app, with parameters. Sending sms from app - working.

Recorded traffic with wireshark i can't add  - will send on request.


Viewing all articles
Browse latest Browse all 3978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>