Lifeguard
13 years agoOccasional Contributor
Managing variables in a http request
Hello.
I'm dealing with a particular rest web service who works directly with http request and json response. I would simply like to know, a way to mange variables so I can send (in the request) random user data ( for example ) in different test cycles. For example :
Send http://services.test/user_name/action?=1
The thing I would like to do is to generate a random "user_name" and send it each test cycle (each time I execute the test-suite). Is it possible? I've searched the following :
viewtopic.php?f=1&t=13850&p=33663&hilit=variable+rest+http#p33663
viewtopic.php?f=5&t=12821&p=31234&hilit=variable+rest+http#p31234
viewtopic.php?f=2&t=1186&p=4402&hilit=variable+rest+http#p4402
But they didn't give me a clear answer.
Is it a properties transfer question? A xpath question?? I actually don't know. Sorry for my "newbie-ing".
Thanks in advance!!
I'm dealing with a particular rest web service who works directly with http request and json response. I would simply like to know, a way to mange variables so I can send (in the request) random user data ( for example ) in different test cycles. For example :
Send http://services.test/user_name/action?=1
The thing I would like to do is to generate a random "user_name" and send it each test cycle (each time I execute the test-suite). Is it possible? I've searched the following :
viewtopic.php?f=1&t=13850&p=33663&hilit=variable+rest+http#p33663
viewtopic.php?f=5&t=12821&p=31234&hilit=variable+rest+http#p31234
viewtopic.php?f=2&t=1186&p=4402&hilit=variable+rest+http#p4402
But they didn't give me a clear answer.
Is it a properties transfer question? A xpath question?? I actually don't know. Sorry for my "newbie-ing".
Thanks in advance!!