GherkinUFT   REST API's


Post, Get, Put & Delete your test data via REST API calls.

When you want your scripts to be re-runable, and always start from a 'Given' know state, use API calls to find or create test data with all of the attributes you need. Then use the GherkinUFT API features with Scenario-Example data to Login, and POST Requests.

Given I login to the API <System> <Web_Service>
When I send a <POST> <Transaction> to the <Web_Service>

These will be translated into Calls to Functions in the KW_API_Functions library.  This does assume that your API is setup with Endpoint URL's and user login info in the system Environment.xml file. 

API Feature File

Write your Gherkin feature file to use the 3 GherkinUFT included API scenarios, to confirm the API is up and running, to Login, and to send a Request. Then use the standard framework to Check the returned results.

API Config.XML

API Functions

Some of the API functions included in the library are:

KW_Check_API_REST_System_Web_Service_Is_Up_And_Running

KW_Login_To_The_API_REST_System

KW_Send_A_POST_Transaction_To_The_Web_Service 

KW_Extract_The_Field_From_The_JSON_API_Response

KW_Convert_JSON_to_XML

KW_Add_JIRA_Defect_Via_API


API Vb Functions

A set of VB coded functions in a Library, to interact with API's.


<<<<< Back to SQL Case Selector                                                                      Forward to Results Checker >>>>>