The code is as follows:
Vuser_init ()
{
Lr_save_string ("11041331\", \ "11041372\", \ "11041373\", \ "11041374", "OrderNo");
Lr_output_message ("%s", Lr_eval_string ("{OrderNo}"));
return 0;
}
Action ()
{
int i=0,j;
Char temp[100];
Char orderno[100]= "11041331\", \ "11041372\", \ "11041373\", \ "11041374";
Char *p[20];
Char *buf=lr_eval_string ("{OrderNo}");
Char *buf=orderno;
while ((p[i]= (char *) strtok (buf, "\", \ ""))!=null) {
i++;
Buf=null;
}
Buf=null;
Lr_output_message ("Total divided into:%d strings", i);
for (j=0; j<i; J + +) {
strcat (Temp,p[j]);
if (i!=j+1) {
strcat (temp, "|");
}
Lr_output_message ("%s", P[j]);
}
Lr_output_message ("OrderNo value of last stitching:%s", temp);
Lr_save_string (temp, "Allorderno");
Lr_output_message ("Order number after stitching:%s", lr_eval_string ("{Allorderno}"));
return 0;
}
LoadRunner solve the difficult problem in the project