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

How to pass the variable values in Loadrunner

$
0
0

Hi All,

 

I need help here!

 

I need to create script where I need to use all unique data (for e.g.. Unique email address) and submit the transaction.

 

 

I have created two function to generate random number and unique email address and I am storing values in variables.

 

I have to pass the variable values in the script.

 

Here is my code in LR Script- I am passing two variable 1) email and 2) UniqueNum

 

"Body={\"ordernum\":\"111111\",\"FirstName\":\"px\",\"MiddleInitial\":\"\",\"LastName\":\"smith\",\"DateOfBirth\":\"1985-01-20\",\"EmailAddress\":\"{email}"\,\"Unique number\":\"{UniqueNum}"\ }";

 

When i do Out put message i can see the values in reply log but when i run the script its says bad request.

 

Can someone help me here what wrong i am doing here?

 

 

Thank you very much for your Help!

 

 


Viewing all articles
Browse latest Browse all 3978

Trending Articles



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