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

Catch value from http response and set like a variable

3 Answers 113 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aukro
Top achievements
Rank 1
Aukro asked on 27 Dec 2016, 01:19 PM

Hi. Thanks a lot, for this awesome product, I really enjoy it

Help me please.

How I can catch value from http response and set it like a variable(when I create essence, in responce I have responce Id, after this I want to operate with this Id)

3 Answers, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 29 Dec 2016, 12:01 PM
Hello Aukro,

Thank you for your interest in Telerik Test Studio for APIs. We highly appreciate our customers' feedback and it is always welcome. 

In regards to your question I would suggest you set the desired value as a variable to use it in your test after that. Here you could read further details about the variables in Test Studio for APIs and how they could be used. 

Please do not hesitate to share your opinion or further queries. Thanks! 

Regards,
Elena Tsvetkova
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Aukro
Top achievements
Rank 1
answered on 29 Dec 2016, 02:33 PM

nice, no problems with variable

 

Another question

In response I have many IDs and I want to check existing of some value among them, but I don't have exact index

and can't get all array of IDs

Can you advice something?

0
Elena
Telerik team
answered on 03 Jan 2017, 08:01 AM
Hello Aukro,

Thanks for getting back to me.

With Telerik Test Studio for APIs you could create Verifications to compare variables. There are plenty of possibilities to compare the values and one of them is 'contains text' which I assume will be of help for you.

Please give it a try and let me know if you would need any further assistance. 

Regards,
Elena Tsvetkova
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Aukro
Top achievements
Rank 1
Answers by
Elena
Telerik team
Aukro
Top achievements
Rank 1
Share this question
or