Saturday, 22 November 2014

How to Save and subsuite in correlation values in parameterization value


 VerifyID is correlation value and am saving and compare the parametrization value "EmpID" And Must give "  LRS_LAST_RECEIVED "  values

lrs_save_searched_string("socket0", LRS_LAST_RECEIVED, "VerifyID", "LB/BIN=¨","RB/Bin=¨", 1, 0, -1);

 
if(strcmp(lr_eval_string("{VerifyID}"),lr_eval_string("{EmpID}"))!=0)

Winsock Text Check

 lrs_save_searched_string("socket0", "buf17", "VerifyID", "LB/BIN=¨","RB/Bin=¨", 2, 0, -1);
   
   // lrs_save_param("socket0", "buf19", "MsgID", 150, 7);
   
    if(strcmp(lr_eval_string("{VerifyID}"),"Success")!=0)
    {
       

     // // lr_fail_trans_with_error("buf19 Received Fail: %s,IterationNumber:%s,VUSERID :%s,LoadGen:%s", lr_eval_string("{VerifyID}"),lr_eval_string("{IterationNumber}"),lr_eval_string("{VUSERID}"),lr_eval_string("{LOAGGEN}"));
     
      lr_output_message("buf17 Received Fail: %s,IterationNumber:%s,VUSERID :%s,LoadGen:%s", lr_eval_string("{VerifyID}"),lr_eval_string("{IterationNumber}"),lr_eval_string("{VUSERID}"),lr_eval_string("{LOAGGEN}"));
      
           lr_end_transaction("BP11_LMS_SelfView_T02_Enter", LR_FAIL);
           lrs_close_socket("socket0");
    }
   
else
{
     lr_output_message("buf17 Received Passed: %s,IterationNumber:%s,VUSERID :%s,LoadGen:%s", lr_eval_string("{VerifyID}"),lr_eval_string("{IterationNumber}"),lr_eval_string("{VUSERID}"),lr_eval_string("{LOAGGEN}"));
       lr_end_transaction("BP11_LMS_SelfView_T02_Enter", LR_AUTO);   
   
        
}

Winsock Correlation

Below are the function using only selected for  ' " '
Which u given the values this function selected correlation values now am using ("LB="","RB="") and given the value 2 is savelength and 0 is ordinals while u give LB and RB you must give -1 value)

lrs_save_searched_string("socket0", "buf17", "VerifyID", "LB/BIN=¨","RB/Bin=¨", 2, 0, -1);

another type is 

lrs_save_param("socket0", "buf19", "VerifyID", 150, 7);

Ex :- if i want to "Success " (dont consider  this "") values first give offset and give save length"7"

this function is using same like that. VerifyID is Correlation name and 150 is offset and 7 is savelength