This is a migrated thread and some comments may be shown as answers.

Can we change the Header Content in post type HTTPS request

5 Answers 71 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sasikanth
Top achievements
Rank 1
Sasikanth asked on 05 Aug 2014, 06:31 AM
Hi Cody, 
                 I am new to test studio , I have a query regarding load testing ,

These are sequence of steps in my user profile 
 

Https://myappurl/MessageSearchPhrase/getJsonMatchedUsers.spr/searchPhrase=U326960&_=1406802877985 and its a GET type HTTPS request.

Https://myappurl/message/submit.spr and its a POST type HTTPS request 

                                                       After adding CSV to the load test , I am able to bind the SearchPhrase parameter to values from the CSV .As a result of GET request,in response Content I will get the some USER-ID .I need to use that user id in the POST's request header content.Is there any way to get the content from the GET response and send the USER-ID in the post request header content or can I data bind the POST request header Content so that I can give the USER-ID directly from the CSV  .Please find the attached zip file for  snapshots and text files for more details regarding the Request and Response Content

5 Answers, 1 is accepted

Sort by
0
Sasikanth
Top achievements
Rank 1
answered on 05 Aug 2014, 06:36 AM
Hi cody, 
              For to mention that after running the load test ,I am getting same user id again even though we are using a different search query for each user.
0
Boyan Boev
Telerik team
answered on 08 Aug 2014, 07:56 AM
Hi Sasikanth,

Thank you for contacting us.

Please let me consult this our load test developers and let you know the results.

Thank you for your patience.

Regards,
Boyan Boev
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Cody
Telerik team
answered on 08 Aug 2014, 01:58 PM
Hi Sasikanth,

I'm afraid the short answer is no, we cannot support this. The technical problem is that the response for the GET is JSON formatted data containing the user id:

{"users":[{"id":"74e85154-bb03-4c02-820b-80becce987c9","name":"L0000e, F21e6f (U326960)"}]}

This same data then needs to be fed back into the POST at just the right spot:

Content-Disposition: form-data; name="strRecipientsTo"

{"users":[{"id":"74e85154-bb03-4c02-820b-80becce987c9","name":"L0000e, F21e6f (U326960)","list":"To"}]}

A Test Studio load test is not able to interpret and parse JSON data. It is only capable of handling keyword=value type of data in both headers and HTML content. The SearchPhrase parameter is prime example of what we can support.

I am sorry I don't have better news for you.

Regards,
Cody
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Sasikanth
Top achievements
Rank 1
answered on 13 Aug 2014, 12:28 PM
Hi cody, 
               thanks a lot for the update
0
Cody
Telerik team
answered on 13 Aug 2014, 01:48 PM
Hello,

You're welcome. I'm glad I was able to give you a concrete answer, even though it was a "no".

Regards,
Cody
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Sasikanth
Top achievements
Rank 1
Answers by
Sasikanth
Top achievements
Rank 1
Boyan Boev
Telerik team
Cody
Telerik team
Share this question
or