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

Api Data Verification with UI Data

5 Answers 20 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
subhash
Top achievements
Rank 1
subhash asked on 09 Jul 2019, 02:41 PM

Hi 

I need to verify the data extracted by the api end point and then need to compare the data which is showing on the webpage.

Could you please advice on this scenario.

Thanks 

Subhash

5 Answers, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 11 Jul 2019, 03:42 PM
Hi Subhash,

Have you explored the Verification steps, which you can include in an API test? I guess that these will help you to accomplish the first requirement mentioned in your query. 

Then, as far as I understand you would like to include the API test within a web one and use the data collected from the API calls. If this is correct, then you will need to include the API test as a step in a web test and pass the necessary variables to it. I can recommend a blog post on the topic, which fully covers the scenario and will help you understand the feature in details. 

I hope the shared information will be helpful for you and of course, in case you have any other questions, I will be glad to assist further. 

Thank you in advance for your cooperation. 

Regards,
Elena Tsvetkova
Progress Telerik
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
subhash
Top achievements
Rank 1
answered on 12 Jul 2019, 12:19 PM

Hi

Thanks for the reply.

I'm trying to parametrize the HTTP request in the json format. hwever i'm getting 404 error code.

Sample HTTP Request

http://www.apitesting.com/product/get/{{ProductNumber}}?countrycode={{countrycode}}&languagecode={{Languagecode}}

Could you please advice on this scenario.

 

Thanks

Subhash

0
Elena
Telerik team
answered on 16 Jul 2019, 10:24 AM
Hello Subhash,

It seems that you currently work in the API testing project and need to adjust the variables in the HTTP request step. To be able to parameterize such a request, you can define variables in a Set Variable step or in a Verification step

For further reference on flawless getting started with the API testing you can go through the following blog post and also take some time to review the sample project included in the installation. 

I hope the above details will help you sort out what is still missing in your project. However, if you still have troubles with that, please prepare a sample project and send it for further investigation. 

Thank you in advance for your time and cooperation. 

Regards,
Elena Tsvetkova
Progress Telerik
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
subhash
Top achievements
Rank 1
answered on 17 Jul 2019, 04:09 AM

Thanks for providing the information

-Regards

Subhash

0
Elena
Telerik team
answered on 17 Jul 2019, 02:27 PM
Hello Subhash,

I am glad to know the information will be helpful for you. Of course, if you have further questions or doubts, please do not hesitate to get back to us. 

Regards,
Elena
Progress Telerik
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
subhash
Top achievements
Rank 1
Answers by
Elena
Telerik team
subhash
Top achievements
Rank 1
Share this question
or