Monday, April 22, 2019

How to test ASP.NET WEB API or Rest API By Using SOAPUI

SoapUI is built for end-to-end testing of Rest and SOAP APIs, Web Service and Micro Service.  SoapUI can easily automated API testing and perform load testing.

Here is an example:


Required Header: X-API-UserName, X-API-Token :

In above API, we need to pass Order ID as part of API‘s Path and for API security verification, we have to pass user Name and API token as HTTP Request Header.

To test above API, we need to follow the below steps:

·         Install SOAPUI Tool

·         Run the SoapUI APP and click on REST Icon

SOAP UI

·         Enter REST API URL -  https://localhost:/Order/ID/1000

SOAPUI - REST API URL


·         Click on header tabs and enters Header Name and Value ( in example, X-API-Token Header)  

SOAP UI - ADD HEADER
         

·         Click on OK

SOAP UI -  HEADER

·         Click on Run Button () to submit HTTP Request for API

SOAPUI - Submit HTTP REQUEST



SQL Server - Identify unused indexes

 In this blog, we learn about the index usage information (SYS.DM_DB_INDEX_USAGE_STATS) and analyze the index usage data (USER_SEEKS, USER_S...