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

String conversion to ASCII numbers in LR/VUGEN

$
0
0

Hi Experts,

Need some help with coding in LR,

I want to convert the String into ASCII numbers.

Below is the small code I am using,

char *value="NmB6F/5Xlo==";

    int i;

        for(i=0; i<=strlen(value)-1; i++)
    {
          lr_output_message("The ASCII value is %d", value[i]);

  }

But with this the output I am getting is like,

Action.c(27): The ASCII value is 78
Action.c(27): The ASCII value is 109
Action.c(27): The ASCII value is 66
Action.c(27): The ASCII value is 54

I want it like,

78:109:66:54

Please help me in this context.

Best Regards,

Ak


Viewing all articles
Browse latest Browse all 3978

Trending Articles



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